The Godfather talking
Share your stuff or I will make you regret it.
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 28, 2024, 05:18:55 05:18


Login with username, password and session length


Pages: [1]
Print
Author Topic: Proton multidrop DS18B20  (Read 3926 times)
0 Members and 1 Guest are viewing this topic.
towlerg
Senior Member
****
Offline Offline

Posts: 263

Thank You
-Given: 474
-Receive: 104

What is this for?


« on: September 15, 2012, 07:32:27 19:32 »

As this is neither tutorial or project I not sure where to post so I spun a coin.

I do not claim any originality or even authorship, but simply a compilation from
various sources.

Being a microcontroller newbie and wanting to use a DS18B20 I thought that as a
learning exercise I would try to put together a Proton example of a 1-wire
network that used all the functions of a DS18B20. Most examples I have seen of
coding for 1-Wire devices sent apparently arbitrary stings of bytes to a single
device.

As I have yet to provide examples of all commands this should be considered a work
in progress.

One of the more obvious failing in this code is that it only uses a 32 bit address.
This is done for clarity. If anybody has known new stock of any 1-wire device or
knows of a serial number larger than 32 bits, I would be very interested to know how
big the serial number is.

If you want to run this in Proteus but don't launch from the Proton IDE you may need
to change the source file extension to .hex
Logged

Win 7 Ult x64 SP1 on HP2570p
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC