stm32 /stm32h7rs /STM32H7R /TIM15 /TIM15_CR2

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as TIM15_CR2

15 1211 87 43 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (B_0x0)CCPC 0 (B_0x0)CCUS 0 (B_0x0)CCDS 0 (B_0x0)MMS0 (B_0x0)TI1S 0 (B_0x0)OIS1 0 (B_0x0)OIS1N 0 (B_0x0)OIS2

MMS=B_0x0, OIS1N=B_0x0, OIS1=B_0x0, TI1S=B_0x0, CCDS=B_0x0, CCPC=B_0x0, OIS2=B_0x0, CCUS=B_0x0

Description

TIM15 control register 2

Fields

CCPC

Capture/compare preloaded control Note: This bit acts only on channels that have a complementary output.

0 (B_0x0): CCxE, CCxNE and OCxM bits are not preloaded

1 (B_0x1): CCxE, CCxNE and OCxM bits are preloaded, after having been written, they are updated only when a commutation event (COM) occurs (COMG bit set or rising edge detected on tim_trgi, depending on the CCUS bit).

CCUS

Capture/compare control update selection Note: This bit acts only on channels that have a complementary output.

0 (B_0x0): When capture/compare control bits are preloaded (CCPC=1), they are updated by setting the COMG bit only.

1 (B_0x1): When capture/compare control bits are preloaded (CCPC=1), they are updated by setting the COMG bit or when an rising edge occurs on tim_trgi.

CCDS

Capture/compare DMA selection

0 (B_0x0): CCx DMA request sent when CCx event occurs

1 (B_0x1): CCx DMA requests sent when update event occurs

MMS

Master mode selection These bits are used to select the information to be sent in master mode to slave timers for synchronization (tim_trgo). The combination is as follows:

0 (B_0x0): Reset - the UG bit from the TIM15_EGR register is used as trigger output (tim_trgo). If the reset is generated by the trigger input (slave mode controller configured in reset mode) then the signal on tim_trgo is delayed compared to the actual reset.

1 (B_0x1): Enable - the Counter Enable signal CNT_EN is used as trigger output (tim_trgo). It is useful to start several timers at the same time or to control a window in which a slave timer is enable. The Counter Enable signal is generated by a logic AND between CEN control bit and the trigger input when configured in gated mode. When the Counter Enable signal is controlled by the trigger input, there is a delay on tim_trgo, except if the master/slave mode is selected (see the MSM bit description in TIM15_SMCR register).

2 (B_0x2): Update - The update event is selected as trigger output (tim_trgo). For instance a master timer can then be used as a prescaler for a slave timer.

3 (B_0x3): Compare Pulse - The trigger output send a positive pulse when the CC1IF flag is to be set (even if it was already high), as soon as a capture or a compare match occurred (tim_trgo).

4 (B_0x4): Compare - tim_oc1refc signal is used as trigger output (tim_trgo).

5 (B_0x5): Compare - tim_oc2refc signal is used as trigger output (tim_trgo).

TI1S

tim_ti1 selection

0 (B_0x0): The tim_ti1_in[15:0] multiplexer output is connected to tim_ti1 input

1 (B_0x1): The tim_ti1_in[15:0] and tim_ti2_in[15:0] multiplexers output are connected to the tim_ti1 input (XOR combination)

OIS1

Output Idle state 1 (tim_oc1 output) Note: This bit can not be modified as long as LOCK level 1, 2 or 3 has been programmed (LOCK bits in TIM15_BKR register).

0 (B_0x0): tim_oc1=0 after a dead-time when MOE=0

1 (B_0x1): tim_oc1=1 after a dead-time when MOE=0

OIS1N

Output Idle state 1 (tim_oc1n output) Note: This bit can not be modified as long as LOCK level 1, 2 or 3 has been programmed (LOCK bits in TIM15_BKR register).

0 (B_0x0): tim_oc1n=0 after a dead-time when MOE=0

1 (B_0x1): tim_oc1n=1 after a dead-time when MOE=0

OIS2

Output idle state 2 (tim_oc2 output) Note: This bit cannot be modified as long as LOCK level 1, 2 or 3 has been programmed (LOCK bits in the TIM15_BKR register).

0 (B_0x0): tim_oc2=0 when MOE=0

1 (B_0x1): tim_oc2=1 when MOE=0

Links

()