A while back I wrote a bit of code to search a 1 WIRE BUS to find the device rom numbers and store them into ram for future use. Attached is the basic routine I used based on the application notes form Dallas Semiconductor. The storage array can be made larger or smaller as you wish. I have successfully been able to locate upto 32 nodes made up of 5 different types of Dallas products. The only thing needs to be added to the program are the LCD Defines. This was written for a 2 X 40 display connected to a 18F452 @ 40 Mhz. After looking at how many times the attached routine was downloaded I decided to put it in the software section. Hope this helps you 1 wire guy's....
Dave Purola, N8NTA
Bookmarks