DocID025202 Rev 7
684/1080
RM0365
General-purpose timers (TIM15/TIM16/TIM17)
692
Note:
The state of the external I/O pins connected to the complementary OCx and OCxN channels
depends on the OCx and OCxN channel state and AFIO registers.
22.6.8
TIM16/TIM17 counter (TIMx_CNT)
Address offset: 0x24
Reset value: 0x0000 0000
Table 125. Output control bits for complementary OCx and OCxN channels with break feature
(TIM16/17)
Control bits
Output states
(1)
MOE bit OSSI bit OSSR bit CCxE bit CCxNE bit OCx output state
OCxN output state
1
X
X
0
0
Output Disabled (not driven by the timer: Hi-Z)
OCx=0
OCxN=0, OCxN_EN=0
0
0
1
Output Disabled (not driven
by the timer: Hi-Z)
OCx=0
Polarity
OCxN=OCxREF XOR CCxNP
0
1
0
Polarity
OCx=OCxREF XOR CCxP
Output Disabled (not driven by
the timer: Hi-Z)
OCxN=0
X
1
1
OCREF + Po dead-
time
Complementary to OCREF (not
OCREF) + Po dead-time
1
0
1
Off-State (output enabled
with inactive state)
OCx=CCxP
Polarity
OCxN=OCxREF XOR CCxNP
1
1
0
Polarity
OCx=OCxREF XOR CCxP,
OCx_EN=1
Off-State (output enabled with
inactive state)
OCxN=CCxNP, OCxN_EN=1
0
0
X
X
X
Output disabled (not driven by the timer anymore). The
output state is defined by the GPIO controller and can be
High, Low or Hi-Z.
1
0
0
0
1
Off-State (output enabled with inactive state)
Asynchronously: OCx=CCxP, OCxN=CCxNP
Then if the clock is present: OCx=OISx and OCxN=OISxN
after a dead-time, assuming that OISx and OISxN do not
correspond to OCX and OCxN both in active state
1
0
1
1
1. When both outputs of a channel are not used (control taken over by GPIO controller), the OISx, OISxN, CCxP and CCxNP
bits must be kept cleared.
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
UIF
CPY
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
r
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
CNT[15:0]
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw