
Rev. 1.00
313 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
15 Motor Control T
imer (MCTM)
15 Motor Control T
imer (MCTM)
Update Event 2
The CHxE, CHxNE, CHxOM control bits for the complementary outputs can be preloaded by
setting the COMPRE bit in the CTR register. Here the shadow bits of the CHxE, CHxNE and
CHxOM bits will be updated when an update event 2 occurs.
COMPRE=1, CHOSSR=1, CHxP=CHxNP=0, CHDTG=0
Update Event 2
CHxE
CHxNE
Shadow CHxE
Shadow CHxNE
CHxOM
Shadow CHxOM
CHxO
CHxNO
PWM1
PWM1
Forced Inactive
Forced Inactive
Forced Active
Forced Active
Figure 106. CHxE, CHxNE and CHxOM Updated by Update Event 2
An update event 2 can be generated by setting the software update bit, UEV2G, in the EVGR
register or by the rising edge of the STI signal if the COMUS bit is set in the CTR register.
STI Rising Edge
COMUS
Update Event 2
(Update CHxE / CHxNE / CHxOM)
UEV2G
Figure 107. Update Event 2 Setup Diagram