FlexIO Simulate I2C Master How to Generate Repeated Start Condition

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FlexIO Simulate I2C Master How to Generate Repeated Start Condition

780 Views
2426251447
Contributor I

Hey,

      Using FlexIO simulates I2C Master mode to access the AT24C02 EEPROM device,I can write the data to device,but can not read the data from the at24c02. Using the logic analyzer to capture the signal, I found it can not generate the repeated start Condition, although i configure the register as the user manual - "transfer 0xFF to generate a repeated START condition".

      The logic analyzer capture signal is 0xFF, not repeated START Condition. What is the problem? 

Thanks a lot!

0 Kudos
1 Reply

536 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

I have found some example done by apps engineer that shows how to emulate the I2C protocol using the FlexIO.

Summary of the example

- Pins PTE4(SDA) and PTE5(SCL) on the EVB for I2C.

- It is configured for a baudrate of 100kbps.

- UART is used @9600 baudrate to print the data obtained via I2C in a serial terminal

- The example communicates with accelerometer fxos8700cq

- The component z of the accelerometer is read every time the user press a key.

 

You can refer to it and test it with your I2C memory.

 

BR, Petr

0 Kudos