LPC812 does not handle STOP after ACK

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

LPC812 does not handle STOP after ACK

1,080 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by remcopoelstra on Thu Nov 27 03:56:03 MST 2014
Hi,

It seems that when the master-receiver sends an ACK and then a STOP, the LPC812 I2C controller signals a SLVPENDING interrupt and pulls down the SDA line.
Since I know the transaction should end, as the byte count is known, I instruct the slave control register to send back NACK's for SLVPENDING interrupts that I don't epxect.
How can I make sure that the I2C Controller handles the STOP after the ACK?

Regards,

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

1,070 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by remcopoelstra on Thu Nov 27 06:38:54 MST 2014
I think I've found a solution for this problem.
If I write 0xff to the data register, then the LPC812 tries to send a high level while the master toggles SDA from low to high for the STOP condition, so the master wins in this case.
0 项奖励
回复