I am asking this out of general interest:
My application includes a 1 millisecond timer, which obviously generates an interrupt every millisecond.
When I create a Periodic Timer with Processor Expert, I am presented with a number of options for the Periodic Interrupt Source.:
1. One of the Timer/PWM Channels
2. One of the Periodic Interrupt Timers
3. Low Power Timer
But does anyone have some guidance on what is the "preferred" interrupt source?
What advantages does any option have over another?
(PS: for the record, I am working on KL26 and KL03 processors)
Hello STEVE,
If you only use the timer interrupt function , the three module all can generates an interrupt every millisecond.
While the TPM mode can generate PWM signal ,Input capture mode and output compare ;
The PIT mode can generate DMA trigger pulses, only can be sued to the time cunt ;
The LPTMR can run at the five mode : Run, Wait , Stop, Low-Leakage, Debug .
So i think , if you only want generates an interrupt every millisecond , the PIT is enough, for
it can configuration easily .
Hope it helps
Have a great day,
Alice Yang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------