32-Bit Arm® Cortex®-M3 MCU
HT32F12364
External Interrupt/Event Controller – EXTI
▆
Up to 16 EXTI lines with configurable trigger source and type
▆
All GPIO pins can be selected as EXTI trigger source
▆
Source trigger type includes high level, low level, negative edge, positive edge or both edges
▆
Individual interrupt enable, wakeup enable and status bits for each EXTI line
▆
Software interrupt trigger mode for each EXTI line
▆
Integrated deglitch filter for short pulse blocking
The External Interrupt/Event Controller, EXTI, comprises 16 edge detectors which can generate
a wake-up event or interrupt requests independently. Each EXTI line can also be masked
independently.
Analog to Digital Converter – ADC
▆
12-bit SAR ADC engine
▆
Up to 1 Msps conversion rate
▆
Up to 8 external analog input channels
A 12-bit multi-channel ADC is integrated in the device. There are multiplexed channels, which
include 8 external analog signal channels and 3 internal channels can be measured. If the input
voltage is required to remain within a specific threshold window, an Analog Watchdog function
will monitor and detect these signals. An interrupt will then be generated to inform the device
that the input voltage is not within the preset threshold levels. There are three conversion modes
to convert an analog signal to digital data. The ADC can be operated in one shot, continuous and
discontinuous conversion modes.
The internal voltage reference (VREF) which can provide a stable reference voltage for the A/D
Converter is internally connected to the ADC_BUILT-IN input channel. The precise voltage of the
VREF is individually measured for each part by Holtek during production test.
I/O Ports – GPIO
▆
Up to 52 GPIOs
▆
Port A, B, C, D, F are mapped as 16 external interrupts – EXTI
▆
Almost all I/O pins have configurable output driving current
There are up to 52 General Purpose I/O pins, GPIO, named from PA0~PA15 to PD0~PD2 and
PF0 for the implementation of logic input/output functions. Each of the GPIO ports has a series of
related control and configuration registers to maximize flexibility and to meet the requirements of a
wide range of applications.
The GPIO ports are pin-shared with other alternative functions to obtain maximum functional
flexibility on the package pins. The GPIO pins can be used as alternative functional pins by
configuring the corresponding registers regardless of the input or output pins. The external
interrupts on the GPIO pins of the device have related control and configuration registers in the
External Interrupt Control Unit, EXTI.
Rev. 1.20
9 of 48
February 24, 2021