
Rev. 1.00
312 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
15 Motor Control T
imer (MCTM)
Update Management
The update events are categorised into two different types which are the update event 1, UEV1, and
update event 2, UEV2. The update event 1 is used to update the CRR, the PSCR, the CHxACR and
the CHxCCR values from the actual registers to the corresponding shadow registers. An update
event 1 occurs when the counter overflows or underflows, the UEV1G bit is set or the slave restart
mode is triggered. The update event 2 is used to update the CHxE, CHxNE and CHxOM control
bits. An update event 2 is generated when a rising edge on the STI occurs or the corresponding
software update event 2 generation bit, UEV2G, is set.
Update Event 1
The UEV1DIS bit in the CNTCFR register can determine whether an update event 1 occurs or
not. When the update event 1 occurs, the corresponding update event interrupt will be generated
depending upon whether the update event 1 interrupt generation function is enabled or not by
configuring the UGDIS bit in the CNTCFR register. For a more detailed description, refer to the
UEV1DIS and UGDIS bit definition in the CNTCFR register.
UEV1DIS
UEV1 (Update PSCR, CRR,
CHxCCR, CHxACR Shadow
Registers)
Slave Restart mode
UGDIS
Counter Overflow / Underflow
UEV1DIS
UEV1 interrupt
UEV1G
Slave Restart mode
Update Event 1 Management
Update Event 1 Interrupt Management
UEV1G
Counter Overflow / Underflow
Figure 105. Update Event 1 Setup Diagram