32-Bit Arm® Cortex®-M0+ Music Synthesizer MCU
HT32F0006
Analog to Digital Converter – ADC
▆
12-bit SAR ADC engine
▆
Up to 1 Msps conversion rate
▆
Up to 16 external analog input channels
A 12-bit multi-channel ADC is integrated in the device. There are multiplexed channels, which
include 16 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 52 GPIOs
▆
Port A, B, C, D are mapped as 16 external interrupts – EXTI
▆
Almost all I/O pins have a configurable output driving current
There are up to 52 General Purpose I/O pins, GPIO 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.
General-Purpose Timer – GPTM
▆
One 16-bit up, down, up/down auto-reload counter
▆
16-bit programmable prescaler that allows division of the prescaler clock source by any factor
between 1 and 65536 to generate the counter clock frequency
▆
Input Capture function
▆
Compare Match Output
▆
PWM waveform generation with Edge-aligned and Center-aligned Counting
▆
Single Pulse Mode Output
▆
Encoder interface controller with two inputs using quadrature decoder
The General-Purpose Timer Module, GPTM, consists of one 16-bit up/down-counter, four 16-bit
Capture/Compare Registers (CCRs), one 16-bit Counter Reload Register (CRR) and several control/
status registers. They can be used for a variety of purposes including general time measurement,
input signal pulse width measurement, output waveform generation such as single pulse generation
or PWM output generation. The GPTM supports an Encoder Interface using a decoder with two
inputs.
Rev. 1.10
9 of 49
April 21, 2023