HT32F12345

32-bit Arm® Cortex®-M3 MCU

General Information

The HOLTEK HT32F12345 device is a high performance, low power consumption 32-bit microcontroller based around an Arm® Cortex®-M3 processor core. The Cortex®-M3 is a next-generation processor core which is tightly coupled with Nested Vectored Interrupt Controller (NVIC), SysTick timer, and includes advanced debug support.

The device operates at a frequency of up to 96 MHz with a Flash accelerator to obtain maximum efficiency. It provides 64 KB of embedded Flash memory for code/data storage and 16 KB of embedded SRAM memory for system operation and application program usage. A variety of peripherals, such as ADC, I2C, USART, UART, SPI, I2S, PDMA, GPTM, MCTM, EBI, CRC-16/32, SDIO, USB2.0 FS and SWJ-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 control, power monitors, alarm systems, consumer products, handheld equipment, data logging applications, motor control, fingerprint recognition and so on.

Feature Details

Core
  • 32-bit Arm® Cortex®-M3 processor core
  • Up to 96 MHz operating frequency
  • Single-cycle multiplication and hardware division
  • Integrated Nested Vectored Interrupt Controller (NVIC)
  • 24-bit SysTick timer
On-chip Memory
  • 64 KB on-chip Flash memory for instruction/data and option storage
  • 16 KB on-chip SRAM
  • Supports multiple boot modes
Flash Memory Controller – FMC
  • Flash accelerator for maximum efficiency
  • 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 system clock PLL
  • Independent clock divider and gating bits for peripheral clock sources

Power Management – PWRCU

Single VDD power supply

2.0 V to 3.6 V

Integrated 1.5V LDO regulator for CPU core, peripherals and memories power supplyAvailable
VBAT battery power supply for RTC and backup registersAvailable
Three power domains

VDD, VCORE and Backup

Four power saving modes

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

Feature Details

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
Analog to Digital Converter – ADC
  • 12-bit SAR ADC engine
  • Up to 1 Msps conversion rate
  • Up to 12 external analog input channels
  • External reference voltage input possibility
Analog Comparator – CMP
  • Two rail-to-rail comparators
  • Each comparator has configurable negative inputs used for flexible voltage selection
  • Dedicated I/O pin or internal voltage reference provided by 6-bit scaler
  • Programmable hysteresis
  • Programming speed and consumption
  • Comparator output can be output to I/O or to timers or ADC trigger inputs
  • 6-bit scaler can be configurable to dedicated I/O for voltage reference
  • Comparator has interrupt generation capability with wakeup MCU from Sleep or Deep Sleep modes through the EXTI controller
I/O Ports – GPIO
  • Up to 51 GPIOs
  • Port A, B, C, D are mapped as 16 external interrupts – EXTI
  • Almost I/O pins are configurable output driving current
Motor Control Timer – MCTM
  • One 16-bit up, down, up/down auto-reload counters
  • 16-bit programmable prescaler allowing 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
  • Complementary Outputs with programmable dead-time insertion
  • Encoder interface controller with two inputs using quadrature decoder
  • Supports 3-phase motor control and hall sensor interface
  • Brake input to force the timer’s output signals into a reset or fixed condition
General-Purpose Timer - GPTM
  • One 16-bit up, down, up/down auto-reload counters
  • 16-bit programmable prescaler allowing dividing 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
Basic Function Timer – BFTM
  • One 32-bit compare/match count-up counters - no I/O control features
  • One shot mode - counting stops after a match condition
  • Repetitive mode - restart counter after a match condition
Watchdog Timer – WDT
  • 12-bit down counter with 3-bit prescaler
  • Interrupt or reset event for the system
  • Programmable watchdog timer window function
  • Register write protection function
Real Time Clock – RTC
  • 32-bit 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
  • Provide an arbitration function and clock synchronization
  • Supports 7-bit and 10-bit addressing modes and general call addressing
  • Supports slave multi-addressing mode with maskable address

Serial Peripheral Interface – SPI

Supports both master and slave modeAvailable
Frequency of up to (fPCLK/2) MHz for master mode and (fPCLK/3) MHz for 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
Asynchronous operating baud rate up to (fPCLK/16) MHz and synchronous operating rate up to (fPCLK/8) 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 bit 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 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 bit generation
  • - Bit order: LSB-first or MSB-first transfer
Error detection

Parity, overrun and frame error

Feature Details

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 x 32-bits Tx & Rx FIFO with PDMA supported
  • 8-bit Fractional Clock Divider with rate control

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

12 channels with trigger source groupingAvailable
8/16/32-bit width data transferAvailable
Supports Address increment, decrement or fixed modeAvailable
4-level programmable channel priorityAvailable
Auto reload modeAvailable
Supports trigger source:

ADC、SPI、EBI、CRC、USART、UART、I2C、I2S、GPTM、MCTM、SCI、AES、SDIO and software request

External Bus Interface – EBI

Programmable interface for various memory typesAvailable
Translate the AHB transactions into the appropriate external device protocolAvailable
Memory bank regions and independent chip select control for each memory bankAvailable
Programmable timings to support a wide range of devicesAvailable
Includes page read modeAvailable
Automatic translation when the AHB transaction width and external memory interface width is differentAvailable
Write buffer to decrease the stalling of the AHB write burst transactionAvailable
Multiplexed and non-multiplexed address and data line configurations
  • - Up to 21 address lines
  • - Up to 16-bit data bus width

Feature Details

Universal Serial Bus Device Controller – USB
  • Complies with USB 2.0 full-speed (12 Mbps) specification
  • On-chip 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
  • 1024-byte EP-SRAM used as the endpoint data buffers

Secure Digital Input Output – SDIO

Supports two different data bus modes

1-bit (default) and 4-bit

Supports two different speed modes

Normal speed (default) and High speed

SD clock frequency of up to 48 MHzAvailable
SPI mode and MMC stream mode not supportedAvailable

Feature Details

Debug Support
  • Serial Wire Debug Port SWJ-DP
  • 6 instruction comparators and 2 literal comparators for hardware breakpoint or code / literal patches
  • 4 comparators for hardware watchpoints
  • 1-bit asynchronous trace for serial wire debug mode – TRACESWO

Package and Operation Temperature

48/64-pin LQFP packagesAvailable
Operation temperature range

-40°C to +85°C

Resources

TitleDateFile SizeLanguageDownload