Re: OT, anyone tried LM73 I2C?



On Sat, 28 Oct 2006 23:08:18 GMT, PeteS <peter.smith8380@xxxxxxxxxxxx>
wrote:

sdeyoreo@xxxxxxxxxxx wrote:
Using a BasicStamp to read from LM73 using I2C, but just getting all
1s. Have used I2C before for memory IC and PCF8574 bus expander, OK
but nothing from the LM73. Has anyone had sucess?

I have used this device in multiple designs and it works fine. I suggest
looking at your I2C code.

Cheers

PeteS
Hmm... I have pull ups on both SDA and SCLK lines. Does SCLK need a
pullup? Did you set the pointer register before reading the temp? Did
you use an internal address along with the devices's slave address?
The spec says it powers up pointing to the temperature register, so I
give it the slave address byte and then read back the temp. But
nothing but 1s. I haven't put a scope or analyzer on it yet to see
whats up.
If your familiar with PBasic, here's code:

LM73read CON %10010011 ' I2C address
I2Cpin CON 0 ' P0->Sdata,P1->SCLK
tempIn VAR Word ' 16 bit word from LM73

' read 2 bytes (16 bits) from LM73 into WORD tempIn:
I2CIN I2Cpin,LM73read,[tempIn.HIGHBYTE, tempIn.LOWBYTE ]

.



Relevant Pages

  • Re: NI USB 8451 New User Labview and 8451!
    ... These three signals are then controlled by the 8451 SPI port and one of the Slave Selects. ... depends on the speed and acceleration of your motion you may have to adjust the SCLK in order to capture all the motion data. ...
    (comp.lang.labview)
  • Re: NI USB 8451
    ... These three signals are then controlled by the 8451 SPI port and one of the Slave Selects. ... When you read the motion data, you'll be reading from the same registers of the six sensors and so therfore you'll be able to send the register address on the common MOSI and clock with SCLK. ...
    (comp.lang.labview)