380
/
838
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
Bit field
Name
Description
5
CC2P
Capture/Compare 2 output polarity
See TIMx_CCEN.CC1P description.
4
CC2EN
Capture/Compare 2 output enable
See TIMx_CCEN.CC1EN description.
3:2
Reserved
Reserved, the reset value must be maintained
1
CC1P
Capture/Compare 1 output polarity
When the corresponding channel of CC1 is in output mode:
0: OC1 active high
1: OC1 active low
When the corresponding channel of CC1 is in input mode:
At this time, this bit is used to select whether IC1 or the inverse signal of IC1 is used as the trigger or
capture signal.
0: non-inverted: Capture action occurs when IC1 generates a rising edge. When used as external
trigger, IC1 is non-inverted.
1: inverted: Capture action occurs when IC1 generates a falling edge. When used as external trigger,
IC1 is inverted.
Note: If TIMx_BKDT.LCKCFG = 3 or 2, these bits cannot be modified.
0
CC1EN
Capture/Compare 1 output enable
When the corresponding channel of CC1 is in output mode:
0: Disable - Disable output OC1 signal.
1: Enable - Enable output OC1 signal.
When the corresponding channel of CC1 is in input mode:
At this time, this bit is used to disable/enable the capture function.
0: Disable capture
1: Enable capture
Table 12-4 Output control bits of standard OCx channel
CCxEN
OCx output status
0
Disable output (OCx=0)
1
OCx = polarity
Note: The state of external I/O pins connected to standard OCx channels depends on the OCx channel state and
GPIO and AFIO registers.
12.4.11
Counters (TIMx_CNT)
Offset address: 0x24
Reset value: 0x0000