
Rev. 1.00
322 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
16 Motor Control T
imer (MCTM)
16 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 control bit 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 125. Update Event 1 Setup Diagram