HT32F54231/HT32F54241/HT32F54243/HT32F54253

32-Bit Arm® Cortex®-M0+ 5V Touch MCU

The Holtek HT32F54231/HT32F54241/HT32F54243/HT32F54253 devices are high performance, low power consumption 32-bit microcontrollers based around an Arm® Cortex®-M0+ processor core. The Cortex®-M0+ is a next-generation processor core which is tightly coupled with Nested Vectored Interrupt Controller (NVIC), SysTick timer and including advanced debug support.

The devices operate at a frequency of up to 60 MHz with a Flash accelerator to obtain maximum efficiency. It provides up to 128 KB of embedded Flash memory for code/data storage and up to 16 KB of embedded SRAM memory for system operation and application program usage. A variety of peripherals, such as Hardware Divider DIV, PDMA, ADC, I2C, USART, UART, SPI, GPTM, SCTM, BFTM, MCTM, CRC-16/32, RTC, W DT, Touch key, LED controller and SW-DP (Serial Wire Debug Port), etc., are also implemented in the device series. Several power saving modes provide the flexibility for maximum optimization between wakeup latency and power consumption, an especially important consideration in low power applications.

The above features ensure that the devices are suitable for use in a wide range of applications, especially in areas such as washing machines, refrigerators, electric pressure cookers, high-speed blenders, rice cookers and so on.

 

Core

  • 32-bit Arm® Cortex®-M0+ processor core
  • Up to 60 MHz operating frequency
  • Single-cycle multiplication
  • Integrated Nested Vectored Interrupt Controller (NVIC)
  • 24-bit SysTick timer

On-Chip Memory

  • Up to 128 KB on-chip Flash memory for instruction/data and option byte storage
  • Up to 16 KB on-chip SRAM
  • Supports multiple booting modes

Flash Memory Controller – FMC

  • Flash accelerator for maximum efficiency
  • 32-bit word programming with In System Programming (ISP) and In Application Programming (IAP)
  • Flash protection capability to prevent illegal access

Reset Control Unit – RSTCU

  • Supply supervisor
    - Power On Reset / Power Down Reset – POR/PDR
    - Brown-out Detector – BOD
    - Programmable Low Voltage Detector – LVD

Clock Control Unit – CKCU

  • External 4 to 16 MHz crystal oscillator
  • External 32,768 Hz crystal oscillator
  • Internal 8 MHz RC oscillator trimmed to ±2 % accuracy at 5 V operating voltage and 25 °C operating temperature
  • Internal 32 kHz RC oscillator
  • Integrated system clock PLL
  • Independent clock divider and gating bits for peripheral clock sources

Power Management Control Unit – PWRCU

  • Single VDD power supply: 2.5 V to 5.5 V
  • Integrated 1.5 V LDO regulator for MCU core, peripherals and memories power supply
  • VDD power supply for RTC
  • Two power domains: VDD and VCORE
  • Three power saving modes: Sleep, Deep-Sleep1 and Deep-Sleep2

External Interrupt / Event Controller – EXTI

  • Up to 16 EXTI lines with configurable trigger sources and types
  • 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, wake-up enable and status bits for each EXTI line
  • Software interrupt trigger mode for each EXTI line
  • Integrated deglitch filter for short pulse blocking

Analog to Digital Converter – ADC

  • 12-bit SAR ADC engine
  • Up to 1 Msps conversion rate
  • Up to 10 external analog input channels

Comparator – CMP (HT32F54243/HT32F54253 only)

  • Rail-to-rail comparator
  • Each comparator has configurable negative input used for flexible voltage selection
    - External CNn pin
    - Internal 8-bit CVR output
  • Programmable hysteresis
  • Programmable respond speed and consumption
  • Comparator output can be routed to I/O or to multiple timers or ADC trigger inputs
  • 8-bit scaler can be configured to dedicated I/O for voltage reference
  • Comparator has interrupt generation capability with wakeup from Sleep, Deep Sleep1 or Deep Sleep2 mode through the EXTI controller

I/O Ports – GPIO

  • Up to 54 GPIOs
  • Port A, B, C, D are mapped to 16-line EXTI interrupts
  • Almost all I/O pins have a configurable output driving current

Motor Control Timer – MCTM

  • 16-bit up, down, up/down auto-reload counter
  • Up to 4 independent channels
  • 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 Modes
  • Single Pulse Mode Output
  • Complementary Outputs with programmable dead-time insertion
  • Supports 3-phase motor control and hall sensor interface
  • Break input to force the timer’s output signals into a reset or fixed condition

General-Purpose Timer – GPTM

  • 16-bit up, down, up/down auto-reload counter
  • Up to 4 independent channels
  • 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 Modes
  • Single Pulse Mode Output
  • Encoder interface controller with two inputs using quadrature decoder

Single-Channel Timer – SCTM

  • 16-bit up auto-reload counter
  • One channel for each timer
  • 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

Basic Function Timer – BFTM

  • 32-bit compare match count-up counter – no I/O control
  • One shot mode – counter stops counting when compare match occurs
  • Repetitive mode – counter restarts when compare match occurs

