IOC timer0/1 channels overflow flag

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IOC timer0/1 channels overflow flag

Jump to solution
324 Views
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 Kudos
Reply
1 Solution
305 Views
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

View solution in original post

0 Kudos
Reply
1 Reply
306 Views
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 Kudos
Reply