![Geehy SEMICONDUCTOR APM32F030x4x6x8xC Скачать руководство пользователя страница 174](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f030x4x6x8xc/apm32f030x4x6x8xc_user-manual_573629174.webp)
www.geehy.com Page 173
Field
Name
R/W
Description
When CC1 channel is configured as input:
Then CC1NPOL and CC1POL control the polarity of the triggered or
captured signals TI1FP1 and TI2FP1 for the same time.
15:4
Reserved
Table 51 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
Reset value: 0x0000
Field
Name
R/W
Description
15:0
PSC
R/W
Prescaler Value
Clock frequency of counter (CK_CNT)
=
f
CK_PSC
/(PSC+1)
Auto reload register (TMRx_AUTORLD)
Offset address: 0x2C
Reset value: 0xFFFF
Field
Name
R/W
Description
15:0
AUTORLD R/W
Auto Reload Value
When the value of auto reload is empty, the counter will not count.
Channel 1 capture/compare register (TMRx_CC1)
Offset address: 0x34
Reset value: 0x0000
Field
Name R/W
Description
15:0
CC1
R/W
Capture/Compare Channel 1 Value
When the capture/compare channel 1 is configured as input mode:
CC1 contains the counter value transmitted by the last input capture channel 1
event.
When the capture/compare channel 1 is configured as output mode:
CC1 contains the current load capture/compare register value
Compare the value CC1 of the capture and compare channel 1 with the value
CNT of the counter to generate the output signal on OC1.
When the output compare preload is disabled (OC1PEN=0 for TMRx_CCM1
register), the written value will immediately affect the output compare results;
If the output compare preload is enabled (OC1PEN=1 for TMRx_CCM1