i am connecting a DS18B20 to a PIC 18452. i have written a code in C for it. The DQ line is connected to the RA1 pin of the PIC18f452.
The code looks fine i think ( i had reference from the MAXIM site) but i can't seem to define my DQ as my RA1 pin. Dunno what went wrong. i am then displaying the temperature result on the Hyper Terminal of Windows through my USART using a MAX232 ic.
If anyone can help me solve the bug i would be really Greatful. Thanks.
The code looks fine i think ( i had reference from the MAXIM site) but i can't seem to define my DQ as my RA1 pin. Dunno what went wrong. i am then displaying the temperature result on the Hyper Terminal of Windows through my USART using a MAX232 ic.
If anyone can help me solve the bug i would be really Greatful. Thanks.