DocID025202 Rev 7
498/1080
RM0365
Advanced-control timers (TIM1)
549
Figure 176. PWM output state following BKIN assertion (OSSI=0)
20.3.17 Clearing
the
OCxREF signal on an external event
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.
shows the behavior of the OCxREF signal when the ETRF Input becomes High,
for both values of the enable bit OCxCE. In this example, the timer TIMx is programmed in
PWM mode.
069
%.,1
2&[
,2VWDWH
'HDGWLPH
$FWLYH
,QDFWLYH
'LVDEOHG
,2VWDWHGHILQHGE\WKH*3,2FRQ,=
,2VWDWHGHILQHGE\WKH*3,2FRQ,=
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 update event (UEV) occurs. 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.