I2C repeated start bit needs 1ms delay. Why and is it right?

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

I2C repeated start bit needs 1ms delay. Why and is it right?

1,053 次查看
sindhuantony
Contributor I

Hi, I am using a TQMAX6 module with IMX.6Dual core processor. My code kept crashing and restarting due to watchdog, but then again it was a repeated start until a delay of 1ms was introduced after the setting of RSTA bit in I2CR register of the I2C module.

There are 3 slaves connected. 

1. EEPROM

2. Temperature sensor

3. IOExpander

Is 1 ms too much of a delay? I found other sporadic crashes after this was done, although the initial crashing was solved after this. I am using a micrium OS, not LINUX. So please help me with an RTOS point of view.

Thanks,

Sindhu Antony

标签 (1)
0 项奖励
回复
1 回复

935 次查看
art
NXP Employee
NXP Employee

First, please carefully check your I2C code flowchart against the procedures, described in the Sections 35.5 "Initialization" and 35.6 "Software restriction" of the i.MX6Dual/Quad Reference Manual document, available on the processor's Documentation web page:

https://www.nxp.com/products/processors-and-microcontrollers/applications-processors/i.mx-applicatio...

From the hardware point of view, check the presence and the value of the I2C bus pull-up resistors (their typical value should be 4.7 to 10 kOhm).


Have a great day,
Artur

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复