Timer in LPC546xx

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

Timer in LPC546xx

跳至解决方案
1,562 次查看
hemanthvasista
Contributor IV

Hello ,

I am working on the LPC546xx based device.
I intend to use the timer for generating interrupt at various time interval.

I came across various timers
1. Multi-Rate Timer (MRT)
2. Repetitive Interrupt Timer (RIT)
3. System tick timer (SYSTICK)
4. Micro-tick Timer (UTICK)
5. CTimer
6. SCTimer/PWM

Is there any document/application note given info of comparison of timer, when to use, interrupt priority, interrupt latency..

regards,
Hemanth

标签 (1)
0 项奖励
回复
1 解答
1,507 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Hemanth,

First of all, let's talk about the interrupt priority, interrupt latency, the interrupt priority and interrupt latency are core attributes, the LPC546xx uses  Cortex-M4, it supports the nested interrupt mechanism(preemptive interrupt mechanism), each interrupt can be set up with an individual priority level. Each interrupt has the the same interrupt latency, it is not related to interrupt priority.

Regarding the function of different Timer modules, I do not think there is application note which focuses on the comparison. But I can give a review.

1)SCTimer/PWM: can generate complicated PWM signal to control even motor, have capture function, can generate interrupt with programmable interval, can be a frequency divider.

2)CTimer: can generate simple PWM signal, can generate interrupt with programmable interval, has capture function, can be a frequency divider.

3)Multi-Rate Timer (MRT): can only generate interrupt

4)Repetitive Interrupt Timer (RIT): can only generate interrupt

5)System tick timer (SYSTICK): can generate interrupt for core

6)Micro-tick Timer (UTICK): can generate interrupt, and have capture function

Hope it can help you

BR

Xiangjun Rong

在原帖中查看解决方案

1 回复
1,508 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Hemanth,

First of all, let's talk about the interrupt priority, interrupt latency, the interrupt priority and interrupt latency are core attributes, the LPC546xx uses  Cortex-M4, it supports the nested interrupt mechanism(preemptive interrupt mechanism), each interrupt can be set up with an individual priority level. Each interrupt has the the same interrupt latency, it is not related to interrupt priority.

Regarding the function of different Timer modules, I do not think there is application note which focuses on the comparison. But I can give a review.

1)SCTimer/PWM: can generate complicated PWM signal to control even motor, have capture function, can generate interrupt with programmable interval, can be a frequency divider.

2)CTimer: can generate simple PWM signal, can generate interrupt with programmable interval, has capture function, can be a frequency divider.

3)Multi-Rate Timer (MRT): can only generate interrupt

4)Repetitive Interrupt Timer (RIT): can only generate interrupt

5)System tick timer (SYSTICK): can generate interrupt for core

6)Micro-tick Timer (UTICK): can generate interrupt, and have capture function

Hope it can help you

BR

Xiangjun Rong