Download Print this page

ST STM32F301 6 Series Reference Manual page 374

Advanced arm-based 32-bit mcus

Advertisement

Advanced-control timer (TIM1)
BKIN
OCx
I/O state
17.3.17
Clearing the OCxREF signal on an external event
The OCxREF signal of a given channel can be cleared when a high level is applied on the
ocref_clr_int input (OCxCE enable bit in the corresponding TIMx_CCMRx register set to 1).
OCxREF remains low until the next transition to the active state, on the following PWM
cycle. This function can only be used in Output compare and PWM modes. It does not work
in Forced mode. ocref_clr_int input can be selected between the OCREF_CLR input and
ETRF (ETR after the filter) by configuring the OCCS bit in the TIMx_SMCR register.
When ETRF is chosen, ETR must be configured as follows:
1.
The External Trigger Prescaler should be kept off: bits ETPS[1:0] of the TIMx_SMCR
register set to '00'.
2.
The external clock mode 2 must be disabled: bit ECE of the TIMx_SMCR register set to
'0'.
3.
The External Trigger Polarity (ETP) and the External Trigger Filter (ETF) can be
configured according to the user needs.
Figure 137
for both values of the enable bit OCxCE. In this example, the timer TIMx is programmed in
PWM mode.
374/874
Figure 136. PWM output state following BKIN assertion (OSSI=0)
Deadtime
Active
Inactive
shows the behavior of the OCxREF signal when the ETRF Input becomes High,
RM0366 Rev 5
I/O state defined by the GPIO controller (HI-Z)
I/O state defined by the GPIO controller (HI-Z)
Disabled
RM0366
MS33104V1

Advertisement

loading
Need help?

Need help?

Do you have a question about the STM32F301 6 Series and is the answer not in the manual?

This manual is also suitable for:

Stm32f301 8 seriesStm32f318 8 series