Question about I2C
Posted: Fri Feb 15, 2008 8:49 am
Good morning all,
I have tried to use the I2C Master for my application and I have some questions concerning it.
My dspic reads I2C data, but the sequence of data changes as a function of the operating mode.
The state machine has 6 modes and these modes are identified by numbers: 1,2,3,4,5 and 6
In practice I have 2 sequences:
- The 1st for the operating mode numbers 2, 4 and 6. The dspic must read 12 words in these modes.
- The 2nd for the operating mode numbers 1, 3 and 5. The dspic must read 18 words in these modes.
At present, I have no available simulink model and I don't see how to manage this with the I2C master.
Maybe that anybody can help me ? Thank you in advance.
Johan
I have tried to use the I2C Master for my application and I have some questions concerning it.
My dspic reads I2C data, but the sequence of data changes as a function of the operating mode.
The state machine has 6 modes and these modes are identified by numbers: 1,2,3,4,5 and 6
In practice I have 2 sequences:
- The 1st for the operating mode numbers 2, 4 and 6. The dspic must read 12 words in these modes.
- The 2nd for the operating mode numbers 1, 3 and 5. The dspic must read 18 words in these modes.
At present, I have no available simulink model and I don't see how to manage this with the I2C master.
Maybe that anybody can help me ? Thank you in advance.
Johan