The Start/Stop function of SUB-20 I2C

All about Sub-20 Multi Interface USB Adapter USB to I2C, SPI, GPIO, RS232, RS485, Ir, LCD

Moderator: serg

Post Reply
vaughn
Posts: 6
Joined: Thu Aug 12, 2010 1:22 am

The Start/Stop function of SUB-20 I2C

Post by vaughn »

Hi~
I configure the I2C/SPI board with SUB-20-R45 Serial4.
In the SUB-20 tool v1.6.9,I operate the tool with the following step in I2C tab:

1.i2c scan
2 slave devs found:
0x38
0x50
2.i2c issue start
3.i2c write
i2c status:72
ERROR: I2C error

After I click the Start button in Issue I2C panel, the error occurs.
Where may I operate the wrong way?
Regards
vaughn

xol
Site Admin
Posts: 241
Joined: Sat Aug 29, 2009 8:04 am

Re: The Start/Stop function of SUB-20 I2C

Post by xol »

HI,
You should not issue START before I2C write. I2C write will issue START internally.
Look here: http://www.xdimax.com/sub20/doc/HTML/sub_i2c_write.htm
I2C write has it's own START

vaughn
Posts: 6
Joined: Thu Aug 12, 2010 1:22 am

Re: The Start/Stop function of SUB-20 I2C

Post by vaughn »

Hi~
Thanks for your repy and help me a lot.
Regards
Vaughn

Post Reply