CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

dallas search rom in ccs c

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
lewiseley



Joined: 30 Oct 2003
Posts: 24
Location: skegness

View user's profile Send private message Visit poster's website

dallas search rom in ccs c
PostPosted: Tue Jun 06, 2006 5:49 am     Reply with quote

hi i know this has been discussed before.

but does anyone have the dallas one wire search rom code in ccs c
that i can use straight away, without having to straighten it out first.
Kenny



Joined: 07 Sep 2003
Posts: 173
Location: Australia

View user's profile Send private message

PostPosted: Tue Jun 06, 2006 7:28 pm     Reply with quote

There is a port of the Dallas 8051 code here:
http://www.ccsinfo.com/forum/viewtopic.php?t=19255

Just place this line in your code:
FindDevices();
The addresses of devices on the bus will be output with the two-digit family code on the end of each address. The code has been tested by another user.

Actually, I now use the DS2482-100 i2c to one wire bridge ic instead of bit-banging it.
Edited:
There is code now in application note 3684 that includes the search code using the chip's triplet hardware. I wrote my own before Dallas published the application note.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group