When exactly is PIT reset? Kinetis

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

When exactly is PIT reset? Kinetis

571 Views
ignisuti
Contributor IV

Is a Periodic Interrupt Timer (PIT) reset the moment the rollover/interrupt occurs, or the moment the interrupt flag is cleared?

Also, if poor code was involved and the interrupt took way to long, would such and interrupt routine be re-entrant?

Labels (1)
0 Kudos
1 Reply

325 Views
Paul_Tian
NXP Employee
NXP Employee

Hi, Joe

Yes, PIT load their start values, as specified in their LDVAL registers, then count down until they reach 0. Each time a timer reaches 0, it will generate a trigger pulse and set the interrupt flag. Then they load their respective start value again. So it can reset value.

Hope my reply can help you.

Best Regards

Paul

0 Kudos