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
193
/
631
Figure 10-30 Control circuit in Trigger Mode + External Clock Mode2
Timer synchronization
All TIM timers are internally connected for timer synchronization or chaining. For more details, see 11.3.14.
6-step PWM generation
In order to modify the configuration of all channels at the same time, the configuration of the next step can be set in
advance (the preloaded bits are OCxMD, CCxEN and CCxNEN). When a COM commutation event occurs, the
OCxMD, CCxEN, and CCxNEN preload bits are transferred to the shadow register bits.
COM commutation event generation method:
1. The software sets TIMx_EVTGEN.CCUDGN;
2. Generated by hardware on the rising edge of TRGI;
When a COM commutation event occurs, the TIMx_STS.COMITF flag will be set, enabling interrupts
(TIMx_DINTEN.COMIEN) will generate interrupts, and enabling DMA requests (TIMx_DINTEN.COMDEN) will
generate DMA requests.
The following figure shows the output timing diagram of OCx and OCxN when a COM commutation event occurs
in three different configurations:
TI1
Counter register
64
65
66
ETR
TITF
Counter clock=CK_CNT=CK_PSC
CNTEN