Hi,
I assume you are using the Init_PIT component and you are writing your own ISR code and not using the one generated by processor expert. Which component you are using?
It is probably that you are not clearing the interrupt flag. Try the next:
void PIT0_Isr( void )
{
if( PIT_TFLG0 )
{
/* clear timer interrupt flag by writing 1*/
PIT_TFLG0 = 0x01;
}
Hope this information can help you
Best Regards,
Adrian Sanchez Cano
Technical Support Engineer
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------