
Rev. 1.00
302 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)
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
CK_CNT
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
Figure 97. Update Event 1 Dependent Repetition Mechanism Example