LPC812 does not handle STOP after ACK

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

LPC812 does not handle STOP after ACK

553 Views
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
Labels (1)
0 Kudos
1 Reply

543 Views
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 Kudos