GD32F10x User Manual
332
Figure 15-38. Timing chart of center-aligned counting mode
shows some examples of
the counter behavior for different clock frequencies when TIMERx_CAR=0x99,
TIMERx_PSC=0x0.
Figure 15-38. Timing chart of center-aligned counting mode
Hardware set
Software clear
CEN
PSC_CLK
CNT_REG
3
2
1
0
1
2
.
98
99
98
1
0
Underflow
Overflow
TIMERx_CTL0 CAM = 2'b11
TIMER_CK
1
2
.
98
99
98
97
UPIF
CHxIF
CHxIF
TIMERx_CTL0 CAM = 2'b10 (upcount only
)
TIMERx_CTL0 CAM = 2'b10 (downcount only
)
CHxIF
CHxCV=2
2
1
2
Input capture and output compare channels
The general level0 Timer has four independent channels which can be used as capture inputs
or compare match outputs. Each channel is built around a channel capture compare register
including an input stage, channel controller and an output stage.
Channel input capture function
Channel input capture function allows the channel to perform measurements such as pulse
timing, frequency, period, duty cycle and so on. The input stage consists of a digital filter, a
channel polarity selection, edge detection and a channel prescaler. When a selected edge
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 ...