GD32F20x User Manual
472
1: Generate an update event
Channel control register 0 (TIMERx_CHCTL0)
Address offset: 0x18
Reset value: 0x0000 0000
This register has to be accessed by word(32-bit).
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved.
Reserved
CH0COMCTL[2:0]
CH0COM
SEN
CH0COM
FEN
CH0MS[1:0]
CH0CAPFLT[3:0]
CH0CAPPSC[1:0]
rw
rw
rw
Output compare mode:
Bits
Fields
Descriptions
31:7
Reserved
Must be kept at reset value.
6:4
CH0COMCTL[2:0]
Channel 0 compare output control
This bit-field controls the behavior of the output reference signal O0CPRE which
drives CH0_O and CH0_ON. O0CPRE is active high, while CH0_O and CH0_ON
active level depends on CH0P and CH0NP bits.
000: Frozen. The O0CPRE signal keeps stable, independent of the comparison
between the register TIMERx_CH0CV and the counter TIMERx_CNT.
001: Set the channel output. O0CPRE signal is forced high when the counter
matches the output compare register TIMERx_CH0CV.
010: Clear the channel output. O0CPRE signal is forced low when the counter
matches the output compare register TIMERx_CH0CV.
011: Toggle on match. O0CPRE toggles when the counter matches the output
compare register TIMERx_CH0CV.
100: Force low. O0CPRE is forced low level.
101: Force high. O0CPRE is forced high level.
110: PWM mode0. When counting up, O0CPRE is high as long as the counter is
smaller than TIMERx_CH0CV, otherwise it is low. When counting down, O0CPRE
is low as long as the counter is larger than TIMERx_CH0CV, otherwise it is high.
111: PWM mode1. When counting up, O0CPRE is low as long as the counter is
smaller than TIMERx_CH0CV, otherwise it is high. When counting down,
O0CPRE is high as long as the counter is larger than TIMERx_CH0CV, otherwise
it is low.
When configured in PWM mode, the O0CPRE level changes only when the output
compare mode switches from “frozen” mode to “PWM” mode or when the result of
the comparison changes.
Содержание GD32F20 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F20x ARM Cortex M3 32 bit MCU User Manual Revision 2 2 Oct 2019 ...
Страница 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Страница 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Страница 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Страница 385: ...GD32F20x User Manual 385 ...
Страница 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...