
Rev. 1.00
331 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
16 Motor Control T
imer (MCTM)
Trigger ADC Start
To interconnect to the Analog-to-Digital Converter, the MCTM can output the MTO signal or the
channel compare match output signal CHxOREF (x = 0 ~ 3) to be used as an Analog-to-Digital
Converter input trigger signal.
Lock Level Table
In addition to the break input and output management, a write protection has been internally
implemented in the break circuitry to safeguard the application. Users can choose one protection
level selected by the LOCKLV bits to protect the relative control bits of the registers. The LOCKLV
bits can only be written once after an MCTM or system reset. Then the protected bits will be
locked and can not be changed anymore except by the MCTM reset or when the system is reset.
Table 36. Lock Level Table
Lock Configuration
Protected Bits
Lock Level 1 (LOCKLV = ‘01’) CHDTG
CHxOIS
CHxOISN BKE
BKP
CHAOE
Lock Level 2 (LOCKLV = ‘10’)
CHDTG
CHxOIS
CHxOISN BKE
BKP
CHAOE
CHxP
CHxNP
CHOSSI CHOSSR MCTMEN
(1)
CKMEN
(2)
Lock Level 3 (LOCKLV = ‘11’)
CHDTG
CHxOIS
CHxOISN BKE
BKP
CHAOE
CHxP
CHxNP
CHOSSI CHOSSR MCTMEN
(1)
CKMEN
(2)
CHxPRE CHxOM
Notes:
1. The MCTMEN bit of the APBCCR1 register is located in the CKCU unit and use to control
the clock source of the MCTM unit.
2. The CKMEN bit of the GCCR register is located in the CKCU unit and use to monitor the
high speed external clock (HSE) source. If the CKMEN bit is enabled and when hardware
detects HSE clock stuck at low/high state, internal hardware will automatically switch the
system clock to internal high speed RC clock (HSI) to protect the system safety.
3. When the MCTMEN and CKMEN control bits of the CKCU lock protection mode is enabled
in the MCTM unit, the bits will be allowed to enable only and inhibited to disable again.
Register Map
The following table shows the MCTM registers and reset values.
Table 37. MCTM Register Map
Register
Offset
Description
Reset Value
CNTCFR
0x000
Timer Counter Configuration Register
0x0000_0000
MDCFR
0x004
Timer Mode Configuration Register
0x0000_0000
TRCFR
0x008
Timer Trigger Configuration Register
0x0000_0000
CTR
0x010
Timer Control Register
0x0000_0000
CH0ICFR
0x020
Channel 0 Input Configuration Register
0x0000_0000
CH1ICFR
0x024
Channel 1 Input Configuration Register
0x0000_0000
CH2ICFR
0x028
Channel 2 Input Configuration Register
0x0000_0000
CH3ICFR
0x02C
Channel 3 Input Configuration Register
0x0000_0000
CH0OCFR
0x040
Channel 0 Output Configuration Register
0x0000_0000
CH1OCFR
0x044
Channel 1 Output Configuration Register
0x0000_0000
CH2OCFR
0x048
Channel 2 Output Configuration Register
0x0000_0000
CH3OCFR
0x04C
Channel 3 Output Configuration Register
0x0000_0000
CHCTR
0x050
Channel Control Register
0x0000_0000
CHPOLR
0x054
Channel Polarity Configuration Register
0x0000_0000