HT32F5828

32-Bit Arm® Cortex®-M0+ MCU

General Information

The Holtek HT32F5828 device is a high performance, low power consumption 32-bit microcontroller based around an Arm® Cortex®-M0+ processor core. The Cortex®-M0+ is a nextgeneration processor core which is tightly coupled with Nested Vectored Interrupt Controller (NVIC), SysTick timer, and including advanced debug support.

The device operates 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 USB2.0 FS, PDMA, AES-128, Hardware Divider DIV, SPI, I2S, USART, UART, SCI, I2C, GPTM, PWM, SCTM, BFTM, CRC-16/32, RTC, WDT, ADC, CMP, DAC, LCD and SW-DP (Serial Wire Debug Port), etc., are also implemented in the device. 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 device is suitable for use in a wide range of applications, especially in areas such as white goods application controllers, power monitors, alarm systems, consumer products, handheld equipment, data logging applications, motor controllers and so on.

 

Feature Details

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 options storage
  • Up to 16 KB on-chip SRAM
  • Supports multiple boot modes
Flash Memory Controller – FMC
  • 32-bit word programming with In System Programming Interface (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

Feature Details

Clock Control Unit – CKCU
  • External 4 to 16 MHz crystal oscillator
  • External 32.768 kHz crystal oscillator
  • Internal 8 MHz RC oscillator trimmed to ±2 % accuracy at 3.3 V operating voltage and 25 °C operating temperature
  • Internal 32 kHz RC oscillator
  • Integrated clock PLL and USB PLL
  • Independent clock divider and gating bits for peripheral clock sources

Power Management – PWRCU

Single VDD power supply

1.65 V to 3.6 V

Integrated 1.5 V LDO regulator for CPU core, peripherals and memories power supplyAvailable
VDD power supply for RTCAvailable
Two power domains

VDD and 1.5 V power domains

Four power saving modes

Sleep, Deep-Sleep1, Deep-Sleep2 and Power-Down modes

Feature Details

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, wakeup enable and status bits for each EXTI line
  • Software interrupt trigger mode for each EXTI line
  • Integrated deglitch filter for short pulse blocking
I/O Ports – GPIO
  • Up to 67 GPIOs
  • Port A, B, C, D, E are mapped as 16 external interrupts – EXTI
  • Almost all I/O pins have configurable output driving current
Universal Serial Bus Device Controller – USB
  • Complies with USB 2.0 Full-Speed (12 Mbps) specification
  • Fully integrated USB full-speed transceiver
  • 1 control endpoint (EP0) for control transfer
  • 3 single-buffered endpoints for bulk and interrupt transfer
  • 4 double-buffered endpoints for bulk, interrupt and isochronous transfer
  • 1,024 bytes EP_SRAM used as the endpoint data buffers
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 modesAvailable
Frequency of up to (fPCLK/2) MHz for the master mode and (fPCLK/3) MHz for the slave modeAvailable
FIFO Depth

8 levels

Multi-master and multi-slave operationAvailable

Universal Synchronous Asynchronous Receiver Transmitter – USART

Supports both asynchronous and clocked synchronous serial communication modesAvailable
Programming baud rate clock frequency up to (fPCLK/16) MHz for Asynchronous mode and (fPCLK/8) MHz for synchronous modeAvailable
Full duplex communicationAvailable
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 bits generation
  • ◆ Bit order: LSB-first or MSB-first transfer
Error detection

Parity, overrun and frame error

Auto hardware flow control mode – RTS, CTSAvailable
IrDA SIR encoder and decoderAvailable
RS485 mode with output enable controlAvailable
FIFO Depth

8-level for both receiver and transmitter

Universal Asynchronous Receiver Transmitter – UART

Asynchronous serial communication operating baud-rate clock frequency up to (fPCLK/16) MHzAvailable
Full duplex communicationAvailable
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 bits generation
  • ◆ Bit order: LSB-first or MSB-first transfer
Error detection

Parity, overrun and frame error

Feature Details

Smart Card Interface – SCI
  • Supports ISO 7816-3 standard
  • Character Transfer mode
  • Single transmit buffer and single receive buffer
  • 11-bit ETU (Elementary Time Unit) counter
  • 9-bit guard time counter
  • 24-bit general purpose waiting time counter
  • Parity generation and check functions
  • Automatic character retry on parity error detection in transmission and reception modes
Inter-IC Sound – I2S
  • Master or Slave mode
  • Mono and Stereo
  • I2S-justified, Left-justified and Right-justified mode
  • 8/16/24/32-bit sample size with 32-bit channel extended
  • 8 × 32-bit TX & RX FIFO with PDMA supported
  • 8-bit Fractional Clock Divider with rate control
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

Rail-to-rail comparatorsAvailable
Configurable negative inputs used for flexible voltage selection
  • ● External CN pin
  • ● Internal 8-bit CVR output
Programmable hysteresisAvailable
Programming respond speed and consumptionAvailable
Comparator output can be routed to I/O pin, to multiple timers or ADC trigger inputsAvailable
8-bit CVR can be configurable to dedicated I/O for voltage referenceAvailable
Comparator has interrupt generation capability with wakeup from Sleep, Deep-Sleep1 or Deep-Sleep2 mode through the EXTI controllerAvailable

Feature Details

Digital to Analog Converter – DAC
  • Two DAC converters with each having one output channel
  • 12-bit or 8-bit resolution
  • Maximum 500 ksps conversion updating rate
  • Dual DAC channels for implementing simultaneous conversion
  • Supports voltage output buffer mode and bypass voltage output buffer mode
  • Reference voltage from internal reference voltage VREF or VDDA
General-Purpose Timer – GPTM
  • 16-bit up/down auto-reload counter
  • Up to 4 independent channels for each timer
  • 16-bit programmable prescaler that allows division of the counter clock frequency by any factor between 1 and 65536
  • 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
Pulse-Width-Modulation Timer – PWM
  • 16-bit up / down auto-reload counter
  • Up to 4 independent channels for each timer
  • 16-bit programmable prescaler that allows division of the counter clock frequency by any factor between 1 and 65536
  • Compare Match Output
  • PWM waveform generation with Edge-aligned and Center-aligned Counting Modes
  • Single Pulse Mode Output
Single Channel Timer – SCTM
  • 16-bit auto-reload up-counter
  • One channel for each timer
  • 16-bit programmable prescaler that allows division of the counter clock frequency by any factor between 1 and 65536
  • Input Capture function
  • Compare Match Output
  • PWM waveform generation with Edge-aligned
Basic Function Timer – BFTM
  • 32-bit compare match up-counter – no I/O control features
  • One shot mode – stops counting when compare match occurs
  • Repetitive mode – restarts counter when compare match occurs
Watchdog Timer – WDT
  • 12-bit down-counter with 3-bit prescaler
  • Provide reset to the system
  • Programmable watchdog timer window function
  • Register write protection function
Real Time Clock – RTC
  • 24-bit up-counter with a programmable prescaler
  • Alarm function
  • Interrupt and Wake-up event

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 checksumAvailable
Supports byte, half-word & word data sizeAvailable
Programmable CRC initial seed valueAvailable
CRC computation executed in 1 AHB clock cycle for 8-bit data and 4 AHB clock cycles for 32-bit dataAvailable
Supports PDMA to complete a CRC computation of a block of memoryAvailable

Peripheral Direct Memory Access – PDMA

6 channels with trigger source groupingAvailable
8-bit, 16-bit and 32-bit width data transferAvailable
Supports linear address, circular address and fixed address modesAvailable
4-level programmable channel priorityAvailable
Auto reload modeAvailable
Supports trigger source:

ADC, SPI, USART, UART, SCI, I2C, I2S, GPTM, PWM, AES-128 and software request

Feature Details

Hardware Divider – DIV
  • Signed/unsigned 32-bit divider
  • Operation in 8 clock cycles, Load in 1 clock cycle
  • Divide by zero error Flag

Liquid Crystal Display Controller – LCD

LCD Driver function with Static, 1/2, 1/3, 1/4, 1/6 and 1/8 dutyAvailable
LCD Driver function with Static, 1/2, 1/3 or 1/4 biasAvailable
Supports R type bias typeAvailable
Clock source can be selected from the LSI (32 kHz), LSE (32.768 kHz) or a clock ratio of either the HSI or HSEAvailable
Contains three embedded LCD bias reference resistor laddersAvailable
Double buffered memoryAvailable
Software selectable charge pump voltageAvailable
Programmable dead time between frames – up to 7/2 phase periods for type A waveforms and 7 phase periods for type B waveformsAvailable
Software selectable waveform type

type A or type B waveform

LCD frame interruptAvailable
Blink capability

Up to 1, 2, 3, 4, 8 or all pixels which can be programmed to blink

Feature Details

Advanced Encryption Standard – AES-128
  • Supports AES Encrypt / Decrypt functions
  • Supports AES ECB/CBC/CTR modes
  • Supports Key Size of 128 bits
  • Supports 4 words Initial Vector for CBC and CTR modes
  • 4 × 32 bits AES data buffer
  • Supports PDMA interface
  • Supports Word Data Swap function
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

48/64/80-pin LQFP packagesAvailable
Operation temperature range

-40 °C to 85 °C

Resources

TitleDateFile SizeLanguageDownload