IOC timer0/1 channels overflow flag

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

IOC timer0/1 channels overflow flag

跳至解决方案
326 次查看
UmaMaheswaraReddy
Contributor IV

Hi,

 

Micro: S12ZVCA192

For TIM 0/1 channels timer overflow, TFLG2 TOF flag will get set. If we enable multiple channels of TIM0/1 at a time, How to find TFLG2 TOF flag is set because of which channel timer overflow?

 

 

0 项奖励
回复
1 解答
307 次查看
lama
NXP TechSupport
NXP TechSupport

Hi,

Table 1-13. Interrupt Vector Locations   (Reference Manual)

Vector base + 0x1AC TIM0 timer overflow I bit TIM0TSCR2 (TOF) No Yes

Vector base + 0x08C TIM1 timer overflow I bit TIM1TSCR2 (TOF) No Yes

As you can see different vector number is used for the channels.

 

Moreover, 0x000F is an offset for the register TFLG2 for each timer.

Exact address can be found:

For

TIM0: chapter: M.11 0x05C0-0x05EF TIM0

TIM1: chapter M.8 0x0400-0x042F TIM1

 

If you use code warrior you van also check header file to get definition of the registers for given timer.

 

Best regards,

Ladislav

在原帖中查看解决方案

0 项奖励
回复
1 回复
308 次查看
lama
NXP TechSupport
NXP TechSupport

Hi,

Table 1-13. Interrupt Vector Locations   (Reference Manual)

Vector base + 0x1AC TIM0 timer overflow I bit TIM0TSCR2 (TOF) No Yes

Vector base + 0x08C TIM1 timer overflow I bit TIM1TSCR2 (TOF) No Yes

As you can see different vector number is used for the channels.

 

Moreover, 0x000F is an offset for the register TFLG2 for each timer.

Exact address can be found:

For

TIM0: chapter: M.11 0x05C0-0x05EF TIM0

TIM1: chapter M.8 0x0400-0x042F TIM1

 

If you use code warrior you van also check header file to get definition of the registers for given timer.

 

Best regards,

Ladislav

0 项奖励
回复