Nations Technologies Inc.
Tel
:
+86-755-86309900
:
info@nationstech.com
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
189
/
631
Figure 10-26 Output behavior in response to a break
Debug mode
When the microcontroller is in debug mode (the Cortex-M4 core halted), depending on the DBG_CTRL.TIMx_STOP
configuration in the DBG module, the TIMx counter can either continue to work normally or stop. For more details,
TIMx and external trigger synchronization
TIMx timers can be synchronized by a trigger in slave modes (reset, trigger and gated).
Slave mode: Reset mode
In reset mode, the trigger event can reset the counter and the prescaler updates the preload registers TIMx_AR,
TIMx_CCDATx, and generates the update event UEV (TIMx_CTRL1.UPRS=0).
The following is an example of a reset mode:
1. Channel 1 is configured as input to detect the rising edge of TI1 (TIMx_CCMOD1.CC1SEL=01,
TIMx_CCEN.CC1P=0);
2. The slave mode is selected as reset mode (TIMx_SMCTRL.SMSEL=100), and the trigger input is selected as TI1
(TIMx_SMCTRL.TSEL=101);
OCxREF
Delay
Delay
Delay
Delay
OCx
OCxN
(CCxENN=1,CCxNEN=1,CCxP=0,CCxNP=0,OIx= ~OIxN)
OCxN
(CCxEN=1,CCxNEN=0,CCxP=0,CCxNP=0,OIx=OIxN)
OCx
OCxN
(CCxEN=1,CCxNEN=0,CCxP=0,CCxNP=0,OIx=~OIxN)
OCx
Break in
=OIx
=OIx
=OIxN
=OIxN