IIC chained write /read sequence

This is the English forum for all topics related to IO-Warrior. Please post in English only

Moderator: Guido Körber

Post Reply
slezak
Posts: 5
Joined: Sat Dec 10, 2005 9:57 am

IIC chained write /read sequence

Post by slezak »

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
Guido Körber
Site Admin
Posts: 2856
Joined: Tue Nov 25, 2003 10:25 pm
Location: Germany/Berlin
Contact:

Post by Guido Körber »

Did you read the specification of the IIC function in IO-Warrior?
slezak
Posts: 5
Joined: Sat Dec 10, 2005 9:57 am

Post by slezak »

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
sergio
Guido Körber
Site Admin
Posts: 2856
Joined: Tue Nov 25, 2003 10:25 pm
Location: Germany/Berlin
Contact:

Post by Guido Körber »

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.
slezak
Posts: 5
Joined: Sat Dec 10, 2005 9:57 am

Post by slezak »

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
sergio
Guido Körber
Site Admin
Posts: 2856
Joined: Tue Nov 25, 2003 10:25 pm
Location: Germany/Berlin
Contact:

Post by Guido Körber »

Yes, IO-Warrior supports this.

This is the standard addressing mode that is used by IIC memory devices and any kind of device that uses internal register numbers.
Post Reply