Electronics > Beginners
How to Implement 1-wire Devices
<< < (4/6) > >>
C:

just google
:one wire library"

what micro-controller are you trying to use?
Docara:
Hi,

Any uC really!

As mentioned I do not use/like the Arduino IDE, unfortunately this limits 'libraries'

At the moment I'm looking at the STM32F103 range or similar because I need a would like a CAN port and need two UART's although PIC's are not out and need quite a few I/O's
BradC:
This is my code for a 12F615.

It does a "start conversion" to the entire bus, then it implements the one wire search and uses that to iterate through thermometers to read, one at a time.

Honestly one wire isn't hard. The timing is as loose as you want it to be.

I've also attached  a library for the Parallax Propeller that uses one wire in two wire mode (data & pull down) to allow running the devices at 5V on a 3.3V uC. Again, it implements the one-wire search but this time it builds an array of 64bit words that list all the serial numbers it finds.

Check out the read/write bit routines. The timing is seriously loose, and it's not complex.
Docara:
Wow! BradC thank you so much I will down load and look through it now and get back to you

Docara:
Hi BradC

Am I right in thinking the full Search Routine starts at the red arrow in the enclosed?
Navigation
Message Index
Next page
Previous page
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod