Content originally posted in LPCWare by gbm on Mon Jan 07 04:45:01 MST 2013
The MAT0 interrupt is not enabled in your code, only MAT1 causes interrupt and it looks like both flags are set at that time, so both LEDs are set at that time. The only strange thing is: why interrupt cause flag is set for MAT0 if MAT0 interrupt is not enabled? This is something not described in the manual as far as I remember.