Download Print this page

Infineon GPT12 Timer Concatenation 1 Manual page 7

Timer concatenation of gpt12, aurix tc2xx microcontroller training
Hide thumbs Also See for GPT12 Timer Concatenation 1:

Advertisement

Implementation
The Interrupt Service Routines (ISRs)
The incrementation of the counter values is different for both timers:
The counter of timer T6 (Timer Mode) is incremented with the frequency of timer T6.
The counter of timer T5 (Counter Mode) is incremented by each overflow of timer
T6.
The overflow of each timer triggers an interrupt.
Each timer has associated its own Interrupt Service Routine.
The ISR of timer T6 is triggered after the overflow of the 16-bit timer value of timer T6.
Due to the timer concatenation, the ISR of timer T5 is triggered with the overflow of the
32-bit timer value. This ISR toggles an LED.
The 32-bit timer value is calculated in the ISR of T6 and is represented by
timerValueHIGH (T5) and timerValueLOW (T6).
2019-10-17
Copyright © Infineon Technologies AG 2019. All rights reserved.
7

Advertisement

loading