PIT interrupt in KL25

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

PIT interrupt in KL25

1,003 Views
hotashu
Contributor III

Hello,

I use KL25 PIT interrupt. in vector table, there is only one PIT interrupt.
if i enable both PIT channel 0 and 1 (PIT0 and PIT1 ). how can i know which interrupt(PIT0 or PIT1) happened in PIT interrupt?

thanks!

0 Kudos
Reply
1 Reply

547 Views
lupogrigio
Contributor III

Dear Sir,

Kinetis KL25 has a PIT module with two channels. When you execute the procedure pointed from the PIT vector (i.e. the isr linked to the interrupt you can read the Timer Flag Register (PIT_TFLGn) of the channel 0 and channel 1. The one with the bit field TIF set to one has generated the interrupt request. Reading it the flag will be cleared, as describer in the Reference Manual at chapter 32.3.7.

Best Regards