GD32VF103 User Manual
245
Figure 15-23. Hall sensor timing between two timers
CH0VAL
Counter
CI0(OXR)
CH0_IN
CH1_IN
CH2_IN
CH0_O
CH0_ON
CH1_O
CH1_ON
CH2_O
CH2_ON
Va
Va
Vb
Vb
Vc
Vc
Advanced/General L0 TIMER_in under input capture mode
Advanced TIMER_out under output compare mode(PWM with Dead-time)
Slave controller
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 15-4. Slave mode example table
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
101: CI0FE0
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
prescaler can be used.