FlexIO Simulate I2C Master How to Generate Repeated Start Condition

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FlexIO Simulate I2C Master How to Generate Repeated Start Condition

1,607 次查看
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 项奖励
回复
1 回复

1,363 次查看
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 项奖励
回复