Yahoo Groups archive

AVR-Chat

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

Message

Re: i2c temperature sensor code

2007-04-13 by jasonparkerhendrix

Thanks for this code example!

For some reason, the temperature is reported to be 255 C.  Obviously 
this means something isn't right.  Can you give me any hints to what 
I may have done incorrectly?

The only thing I changed in the code was to this:
#define DEV_ADDR 0x37

Because according to the datasheet
(http://focus.ti.com/lit/ds/symlink/tmp75.pdf) the address if all 3 
address pins are left "floating" is 0110111

Any suggestions would be greatly appreciated.

Thanks!

--- In AVR-Chat@yahoogroups.com, "Ranjit Puri" <ranjit.puri@...> 
wrote:
>
> Thanks Alex,
> 
> The files can also be had from
> http://ranjit.puri.googlepages.com/I2C_AVR_sampleC.zip
> 
> Regards
> Ranjit
> 
> 
> On 12 Apr 2007 05:21:13 -0700, Alex Gibson <yahoo@...> wrote:
> >
> >   Ranjit Puri wrote:
> > > Hi,
> > >
> > > Heres some classic bit-banged I2C code (written for AVR GCC) 
that talks
> > to a
> > > DS1631 I2C temperature sensor (see attached).
> > >
> > > Regards
> > > Ranjit
> >
> > Can't send attachments to yahoo groups, they block it 
automatically.
> >
> > Need to either paste it as text or upload it to the files area or 
put it
> > on your web site and include a link.
> >
> > Alex
> >  
> >
> 
> 
> 
> -- 
> Ranjit
> 
> 
> [Non-text portions of this message have been removed]
>

Attachments

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.