GD32A50x User Manual
433
Figure 18-55.
Counter behavior with CI0FE0 polarity non-inverted in mode 2
CI0FE0
CI1FE1
CNT_REG
21
20
22
23
24
25
24
23
22
21
20
19
TIMERx_CAR
99
Figure 18-56.
Counter behavior with CI0FE0 polarity inverted in mode 2
CI0FE0
CI1FE1
CNT_REG
19
20
18
17
16
15
16
17
18
19
20
21
TIMERx_CAR
99
Hall sensor function
Refer to
Advanced timer (TIMERx, x=0, 7, 19, 20)Hall sensor function
Master-slave management
The TIMERx can be synchronized with a trigger in several modes including restart mode,
pause mode and event mode which is selected by the SMC[2:0] bits in the TIMERx_SMCFG
register. The input trigger of these modes can be selected by the TRGS[2:0] bits in the
TIMERx_SMCFG register.
Table 18-8.
Examples of slave mode
Mode Selection
Source Selection
Polarity Selection
Filter and Prescaler
LIST
SMC[2:0]
3'b100 (restart mode)
3'b101 (pause mode)
3'b110 (event mode)
TRGS[2:0]
000: ITI0
001: ITI1
010: ITI2
011: ITI3
100: CI0F_ED
If CI0FE0 or CI1FE1 is
selected as the trigger
source, configure the
CHxP and CHxNP for
the polarity selection
and inversion.
For the ITIx, no filter
and prescaler can be
used.
For the CIx, filter can be
used by
configuring
CHxCAPFLT,
no