IOC timer0/1 channels overflow flag

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IOC timer0/1 channels overflow flag

ソリューションへジャンプ
898件の閲覧回数
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 解決策
879件の閲覧回数
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 返信
880件の閲覧回数
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 件の賞賛
返信