Download Print this page

Infineon GPT12 Timer Concatenation 1 Manual page 5

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

Advertisement

Implementation
Configuration of the GPT12 module
The function init_GPT12_module() is used to configure the two timers T5 and T6 of
GPT2 for concatenated 32-bit operation. It contains the following steps:
The GPT12 module is enabled by calling the function IfxGpt12_enableModule().
GPT2 prescaler is set to IfxGpt12_Gpt2BlockPrescaler_2 to get the highest possible
frequency by calling IfxGpt12_setGpt2BlockPrescaler().
The functions IfxGpt12_T6_setMode() and IfxGpt12_T5_setMode() are used to
configure the modes of both timers. The core timer T6 is set to IfxGpt12_Mode_timer
and the auxiliary timer T5 is set to IfxGpt12_Mode_counter.
Both the rising and falling edge of the Output Toggle Latch of timer T6 are selected as
active transition with the function IfxGpt12_T5_setCounterInputMode().
The function IfxGpt12_T5_setRemoteControl() configures the timer T5 to be
activated by the run bit of core timer T6. IfxGpt12_T6_run() function starts timer T6
and implicitly timer T5, because the overflow of T6 is used as clock for T5.
The functions above are provided by the iLLD header IfxGpt12.h.
2019-10-17
Copyright © Infineon Technologies AG 2019. All rights reserved.
5

Advertisement

loading