![Geehy SEMICONDUCTOR APM32F405 Series Скачать руководство пользователя страница 257](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630257.webp)
www.geehy.com Page 256
Field
Name
R/W
Description
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
trigger, capture, external clock and trigger mode).
2
Reserved
3
CC1NPOL R/W
Capture/Compare Channel1 Output Polarity Configure
When CC1 channel is configured as output:
CC1NPOL remains in cleared state all the time
When CC1 channel is configured as input:
This bit and CC1POL control the polarity of the triggered or captured
signals TI1FP1 and TI2FP1 at the same time.
15:4
Reserved
Table 73 Output Control Bit of Standard OCx Channel
CCxEN bit
OCx output state
0
Output is disabled (OCx=0, OCx_EN=0)
1
OCx=polarity, OCx_EN=1
Note: The state of external I/O pin connected to the standard OCx channel depends on the state of the
OCx channel and the GPIO and AFIO registers.
Counter register (TMRx_CNT)
Offset address: 0x24
Reset value: 0x0000
Field
Name
R/W
Description
15:0
CNT
R/W Counter Value
Prescaler register (TMRx_PSC)
Offset address: 0x28