English
Language : 

HT32F52231 Datasheet, PDF (9/50 Pages) Holtek Semiconductor Inc – 32-Bit ARM Cortex-M0+ Microcontroller
32-Bit ARM® Cortex™-M0+ MCU
HT32F52231/HT32F52241/HT32F52331/HT32F52341
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 edge
■■ 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 12 external analog input channels
A 12-bit multi-channel ADC is integrated in the device. There are multiplexed channels, which
include 12 external analog signal channels and 2 internal channels which 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.
I/O Ports – GPIO
■■ Up to 40 GPIOs
■■ Port A, B, C are mapped as 16 external interrupts – EXTI
■■ Almost all I/O pins have a configurable output driving current.
There are up to 40 General Purpose I/O pins, GPIO, named from PA0 ~ PA15 to PC0 ~ PC7 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.51
9 of 50
April 11, 2017