
Rev. 1.00
290 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
15 Motor Control T
imer (MCTM)
Repetition Down-Counter Operation
The update event 1 is usually generated at each overflow or underflow event occurrence. However,
when the repetition operation is active by assigning a non-zero value into the REPR register, the
update event is only generated if the REPR counter has reached zero. The REPR value is decreased
when the following conditions occur:
▆
At each counter overflow in the up-counting mode
▆
At each counter underflow in the down-counting mode
▆
At each counter overflow and underflow in the center-aligned counting mode
1
2
3
4
5
0
1
2
3
4
5
0
1
2
3
4
0
1
2
1
0
3
2
1
0
3
2
1
0
3
2
1
0
3
3
2
Up-Counting
Down-Counting
Center-Aligned-Counting
CK_CNT
CNTR
REPR
UEV1
CNTR
REPR
UEV1
3
4
3
2
1
0
1
2
3
4
3
2
1
0
1
2
3
4
3
2
1
0
2
CNTR
UEV1
1
REPR
REPR Counter = 0
REPR Counter = 1
REPR Counter = 0
REPR Counter = 0
REPR Counter = 2
REPR Counter = 1
REPR Counter = 0
REPR Counter = 0
REPR Counter = 1
REPR Counter = 0
REPR Counter = 1
REPR Counter = 1 REPR Counter = 0
CK_CNT
Figure 77. Update Event 1 Dependent Repetition Mechanism Example