Content originally posted in LPCWare by shoeloader on Tue Jul 08 01:59:52 MST 2014
I found out what I did wrong. The SLVPENDING isn't set when there is a SLVDESEL interrupt. So I only processed the SLVDESEL flag when the SLVPENDING flag was high.
By then It was too late. Another side effect was that I didn't clear that flag so I got millions of interrupts which caused me to miss timer overflow interrupts.