Shop OBEX P1 Docs P2 Docs Learn Events
Adt7410 — Parallax Forums

Adt7410

caskazcaskaz Posts: 957
edited 2013-12-30 00:01 in Propeller 1
Hi.
I try to write code for ADT7410.
Register cannot read by propforth.
I try to do by spin.
Maybe bad code because I don't use spin.

I used i2cObjectv2[http://obex.parallax.com/object/27]
I try to read register(0xB).
Register(0xB) is readonly(hC*).
But result is h08.
I2C Demo (v2)!
Scanning I2C Bus....
Scan Addr :  %00000000,  ACK  <-- maybe bug
Scan Addr :  %10010000,  ACK  <-- ADT7410
Scan Addr :  %10100000,  ACK  <-- eeprom on QuickStaertBoard
i2cScan found 3 devices!
08                                       <--- register(hB) value
I have no idea.
Where is wrong?

Comments

  • kuronekokuroneko Posts: 3,623
    edited 2013-12-29 22:43
    The I2C driver you listed is always sending 2 byte addresses. Try the latest version (http://obex.parallax.com/object/155) and limit the address range accordingly.
  • caskazcaskaz Posts: 957
    edited 2013-12-30 00:01
    Hi kuroneko-san.
    I checked Write-method and Read-method nside Basic_I2C_Driver and Basic_I2C_Driver_1.3.
    They are same and are 8bit-data.
Sign In or Register to comment.