RM0016
17.7.13
Capture/compare enable register 1 (TIM1_CCER1)
Address offset: 0x0C
Reset value: 0x00
7
6
CC2NP
CC2NE
rw
rw
Bit 7 CC2NP: Capture/compare 2 complementary output polarity
Refer to CC1NP description.
Bit 6 CC2NE: Capture/compare 2 complementary output enable
Refer to CC1NE description.
Bit 5 CC2P: Capture/compare 2 output polarity
Refer to CC1P description.
Bit 4 CC2E: Capture/compare 2 output enable
Refer to CC1E description.
Bit 3 CC1NP: Capture/compare 1 complementary output polarity
0: OC1N active high
1: OC1N active low
Note: This bit is no longer writable while LOCK level 2 or 3 have been programmed (LOCK bits in
TIM1_BKR register) and CC1S = 00 (the channel is configured in output).
On channels that have a complementary output, this bit is preloaded. If the CCPC bit is set in
the TIM1_CR2 register, the CC1NP active bit takes the new value from the preload bit only
when a COM is generated.
Bit 2 CC1NE: Capture/compare 1 complementary output enable
0: Off - OC1N is not active. OC1N level is then a function of the MOE, OSSI, OSSR, OIS1, OIS1N
and CC1E bits.
1: On - OC1N signal is output on the corresponding output pin depending on the MOE, OSSI,
OSSR, OIS1, OIS1N and CC1E bits.
Note: On channels that have a complementary output, this bit is preloaded. If the CCPC bit is set in
the TIM1_CR2 register, the CC1NE active bit takes the new value from the preload bit when a
COM is generated.
Bit 1 CC1P: Capture/compare 1 output polarity
CC1 channel configured as output:
0: OC1 active high
1: OC1 active low
CC1 channel configured as input for trigger function (see
0: Trigger on a high level or rising edge of TI1F
1: Trigger on a low level or falling edge of TI1F
CC1 channel configured as input for capture function (see
0: Capture on a rising edge of TI1F or TI2F
1: Capture on a falling edge of TI1F or TI2F
Note: This bit is no longer writable while LOCK level 2 or 3 have been programmed (LOCK bits in
TIM1_BKR register).
On channels that have a complementary output, this bit is preloaded. If the CCPC bit is set in
the TIM1_CR2 register, the CC1P active bit takes the new value from the preload bit when a
COM is generated.
5
4
CC2P
CC2E
rw
rw
Doc ID 14587 Rev 8
16-bit advanced control timer (TIM1)
3
2
CC1NP
CC1NE
rw
rw
Figure
Figure
1
0
CC1P
CC1E
rw
rw
64):
64):
201/449
Need help?
Do you have a question about the STM8S and is the answer not in the manual?