![Geehy SEMICONDUCTOR APM32F030x4x6x8xC Скачать руководство пользователя страница 208](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f030x4x6x8xc/apm32f030x4x6x8xc_user-manual_573629208.webp)
www.geehy.com Page 207
Field
Name
R/W
Description
11
:
PSC=8
PSC is prescaled factor, which triggers capture once every PSC events.
7:4
IC1F
R/W
Input Capture Channel 1 Filter Configure
0000: Filter disabled, sampling by f
DTS
0001
:
DIV=1
,
N=2
0010
:
DIV=1
,
N=4
0011
:
DIV=1
,
N=8
0100
:
DIV=2
,
N=6
0101
:
DIV=2
,
N=8
0110
:
DIV=4
,
N=6
0111
:
DIV=4
,
N=8
1000
:
DIV=8
,
N=6
1001
:
DIV=8
,
N=8
1010
:
DIV=16
,
N=5
1011
:
DIV=16
,
N=6
1100
:
DIV=16
,
N=8
1101
:
DIV=32
,
N=5
1110
:
DIV=32
,
N=6
1111
:
DIV=32
,
N=8
Sampling frequency=timer clock frequency/DIV; the filter length=N, indicating
that a jump is generated by every N events.
15:8
Reserved
Capture/Compare enable register (TMRx_CCEN)
Offset address: 0x20
Reset value: 0x0000
Field
Name
R/W
Description
0
CC1EN
R/W
Capture/Compare Channel1 Output Enable
When the capture/compare channel 1 is configured as output:
0: Output is disabled
1: Output is enabled
When the capture/compare channel 1 is configured as input:
This bit determines whether the value CNT of the counter can be
captured and enter TMRx_CC1 register
0: Capture is disabled
1: Capture is enabled
1
CC1POL
R/W
Capture/Compare Channel1 Output Polarity Configure
When CC1 channel is configured as output:
0: OC1 high level is valid
1: OC1 low level is valid
When CC1 channel is configured as input:
CC1POL and CC1NPOL control the polarity of the triggered or captured
signals TI1FP1 and TI2FP1 at the same time
00: Non-phase-inverting/rising edge:
TIxFP1 is not reversed phase (triggered in gated and encoder
mode), and is captured at the rising edge of TIxFP1 (reset trigger,
capture, external clock and trigger mode).
01: Inverted phase/Falling edge:
TIxFP1 is reversed phase (triggered in gated and encoder mode),
and is captured at the rising edge of TIxFP1 (reset trigger, capture,
external clock and trigger mode).
10: Reserved
11: Non-phase-inverting/Rising and falling edges:
TIxFP1 is not reversed phase (triggered in gated mode, cannot be used
in encoder mode), and is captured at the rising edge of TIxFP1 (reset