HI
I m also working with ds18b20
I m using Renesas R8C/tiny series microcontroller for the same.
I m not getting the device on the bus after sending the reset pulse from microcontroller to the device/
Below is code snippet
DS18B20_DDR = 1;
DS18B20_DQ = 0;
for(i=0;i<240;i++); //480usec
DS18B20_DDR = 0;
for(i=0;i<30;i++); //60usec
p = ((DS18B20_PIN & (1<<USED_PIN))>>USED_PIN);
for(i=0;i<120;i++); //240usec
after executing this code i m getting p=1, everytime?
whats problem?
i m getting confused ?