FTM vs PIT vs LPTMR

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

FTM vs PIT vs LPTMR

1,809 次查看
LArmstrong1985
Contributor III

Hi,

I have seen that Kinetis MCU are equipped with different types of timers: FTM, PIT and LPTMR.

I wanted to know: what are the purposes of each type of timer? What are the differences in terms of performance and jitter time?

Another question regarding FTM. A lower prescaler affects cpu performance (since there are more interrupts) or no?

Thank you in advance!

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

1,716 次查看
ErichStyger
Specialist I

In a nutshell:

The PIT is a simple periodic timer. Similar to the SysTick (which is part of the ARM core).

The FTM is a more flexible timer (f == flex) which has multiple channels, input capture, output compare, combined modes, quadrature sampling, ...

The LPTMR is a special timer which can run in low power mode and is able to wake up the system in most modes (if configured as such.

About performance: this all depends on the clock input settings, but I would say they are the same.

Prescaler: this slows down the counting speed of the timer, so useful to keep the timer running at a lower speed. Of course if you have the timer configured to generate interrupts, the interrupts will happe less frequent too. The CPU performance is mostly depending on the core clock speed, and depends what is important for you: if you have too many interupts, of course your CPU won't be able to do much outside of interrupts, if all your time is spent inside the ISR.

I hope this helps,

Erich