EasyManuals Logo

ST STM8S Reference Manual

ST STM8S
449 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #201 background imageLoading...
Page #201 background image
RM0016 16-bit advanced control timer (TIM1)
Doc ID 14587 Rev 8 201/449
17.7.13 Capture/compare enable register 1 (TIM1_CCER1)
Address offset: 0x0C
Reset value: 0x00
76543210
CC2NP CC2NE CC2P CC2E CC1NP CC1NE CC1P CC1E
rw rw rw rw rw rw 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 Figure 64):
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 Figure 64):
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.

Table of Contents

Other manuals for ST STM8S

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM8S and is the answer not in the manual?

ST STM8S Specifications

General IconGeneral
BrandST
ModelSTM8S
CategoryMicrocontrollers
LanguageEnglish

Related product manuals