Periodic Interrupt Source - which timer is best?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Periodic Interrupt Source - which timer is best?

1,539 次查看
Jiun_Yong
Contributor III

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)

标签 (1)
0 项奖励
回复
1 回复

1,232 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

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!
-----------------------------------------------------------------------------------------------------------------------