Watchdog Timer – WDT

  • 12-bit count-down counter with 3-bit prescaler
  • Provides reset to the system
  • Programmable watchdog timer window function
  • Register write protection function

Real-Time Clock – RTC

  • 24-bit count-up counter with a programmable prescaler
  • Alarm function
  • Interrupt and Wake-up event

Inter-Integrated Circuit – I2C

  • Supports both master and slave modes with a frequency of up to 1 MHz
  • Provides an arbitration function and clock synchronization
  • Supports 7-bit and 10-bit addressing modes and general call addressing
  • Supports slave multi-addressing mode using address mask function

Serial Peripheral Interface – SPI

  • Supports both master and slave modes
  • Frequency of up to (fPCLK/2) MHz for the master mode and (fPCLK/3) MHz for the slave mode
  • FIFO Depth: 8 levels
  • Multi-master and multi-slave operation

Universal Synchronous Asynchronous Receiver Transmitter – USART

  • Supports both asynchronous and clocked synchronous serial communication modes
  • Programmable baud rate clock frequency up to (fPCLK/16) MHz for asynchronous mode and (fPCLK/8) MHz for synchronous mode
  • Capability of full duplex communication
  • Fully programmable serial communication characteristics including
    - Word length: 7, 8 or 9-bit character
    - Parity: Even, odd or no-parity bit generation and detection
    - Stop bit: 1 or 2 stop bit generation
    - Bit order: LSB-first or MSB-first transfer
  • Error detection: Parity, overrun and frame error
  • Auto hardware flow control mode – RTS, CTS
  • IrDA SIR encoder and decoder
  • RS485 mode with output enable control
  • FIFO Depth: 8-level for both receiver and transmitter

Universal Asynchronous Receiver Transmitter – UART

  • Asynchronous serial communication operating baud rate clock frequency of up to fPCLK/16 MHz
  • Capability of full duplex communication
  • Fully programmable serial communication characteristics including
    - Word length: 7, 8 or 9-bit character
    - Parity: Even, odd or no-parity bit generation and detection
    - Stop bit: 1 or 2 stop bit generation
    - Bit order: LSB-first or MSB-first transfer
  • Error detection: Parity, overrun and frame error

Cyclic Redundancy Check – CRC

  • Supports CRC16 polynomial: 0x8005,
    X16+X15+X2+1
  • Supports CCITT CRC16 polynomial: 0x1021,
    X16+X12+X5+1
  • Supports IEEE-802.3 CRC32 polynomial: 0x04C11DB7,
    X32+X26+X23+X22+X16+X12+X11+X10+X8+X7+X5+X4+X2+X+1
  • Supports 1’s complement, byte reverse & bit reverse operation on data and checksum
  • Supports byte, half-word & word data size
  • Programmable CRC initial seed value
  • CRC computation executed in 1 AHB clock cycle for 8-bit data and 4 AHB clock cycles for 32-bit data
  • The HT32F54243/HT32F54253 device support PDMA to complete a CRC computation of a block of memory

Peripheral Direct Memory Access – PDMA (HT32F54243/HT32F54253 only)

  • 6 channels with trigger source grouping
  • 8-bit, 16-bit and 32-bit width data transfer
  • Supports linear address, circular address and fixed address modes
  • 4-level programmable channel priority
    Auto reload mode
  • Supports trigger source
    ADC, SPI, USART, UART, I2C, MCTM, GPTM and software request

Hardware Divider – DIV

  • Signed/unsigned 32-bit divider
  • Calculate in 8 clock cycles, load in 1 clock cycle
  • Division by zero error flag

LED Controller – LEDC

  • Supports 8-segment digital displays up to a maximum of N
    ●For the HT32F54231/HT32F54241, N = 8
    ●For the HT32F54243/HT32F54253, N = 12
  • Supports 8-segment digital displays with common anode or common cathode
  • Supports frame interrupt
  • Three frequency sources: LSI, LSE and PCLK
  • The LED light on/off times can be controlled using the dead time setting

Touch Key - TKEY

  • Four key oscillator frequencies: 1 MHz / 3 MHz / 7 MHz / 11 MHz
  • 1024 level reference oscillator internal capacitor for frequency matching
  • Single 16-bit C/F Counter
  • Three scan modes: Manual mode, Auto scan mode and Periodic auto scan mode
  • Support detection in the Sleep, Deep-Sleep1 and Deep-Sleep2 modes
  • Hardware Upper or lower threshold comparators
  • Keys are organised into several groups, with each group known as a module
    ● For the HT32F54231/HT32F54241, having a module number, M0 to M5
    ● For the HT32F54243/HT32F54253, having a module number, M0 to M6
  • Each module is a fully independent set of four Touch Keys and each Touch Key has its own oscillator

Debug Support

  • Serial Wire Debug Port – SW-DP
  • 4 comparators for hardware breakpoints or code / literal patches
  • 2 comparators for hardware watch points

Package and Operation Temperature

  • 28-pin SSOP, 32 / 46-pin QFN and 48 / 64-pin LQFP packages
  • Operation temperature range: -40 °C to 85 °C