AT32F425
Series Reference Manual
2022.03.30
Page 218
Ver 2.01
–
OWCDIR=0, C1ORAW is high once
TMRx_C1DT>TMRx_CVAL, else low;
-
OWCDIR=1, C1ORAW is low once TMRx_ C1DT
<TMRx_CVAL, else high;
111: PWM mode B
-
OWCDIR=0, C1ORAW is low once TMRx_ C1DT
>TMRx_CVAL, else high;
-
OWCDIR=1, C1ORAW is high once TMRx_ C1DT
<TMRx_CVAL, else low.
Note: In the configurations othern than
000’, the C1OUT
is connected to C1ORAW. The C1OUT output level is not
only subject to the changes of C1ORAW, but also the
output polarity set by CCTRL.
Bit 3
C1OBEN
0x0
rw
Channel 1 output buffer enable
0: Buffer function of TMRx_C1DT is disabled. The new
value written to the
TMRx_C1DT takes effect
immediately.
1: Buffer function of TMRx_C1DT is enabled. The value
to be written to the TMRx_C1DT is stored in the buffer
register, and can be sent to the TMRx_C1DT register only
on an overflow event.
Bit 2
C1OIEN
0x0
rw
Channel 1 output enable immediately
In PWM mode A or B, this bit is used to accelerate the
channel 1 output’s response to the trigger event.
0: Need to compare the CVAL with C1DT before
generating an output
1: No need to compare the CVAL and C1DT. An output is
generated immediately when a trigger event occurs.
Bit 1: 0
C1C
0x0
rw
Channel 1 configuration
This field is used to define the direction of the channel 1
(input or output), and the selection of input pin when
C1
EN=’0’:
00: Output
01: Input, C1IN is mapped on C1IRAW
10: Input, C1IN is mapped on C2IRAW
11: Input, C1IN is mapped on STCI. This mode works only
when the internal trigger input is selected by STIS.
Input capture mode:
Bit
Register
Reset value
Type
Description
Bit 15: 8
Reserved
0x0
resd
Kept at its default value.
Bit 7: 4
C1DF
0x0
rw
Channel 1 digital filter
This field defines the digital filter of the channel 1. N
stands for the number of filtering, indicating that the input
edge can pass the filter only after N sampling events.
0000: No filter, sampling is done at
f
𝐷𝑇𝑆
1000:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐷𝑇𝑆
/8, N=6
0001:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐶𝐾_𝐼𝑁𝑇
, N=2
1001:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐷𝑇𝑆
/8, N=8
0010:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐶𝐾_𝐼𝑁𝑇
, N=4
1010:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐷𝑇𝑆
/16, N=5
0011:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐶𝐾_𝐼𝑁𝑇
, N=8
1011:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐷𝑇𝑆
/16, N=6
0100:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐷𝑇𝑆
/2, N=6
1100:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐷𝑇𝑆
/16, N=8
0101:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐷𝑇𝑆
/2, N=8
1101:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐷𝑇𝑆
/32, N=5
0110:
f
𝑆𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐷𝑇𝑆
/4, N=6
1110:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐷𝑇𝑆
/32, N=6
0111:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐷𝑇𝑆
/4, N=8
1111:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐷𝑇𝑆
/32, N=8
Bit 3: 2
C1IDIV
0x0
rw
Channel 1 input divider
This field defines Channel 1 input divider.