CCS code for DS18B20- Request

Status
Not open for further replies.

jccsantos

Junior Member level 2
Joined
May 10, 2004
Messages
22
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
159
ds18b20 ccs

Hi,

I need the routines in ccs for DS18B20 (12bits).
Can someone help-me?????????

Note: the only routines i found is for ds1820 and i can´t make it work......


Thnks in advance.
 

code ds18b20

What difference between DS18B20 and DS1820 ?
 

ds1820 ccs

Resolution from 9 to 12 bits!
 

Hi!
I have written same CCS routines for the DS1820/DS18S20/DS18B20.
You can find them here: **broken link removed**.
 

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 ?
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…