IIC chained write /read sequence
Moderator: Guido Körber
IIC chained write /read sequence
iic bus specify a chained write/read mode ( to send adress to read per exemple - PCF 8583) how do this with i/o warrior ?
sergio
-
- Site Admin
- Posts: 2856
- Joined: Tue Nov 25, 2003 10:25 pm
- Location: Germany/Berlin
- Contact:
in §5.10 simple write to I2C with reportID 2 , i suppose we can write in data 2 i2c adreess componet, data3 the firs byte for i2c component
simple write with report id 3 byte 2 is the adress of i2c component
there is an other mode for i2c for read : first data for adress component second byte for select memory adress of the component lik memory
i dont understand how use IO- Warrior for this last mode
simple write with report id 3 byte 2 is the adress of i2c component
there is an other mode for i2c for read : first data for adress component second byte for select memory adress of the component lik memory
i dont understand how use IO- Warrior for this last mode
sergio
-
- Site Admin
- Posts: 2856
- Joined: Tue Nov 25, 2003 10:25 pm
- Location: Germany/Berlin
- Contact:
Report ID 2 is used to write up to 6 bytes to the IIC. How they are interpreted depends on the setting of the start and stop flags.
Report ID 3 has the address byte plus a data count. You can initiate reading up to 255 bytes with a single command. Though some Windows variants do not work if there are more than two reports in reaction to a single command.
Report ID 3 has the address byte plus a data count. You can initiate reading up to 255 bytes with a single command. Though some Windows variants do not work if there are more than two reports in reaction to a single command.
i have understand flag of reportid 2 to write more than 5 bytes to i2c componetnt
for a component like pcf 8583 :
http://www.semiconductors.philips.com/a ... 8583_5.pdf
is it possible with io warrior to do the chronogram fig 18 p17 of the datasheet above by
( after an enable report ID =1 of course)
first
send a reportID 2 with flag :start, no stop , data count=2 ;data1= i2c read address; data2= word adress
then send a reportID3 count=5,command=i2c read address
to receive 5 bytes from word address to word address +5
i have to be certain of this before buying IO-Warrior
for a component like pcf 8583 :
http://www.semiconductors.philips.com/a ... 8583_5.pdf
is it possible with io warrior to do the chronogram fig 18 p17 of the datasheet above by
( after an enable report ID =1 of course)
first
send a reportID 2 with flag :start, no stop , data count=2 ;data1= i2c read address; data2= word adress
then send a reportID3 count=5,command=i2c read address
to receive 5 bytes from word address to word address +5
i have to be certain of this before buying IO-Warrior
sergio
-
- Site Admin
- Posts: 2856
- Joined: Tue Nov 25, 2003 10:25 pm
- Location: Germany/Berlin
- Contact: