Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2016, 08:49:05 20:49


Login with username, password and session length


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

Posts: 136

Thank You
-Given: 282
-Receive: 48

What is this for?


« on: September 15, 2012, 08:32:27 20: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 x86 SP1 on HP6910p
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