Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Dallas 1-wire

Dallas 1-wire

2004-09-16 by silicasolution

Hello Group,

I am using IAR 2.88A for development of a mega128 application.  Does 
anybody out there know of any sample code for this compiler that will 
allow me to communicate with Dallas 1-wire devices?  I know 
Codevision provides an include file and functions for this purpose, 
but I am at a loss at how to implement it with IAR

Thanks!

Ted

Re: Dallas 1-wire

2004-09-16 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, "silicasolution" <ted_marytl@s...> 
wrote:
> Hello Group,
> 
> Does anybody out there know of any sample code [...] that will 
> allow me to communicate with Dallas 1-wire devices?

The protocol isn't too diffucult to implement, especially if you only 
need master mode and to work with a few specific devices.  I wrote 
some code for an ATmega to talk to a DS2404.  The main routine that 
gets or sends one bit is about 75 lines (less than half of which is 
code - the rest is whitespace and comments).

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.