
Implementation
Timer module frequency
In Timer Mode, the input clock of the timer module is derived from the internal module clock f
CC6
.
By default, the internal module clock f
CC6
is initialized by the iLLDs to run at 100 MHz.
The initialization is done by the function
IfxScuCcu_init()
that can be found in the iLLD header
IfxScuCcu.h
.
Starting from this value, it is possible to set the timer module frequency to the following exact values:
100000000 Hz
= 100 MHz
( f
CC6
)
50000000 Hz
= 50 MHz
( f
CC6
/ 2 )
25000000 Hz
= 25 MHz
( f
CC6
/ 4 )
12500000 Hz
= 12.5 MHz
( f
CC6
/ 8 )
6250000 Hz
= 6.25 MHz
( f
CC6
/ 16 )
3125000 Hz
~ 3 MHz
( f
CC6
/ 32 )
1562500 Hz
~ 1.5 MHz
( f
CC6
/ 64 )
781250 Hz
~ 780 KHz
( f
CC6
/ 128 )
390625 Hz
~ 390 KHz
( f
CC6
/ 256 )
195312.5 Hz
~ 200 KHz
( f
CC6
/ 512 )
97656.25 Hz
~ 100 KHz
( f
CC6
/ 1024 )
48828.12 Hz
~ 50 KHz
( f
CC6
/ 2048 )
24414.06 Hz
~ 25 KHz
( f
CC6
/ 4096 )
12207.03 Hz
~ 12.5 KHz
( f
CC6
/ 8192 )
6103.51 Hz
~ 6 KHz
( f
CC6
/ 16384 )
3051.75 Hz
~ 3 KHz
( f
CC6
/ 32768 )
Note:
Any value can be set as
frequency
parameter, but the software will round up the chosen value to the
nearest higher frequency listed in the above table (e.g. setting
timerConfig.base.t12Frequency = 400000
the timer will run at 781250 Hz).
7
2019-10-17
Copyright © Infineon Technologies AG 2019. All rights reserved.