GD32F10x User Manual
377
TIMERx_CHCTL0 register. The OxCPRE signal will not return to its active level until the next
update event occurs.
Master-slave management
The TIMERx can be synchronized with a trigger in several modes including the restart mode,
the pause mode and the event mode which is selected by the SMC [2:0] in the
TIMERx_SMCFG register. The trigger input of these modes can be selected by the TRGS
[2:0] in the TIMERx_SMCFG register.
Table 15-10. Slave mode examples
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
110: CI1FE1
111: Reserved
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.
Exam1
Restart mode
The counter will be
cleared and restart
when a rising edge of
trigger input comes.
TRGS[2:0] = 3’b000
ITI0 is selected.
For ITI0, no polarity
selector can be used.
For the ITI0, no filter
and prescaler can be
used.
Figure 15-60. Restart mode
TIMER_CK
CEN
CNT_REG
94
95
96
97
98
99
0
1
2
3
4
0
1
2
UPIF
ITI0
TRGIF
Internal sync delay
Exam2
Pause mode
The counter will be
paused when the
trigger input is low,
and it will start when
the trigger input is
TRGS[2:0]=3’b101
CI0FE0 is selected.
CH0P=0,
CI0FE0 does not
invert. The capture
event will occur on the
rising edge only.
Filter is bypassed in
this example.
Summary of Contents for GD32F10 Series
Page 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Page 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Page 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Page 427: ...GD32F10x User Manual 427 value ...
Page 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...