![ARTERY AT32F435 Series Скачать руководство пользователя страница 285](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592285.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 285
Rev 2.03
edge of channel 1 input signal triggers capture and saves captured values to the C2DT register. The
period and duty of channel 1 input signal can be calculated through C1DT and C2DT respectively.
Figure 14-50
Example of PWM input mode configuration
C1P=0
C1CP=0
edge detector
C1IF
C1IN
C1IFP1(pos)
C2IFP1
STCI
C1C(2'b01)
C1IRAW
filter
C1DF
C1EN
Capture trigger
C1INC
IS3
IS2
IS1
CI2FP2
STIS(3'b101)
Trigger
mode
Hang
mode
Reset
mode
SMSEL(3'b110)
C2P=1
C2CP=0
edge detector
C2IN
C1IFP2(neg)
C2IFP2
STCI
C2EN
Capture trigger
C2C(2'b10)
Capture
Capture
CNT counter
C1DT
C2DT
reset
(CH1 period)
(CH1 high level time)
IS0
Figure 14-51
PWM input mode
A
0
1
2
3
4
5
6
7
8
9
A
0
1
2
COUNTER
C1C
CH1
0x1
reset counter and C1DT capture
C1P
0x0
C2C
0x2
C2P
0x1
STIS
0x5
SMSEL
0x6
0xA
0x4
C1DT
C2DT
0x0
C2DT capture
3
4
5
6
7
8
9
A
0
1
2