Delay to generate I2C ACK by LPC804

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Delay to generate I2C ACK by LPC804

1,533件の閲覧回数
Bhavin_Dhulkotiya
Contributor II

Hi,

We are using LPC804 I2C slave with interrupt mode. As shown in attached image we are getting ~20 micro second delay before ACK generation. So after debugging we found that software takes this time to handle I2C interrupt. However, we haven't add any extra code in provided SDK example. The same delay appears when doing transfers at both 100kb/s and 400kb/s. Could you suggest any way to reduce it or to handle I2C ACK by hardware?

LPC804_I2C_22us_ACK_Delay.PNG

タグ(1)
0 件の賞賛
返信
3 返答(返信)

1,521件の閲覧回数
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hello

Could you please tell me what device are you using as Master?

Have you tried the LPC804 as Master? And if not, could you please try this configuration and see if this problem still occurs?

Regards, Daniel.

0 件の賞賛
返信

1,495件の閲覧回数
Bhavin_Dhulkotiya
Contributor II

@DanielRuvalcaba 

We are using the Aardvark as a master. As the issue is on slave we haven't tried LPC804 as master. Although we have used different masters with LPC804, the issue persists.

0 件の賞賛
返信

1,448件の閲覧回数
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

Could you please verify that your slave is not having problems with something related to clock stretching?

Also, could you please try your application with another slave to see if the problem still going?                                         

Another thing you can try is to optimize the ISR code.

I drop you some links that might be helpful:

https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Clock-Stretching-on-MK10DX64VFM5/m-p/24655...

https://community.nxp.com/t5/Kinetis-Microcontrollers/how-to-reduce-the-delay-of-i2c/m-p/372178

https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Delay-between-ACK-and-Data-from-slave/m-p/...

Best regards, Daniel.

0 件の賞賛
返信