Hi Frank,
Just fast hint:
Please do not use commands like TIM0TFLG1_C0F = 1; for flag clearing. This command is translated as read-modify-write command and therefore it will clear all pending interrupt flags instead of only one of them.
Please use commands like TIM0TFLG1 = TIM0TFLG1_C0F_MAP; or TIM0TFLG1 = 0x01; for clearing one flag in your ISR.
For more details please check our application note AN2554 Clearing and Disabling Interrupt Flags
http://www.nxp.com/files/microcontrollers/doc/app_note/AN2554.pdf
I hope it helps you
Have a great day,
Radek
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------