HT32F52231-41 52331-41 Datasheetv170
HT32F52231-41 52331-41 Datasheetv170
HT32F52231-41 52331-41 Datasheetv170
HT32F52331/HT32F52341
Datasheet
Table of Contents
1 General Description................................................................................................. 6
2 Features.................................................................................................................... 7
Core........................................................................................................................................ 7
On-chip Memory..................................................................................................................... 7
Table of Contents
Flash Memory Controller – FMC............................................................................................. 7
Reset Control Unit – RSTCU.................................................................................................. 8
Clock Control Unit – CKCU..................................................................................................... 8
Power Management – PWRCU.............................................................................................. 8
External Interrupt/Event Controller – EXTI............................................................................. 9
Analog to Digital Converter – ADC......................................................................................... 9
I/O Ports – GPIO..................................................................................................................... 9
Motor Control Timer – MCTM............................................................................................... 10
PWM Generation and Capture Timers – GPTM................................................................... 10
Single Channel Generation and Capture Timers – SCTM.................................................... 11
Basic Function Timer – BFTM.............................................................................................. 11
Watchdog Timer – WDT........................................................................................................ 11
Real Time Clock – RTC........................................................................................................ 12
Inter-integrated Circuit – I2C................................................................................................. 12
Serial Peripheral Interface – SPI.......................................................................................... 12
Universal Synchronous Asynchronous Receiver Transmitter – USART............................... 13
Universal Asynchronous Receiver Transmitter – UART....................................................... 13
Smart Card Interface – SCI (HT32F52331/52341 only)....................................................... 14
Cyclic Redundancy Check – CRC........................................................................................ 14
Universal Serial Bus Device Controller – USB (HT32F52331/52341 only).......................... 15
Debug Support...................................................................................................................... 15
Package and Operation Temperature................................................................................... 15
3 Overview................................................................................................................. 16
Device Information................................................................................................................ 16
Block Diagram...................................................................................................................... 17
Memory Map......................................................................................................................... 18
Clock Structure..................................................................................................................... 21
4 Pin Assignment...................................................................................................... 22
5 Electrical Characteristics...................................................................................... 32
Absolute Maximum Ratings.................................................................................................. 32
Recommended DC Operating Conditions............................................................................ 32
On-Chip LDO Voltage Regulator Characteristics.................................................................. 32
Power Consumption............................................................................................................. 33
Reset and Supply Monitor Characteristics............................................................................ 35
Table of Contents
External Clock Characteristics.............................................................................................. 36
Internal Clock Characteristics............................................................................................... 37
PLL Characteristics............................................................................................................... 37
Memory Characteristics........................................................................................................ 37
I/O Port Characteristics......................................................................................................... 38
ADC Characteristics............................................................................................................. 39
SCTM/GPTM/MCTM Characteristics.................................................................................... 40
I2C Characteristics................................................................................................................ 41
SPI Characteristics............................................................................................................... 42
USB Characteristics.............................................................................................................. 44
6 Package Information............................................................................................. 45
24-pin SSOP (150mil) Outline Dimensions........................................................................... 46
28-pin SSOP (150mil) Outline Dimensions........................................................................... 47
SAW Type 33-pin (4mm×4mm) QFN Outline Dimensions.................................................... 48
48-pin LQFP (7mm×7mm) Outline Dimensions.................................................................... 49
List of Tables
Table 1. Features and Peripheral List....................................................................................................... 16
Table 2. Register Map .............................................................................................................................. 19
Table 3. HT32F52231/52241 Series Pin Assignment for 24/28SSOP, 33QFN, 48LQFP Package........... 28
Table 4. HT32F52331/52341 Series Pin Assignment for 33QFN, 48LQFP Package............................... 29
Table 5. HT32F52231/52241 Pin Description........................................................................................... 30
List of Tables
Table 6. HT32F52331/52341 Pin Description........................................................................................... 31
Table 7. Absolute Maximum Ratings......................................................................................................... 32
Table 8. Recommended DC Operating Conditions................................................................................... 32
Table 9. LDO Characteristics.................................................................................................................... 32
Table 10. HT32F52231/52241 Power Consumption Characteristics........................................................ 33
Table 11. HT32F52331/52341 Power Consumption Characteristics........................................................ 34
Table 12. VDD Power Reset Characteristics.............................................................................................. 35
Table 13. LVD/BOD Characteristics.......................................................................................................... 35
Table 14. High Speed External Clock (HSE) Characteristics.................................................................... 36
Table 15. Low Speed External Clock (LSE) Characteristics..................................................................... 36
Table 16. High Speed Internal Clock (HSI) Characteristics...................................................................... 37
Table 17. Low Speed Internal Clock (LSI) Characteristics........................................................................ 37
Table 18. PLL Characteristics................................................................................................................... 37
Table 19. Flash Memory Characteristics................................................................................................... 37
Table 20. I/O Port Characteristics............................................................................................................. 38
Table 21. ADC Characteristics.................................................................................................................. 39
Table 22. SCTM/GPTM/MCTM Characteristics........................................................................................ 40
Table 23. I2C Characteristics..................................................................................................................... 41
Table 24. SPI Characteristics.................................................................................................................... 42
Table 25. USB DC Electrical Characteristics............................................................................................ 44
Table 26. USB AC Electrical Characteristics............................................................................................. 44
List of Figures
Figure 1. Block Diagram........................................................................................................................... 17
Figure 2. Memory Map.............................................................................................................................. 18
Figure 3. Clock Structure.......................................................................................................................... 21
Figure 4. HT32F52231/52241 24-pin SSOP Pin Assignment................................................................... 22
Figure 5. HT32F52231/52241 28-pin SSOP Pin Assignment................................................................... 23
List of Figures
Figure 6. HT32F52231/52241 33-pin QFN Pin Assignment..................................................................... 24
Figure 7. HT32F52231/52241 48-pin LQFP Pin Assignment................................................................... 25
Figure 8. HT32F52331/52341 33-pin QFN Pin Assignment..................................................................... 26
Figure 9. HT32F52331/52341 48-pin LQFP Pin Assignment................................................................... 27
Figure 10. ADC Sampling Network Model................................................................................................ 40
Figure 11. I2C Timing Diagrams................................................................................................................ 41
Figure 12. SPI Timing Diagrams – SPI Master Mode............................................................................... 42
Figure 13. SPI Timing Diagrams – SPI Slave Mode with CPHA=1........................................................... 43
Figure 14. USB Signal Rise Time and Fall Time and Cross-point Voltage (VCRS) Definition.................. 44
1 General Description
The HOLTEK HT32F522x1/523x1 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 40MHz for HT32F52231/52241 and 48MHz for
General Description
HT32F52331/52341 with a Flash accelerator to obtain maximum efficiency. It provides up to
64KB of embedded Flash memory for code/data storage and 8 KB of embedded SRAM memory
for system operation and application program usage. A variety of peripherals, such as ADC, I2C,
USART, UART, SPI, MCTM, GPTM, SCTM, CRC-16/32, RTC, WDT, SCI, USB2.0 FS, 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 white goods application control, power monitors, alarm systems,
consumer products, handheld equipment, data logging applications, motor control and so on.
2 Features
Core
■■ 32-bit Arm® Cortex®-M0+ processor core
■■ Up to 40MHz operating frequency for HT32F52231/52241 or 48MHz for HT32F52331/52341
Features
■■ 0.93 DMIPS/MHz (Dhrystone v2.1)
■■ Single-cycle multiplication
■■ Integrated Nested Vectored Interrupt Controller (NVIC)
■■ 24-bit SysTick timer
The Cortex®-M0+ processor is a very low gate count, highly energy efficient processor that is
intended for microcontroller and deeply embedded applications that require an area optimized,
low-power processor. The processor is based on the ARMv6-M architecture and supports Thumb®
instruction sets; single-cycle I/O port; hardware multiplier and low latency interrupt respond time.
On-chip Memory
■■ Up to 64 KB on-chip Flash memory for instruction/data and options storage
■■ 8 KB on-chip SRAM
■■ Supports multiple boot modes
The Arm® Cortex®-M0+ processor accesses and debug accesses share the single external interface
to external AHB peripheral. The processor accesses take priority over debug accesses. The
maximum address range of the Cortex® -M0+ is 4 GB since it has a 32-bit bus address width.
Additionally, a pre-defined memory map is provided by the Cortex™-M0+ processor to reduce
the software complexity of repeated implementation by different device vendors. However, some
regions are used by the Arm® Cortex®-M0+ system peripherals. Refer to the Arm® Cortex®-M0+
Technical Reference Manual for more information. Figure 2 shows the memory map of the
HT32F52231/52241 and HT32F52331/52341 series of devices, including code, SRAM, peripheral,
and other pre-defined regions.
Features
A system reset resets the processor core and peripheral IP components with the exception of the
SW-DP controller. The resets can be triggered by an external signal, internal events and the reset
generators.
Features
■■ 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.
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.
Features
■■ 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
The Motor Control Timer consists of a single 16-bit up/down counter, four 16-bit CCRs (Capture/
Compare Registers), single one 16-bit counter-reload register (CRR), single 8-bit repetition counter
and several control/status registers. It can be used for a variety of purposes including measuring
the pulse widths of input signals or generating output waveforms such as compare match outputs,
PWM outputs or complementary PWM outputs with dead-time insertion. The MCTM is capable of
offering full functional support for motor control, hall sensor interfacing and brake input.
Features
■■ Compare Match Output
■■ PWM waveform generation with Edge-aligned
■■ Single Pulse Mode Output
The Single-Channel Timer consists of one 16-bit up-counter, one 16-bit Capture/Compare Register
(CCR), one 16-bit Counter-Reload Register (CRR) and several control/status registers. It can be
used for a variety of purposes including general timer, input signal pulse width measurement or
output waveform generation such as single pulse generation or PWM output.
Features
the Backup Domain except for the APB interface. The APB interface is located in the VDD15 power
domain. Therefore, it is necessary to be isolated from the ISO signal that comes from the power
control unit when the VDD15 power domain is powered off, that is when the device enters the Power-
Down mode. The RTC counter is used as a wakeup timer to generate a system resume signal from
the Power-Down mode.
The SDA line which is connected directly to the I2C bus is a bi-directional data line between the
master and slave devices and is used for data transmission and reception. The I 2C also has an
arbitration detect function and clock synchronization to prevent situations where more than one
master attempts to transmit data to the I2C bus at the same time.
Features
●● 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×9 bits for both receiver and transmitter
The Universal Synchronous Asynchronous Receiver Transceiver, USART, provides a flexible full
duplex data exchange using synchronous or asynchronous data transfer. The USART is used to
translate data between parallel and serial interfaces, and is commonly used for RS232 standard
communication. The USART peripheral function supports four types of interrupt including Line
Status Interrupt, Transmitter FIFO Empty Interrupt, Receiver Threshold Level Reaching Interrupt
and Time Out Interrupt. The USART module includes a transmitter FIFO, (TX_FIFO) and receiver
FIFO (RX_FIFO). The software can detect a USART error status by reading the Line Status
Register, LSR. The status includes the type and the condition of transfer operations as well as
several error conditions resulting from Parity, Overrun, Framing and Break events.
Features
■■ 24-bit general purpose waiting time counter
■■ Parity generation and checking
■■ Automatic character retry on parity error detection in transmission and reception modes
The Smart Card Interface is compatible with the ISO 7816-3 standard. This interface includes
Card Insertion/Removal detection, SCI data transfer control logic and data buffers, internal
Timer Counters and corresponding control logic circuits to perform all the necessary Smart Card
operations. The Smart Card interface acts as a Smart Card Reader to facilitate communication
with the external Smart Card. The overall functions of the Smart Card interface are controlled
by a series of registers including control and status registers together with several corresponding
interrupts which are generated to get the attention of the microcontroller for SCI transfer status.
Features
■■ 1,024 bytes EP-SRAM used as the endpoint data buffers
The USB device controller is compliant with the USB 2.0 full-speed specification. There is one
control endpoint known as Endpoint 0 and seven configurable endpoints. A 1024-byte SRAM
is used as the endpoint buffer. Each endpoint buffer size is programmable using corresponding
registers, which provides maximum flexibility for various applications. The integrated USB full-
speed transceiver helps to minimize the overall system complexity and cost. The USB functional
block also contains the resume and suspend feature to meet the requirements of low-power
consumption.
Debug Support
■■ Serial Wire Debug Port – SW-DP
■■ 4 comparators for hardware breakpoint or code / literal patch
■■ 2 comparators for hardware watchpoints
3 Overview
Device Information
Table 1. Features and Peripheral List
Peripherals HT32F52231 HT32F52241 HT32F52331 HT32F52341
Main Flash (KB) 32 63 32 63.5
Overview
Option Bytes Flash (KB) 1 1 0.5 0.5
SRAM (KB) 4 8 4 8
MCTM 1
GPTM 1
Timers
SCTM 4
BFTM 2
RTC 1
WDT 1
USB — 1
Communication
SPI 2
USART 1
UART 2
I2C 2
SCI (ISO7816-3) — 1
CRC-16/32 1
EXTI 16
12-bit ADC 1
Number of channels 12 Channels
GPIO Up to 40 Up to 38
CPU frequency Up to 40MHz Up to 48MHz
Operating voltage 2.0 V ~ 3.6 V
Operating temperature -40° C ~ +85° C
24/28-pin SSOP
Package 33-pin QFN, 48-pin LQFP
33-pin QFN, 48-pin LQFP
Block Diagram
Overview
SW-DP
Interface Memory HSE XTALIN
AF
IO Port
Cortex®-M0+
HSI
Processor FMC
Control Registers
CRC
CKCU/RSTCU
Control Registers 8 MHz
AHB
System
-16/32 USB
Control/Data
Peripherals CLDO
Registers
LDO
SRAM BOD
SRAM
Controller LVD
Interrupt request
Powered by VDD
HT32F52331/41 only
DP
AF
DM
Power control
TX, RX
AF
RTS/TXE USART
CTS/SCK
WDT
MOSI, MISO
AF
AF
TX, RX UART0
UART0~ 1 SPI1
SPI1~~00 SCK, SEL
SDA
AF
I2C0 ~ 1
AFIO SCL
AF
EXTI GPTM CH3 ~ CH0
CH0 ~CH2
AF
SCTM0 ~ 3
AF
HT32F52331/41 only
AF
RTC RTCOUT
ADC_IN0 12-bit
AF
ADC
...
ADC_IN11
SAR ADC VDD
PWRCU VSS
AF
AF
X32KIN
X32KOUT
Power supply:
Bus:
Control signal:
Alternate function: AF
Memory Map
0xFFFF_FFFF
0x400F_FFFF
Reserved
Reserved 0x400B_6000
0x400B_0000 GPIO A ~ C
0xE010_0000 0x400A_C000 Reserved
Private peripheral bus 0x400A_A000 USB SRAM Note
0xE000_0000 AHB
0x400A_8000 USB Note
Overview
0x4008_C000 Reserved
0x4008_A000 CRC
0x4008_8000 CKCU/RSTCU
0x4008_2000 Reserved
0x4008_0000 FMC
Reserved Reserved
0x4007_8000
0x4007_7000 BFTM1
0x4007_6000 BFTM0
0x4007_5000 SCTM3
0x4007_4000 SCTM1
0x4010_0000 0x4006_F000 Reserved
512 KB 0x4006_E000 GPTM
AHB peripherals
0x4008_0000 0x4006_B000 Reserved
Peripheral
0x4006_A000 RTC & PWRCU
APB peripherals 512 KB
0x4000_0000 0x4006_9000 Reserved
0x4006_8000 WDT
0x4004_A000 Reserved
0x4004_9000 I2C1
0x4004_8000 I2C0
Reserved 0x4004_5000 Reserved
SRAM 0x4004_4000 SPI1 APB
0x4004_3000 SCI Note
0x4004_2000 Reserved
0x2000_2000 0x4004_1000 UART1
0x4003_6000 Reserved
Up to 0x4003_5000 SCTM2
8 KB on-chip SRAM 8 KB 0x4003_4000 SCTM0
0x2000_0000 0x4002_D000 Reserved
0x4002_C000 MCTM
Reserved
0x1FF0_0400 0x4002_5000 Reserved
0x4002_4000 EXTI
Option byte alias 1 KB
0x1FF0_0000 0x4002_3000 Reserved
0x4002_2000 AFIO
Reserved
0x1F00_0800 0x4001_1000 Reserved
0x4001_0000 ADC
Code Boot loader 2 KB
0x1F00_0000 0x4000_5000 Reserved
0x4000_4000 SPI0
Reserved
0x0001_0000 0x4000_2000 Reserved
0x4000_1000 UART0
0x4000_0000 USART
Up to
64 KB on-chip Flash Up to Note: HT32F52331/HT32F52341 only
64 KB
0x0000_0000
Overview
0x4001_1000 0x4002_1FFF Reserved
0x4002_2000 0x4002_2FFF AFIO
0x4002_3000 0x4002_3FFF Reserved
0x4002_4000 0x4002_4FFF EXTI
0x4002_5000 0x4002_BFFF Reserved
0x4002_C000 0x4002_CFFF MCTM
0x4002_D000 0x4003_3FFF Reserved
0x4003_4000 0x4003_4FFF SCTM0
0x4003_5000 0x4003_5FFF SCTM2
0x4003_6000 0x4004_0FFF Reserved
0x4004_1000 0x4004_1FFF UART1
0x4004_2000 0x4004_2FFF Reserved APB
0x4004_3000 0x4004_3FFF SCI Note
0x4004_4000 0x4004_4FFF SPI1
0x4004_5000 0x4004_7FFF Reserved
0x4004_8000 0x4004_8FFF I2C0
0x4004_9000 0x4004_9FFF I2C1
0x4004_A000 0x4006_7FFF Reserved
0x4006_8000 0x4006_8FFF WDT
0x4006_9000 0x4006_9FFF Reserved
0x4006_A000 0x4006_AFFF RTC/PWRCU
0x4006_B000 0x4006_DFFF Reserved
0x4006_E000 0x4006_EFFF GPTM
0x4006_F000 0x4007_3FFF Reserved
0x4007_4000 0x4007_4FFF SCTM1
0x4007_5000 0x4007_5FFF SCTM3
0x4007_6000 0x4007_6FFF BFTM0
0x4007_7000 0x4007_7FFF BFTM1
0x4007_8000 0x4007_FFFF Reserved
Overview
0x400B_0000 0x400B_1FFF GPIOA
0x400B_2000 0x400B_3FFF GPIOB
0x400B_4000 0x400B_5FFF GPIOC
0x400B_6000 0x400F_FFFF Reserved
Clock Structure
Prescaler Divider
CK_REF
1 ~ 32 2
HSI Auto CK_LSE CKREFPRE
CKREFEN
Trimming
Controller USB REF Pulse fCK_USB = 48 MHz
CK_USB
Overview
USBEN
8 MHz PLLSRC HT32F52331/52341 only
HSI RC PLLEN f CK_PLL,max = 48 MHz
STCLK
8 (to SysTick)
1 CK_PLL
HSIEN PLL
0 SW[2:0]
fCK_SYS,max = 40 MHz for CK_GPIO
4-16 MHz HT32F52231/52241 GPIOAEN
( to GPIO port)
HSE XTAL 00x fCK_SYS,max = 48 MHz for GPIODEN
HT32F52331/52241
CK_HSI
011
HSEEN CK_HSE CK_SYS AHB Prescaler FCLK
010 ( free running clock)
1,2,4,8,16,32
111
110
HCLKC
CM0PEN ( to Cortex®-M0+)
(control by HW)
CK_AHB
Clock
Monitor
CK_CRC
CRCEN ( to CRC)
LSEEN(Note1) HCLKF
1 CK_WDT ( to Flash)
0 CM0PEN
FMCEN
32 kHz CK_LSI
WDTEN
LSI RC
RTCSRC(Note1)
HCLKS
LSIEN(Note1) ( to SRAM)
CM0PEN
1 CK_RTC
0 SRAMEN
RTCEN(Note1) HCLKBM
( to Bus Matrix)
CKOUTSRC[2:0] CM0PEN
BMEN
000 CK_REF
001 CK_AHB/16
010 CK_SYS/16 HCLKAPB
CKOUT ( to APB Bridge)
011 CK_HSE/16
CM0PEN
100 CK_HSI/16
101 CK_LSE APBEN
110 CK_LSI
PCLK
Legend: 00
HSE = High Speed External clock Peripherals PCLK/2 01 PCLK (AFIO, ADC,
Clock
HSI = High Speed Internal clock SPIx, USART, UARTx,
Prescaler PCLK/4 SPIEN
LSE = Low Speed External clock 10 I2Cx, MCTM, GPTM,
1,2,4,8
SCTMx, BFTMx, EXTI,
LSI = Low Speed Internal clock PCLK/8 11
SCIEN
SCI, WDT, RTC)
ADC
Prescaler CK_ADC IP
1,2,3,4,8,...
ADCEN
4 Pin Assignment
HT32F52231/HT32F52241
24 SSOP-A
Pin Assignment
PB7 1 33V 33V 24 PB4
HT32F52231/HT32F52241
28 SSOP-A
Pin Assignment
PB8 2 33V P33 3.3 V Digital Power Pad 33V 27 PB3
PA4 8 33V 33V 3.3 V Digital I/O Pad 33V 21 SWDIO PA13
HT32F52231/HT32F52241
33 QFN-A
(Default)
VDDA
VSSA
PB8
PB7
PB5
PB4
PB3
PB2
AF0
AF0 AF0 AF1
32 31 30 29 28 27 26 25
(Default) (Default)
Pin Assignment
AP AP 33V 33V 33V 33V 33V 33V
PA4 5 33V 33V 3.3 V Digital & Analog IO Pad 33V 20 SWDIO PA13
PA5 6 33V 33V 3.3 V Digital I/O Pad 33V 19 SWCLK PA12
PA9_
PA6 7 33V VDD VDD Domain Pad 33V 18
BOOT
PA7 8 33V 33 VSS 33V 17 XTALOUT PB14
9 10 11 12 13 14 15 16
X32KOUT
RTCOUT
(Default)
XTALIN
X32KIN
CLDO
nRST
VDD
VSS
AF0
PB10
PB11
PB12
PB13
AF1
HT32F52231/HT32F52241
48 LQFP-A
(Default)
VDDA
VSSA
PC3
PC2
PC1
AF0
PB8
PB7
PB6
PB5
PB4
PB3
PB2
AF0 AF0 AF1
48 47 46 45 44 43 42 41 40 39 38 37
Pin Assignment
(Default) (Default)
AP AP 33V 33V 33V 33V 33V 33V 33V 33V 33V 33V
13 14 15 16 17 18 19 20 21 22 23 24
XTALOUT
X32KOUT
RTCOUT
(Default)
XTALIN
X32KIN
VDD_1
VSS_1
CLDO
nRST
PB15
PC0
PB9
AF0
PB10
PB11
PB12
PB13
PB14
AF1
HT32F52331/HT32F52341
33 QFN-A
(Default)
VDDA
VSSA
PB8
PB7
PB5
PB4
PB3
PB2
AF0
AF0 AF0 AF1
32 31 30 29 28 27 26 25
(Default) (Default)
Pin Assignment
AP AP 33V 33V 33V 33V 33V 33V
9 10 11 12 13 14 15 16
X32KOUT
RTCOUT
(Default)
XTALIN
X32KIN
CLDO
nRST
VDD
VSS
AF0
PB10
PB11
PB12
PB13
AF1
HT32F52331/HT32F52341
48 LQFP-A
(Default)
VDDA
VSSA
PC3
PC2
PC1
AF0
PB8
PB7
PB6
PB5
PB4
PB3
PB2
AF0 AF0 AF1
48 47 46 45 44 43 42 41 40 39 38 37
(Default) (Default)
Pin Assignment
AP AP 33V 33V 33V 33V 33V 33V 33V 33V 33V 33V
PA7 8 33V 33V 3.3 V Digital I/O Pad 33V 29 SWCLK PA12
13 14 15 16 17 18 19 20 21 22 23 24
XTALOUT
X32KOUT
(Default)
RTCOUT
XTALIN
X32KIN
VDD_1
VSS_1
CLDO
nRST
PB15
AF0
PC0
PB9
PB10
PB11
PB12
PB13
PB14
AF1
Table 3. HT32F52231/52241 Series Pin Assignment for 24/28SSOP, 33QFN, 48LQFP Package
HT32F52231/52241 Alternate Function Mapping
Package
AF0 AF1 AF2 AF3 AF4 AF5 AF6 AF7 AF8 AF9 AF10 AF11 AF12 AF13 AF14 AF15
48 33 28 24 System GPTM USART System
GPIO ADC N/A SPI IC
2
N/A N/A N/A N/A N/A SCTM N/A
LQFP QFN SSOP SSOP Default /MCTM /UART Other
1 1 4 4 PA0 ADC_IN2 GT_CH0 SPI1_SCK USR_RTS I2C1_SCL
2 2 5 5 PA1 ADC_IN3 GT_CH1 SPI1_MOSI USR_CTS I2C1_SDA
3 3 6 6 PA2 ADC_IN4 GT_CH2 SPI1_MISO USR_TX
4 4 7 7 PA3 ADC_IN5 GT_CH3 SPI1_SEL USR_RX
5 5 8 8 PA4 ADC_IN6 GT_CH0 SPI0_SCK UR1_TX I2C0_SCL
Pin Assignment
6 6 9 9 PA5 ADC_IN7 GT_CH1 SPI0_MOSI UR1_RX I2C0_SDA
7 7 10 PA6 ADC_IN8 GT_CH2 SPI0_MISO
8 8 11 PA7 ADC_IN9 GT_CH3 SPI0_SEL
9 PC4 ADC_IN10 USR_TX SCTM0
10 PC5 ADC_IN11 USR_RX SCTM1
11 PC6 MT_CH2 UR0_TX I2C0_SCL
12 PC7 MT_CH2N UR0_RX I2C0_SDA
13 9 12 10 CLDO
14 10 13 11 VDD_1
15 11 14 12 VSS_1
16 12 15 13 nRST
17 PB9 MT_CH3
18 13 X32KIN PB10 GT_CH0 SPI1_SEL USR_TX SCTM2
19 14 X32KOUT PB11 GT_CH1 SPI1_SCK USR_RX SCTM3
20 15 16 14 RTCOUT PB12 SPI0_MISO UR0_RX SCTM0 WAKEUP
21 16 17 15 XTALIN PB13 UR0_TX I2C0_SCL
22 17 18 16 XTALOUT PB14 UR0_RX I2C0_SDA
23 PB15 MT_CH0 SPI0_SEL I2C1_SCL
24 PC0 MT_CH0N SPI0_SCK I2C1_SDA SCTM3
25 PA8 USR_TX SCTM2
PA9_
26 18 19 17 SPI0_MOSI SCTM3 CKOUT
BOOT
27 PA10 MT_CH1 SPI0_MOSI USR_RX
28 PA11 MT_CH1N SPI0_MISO SCTM0
29 19 20 18 SWCLK PA12
30 20 21 19 SWDIO PA13
31 21 22 PA14 MT_CH0 SPI1_SEL USR_RTS I2C1_SCL
32 22 23 PA15 MT_CH0N SPI1_SCK USR_CTS I2C1_SDA SCTM1
33 23 24 20 PB0 MT_CH1 SPI1_MOSI USR_TX I2C0_SCL
34 24 25 21 PB1 MT_CH1N SPI1_MISO USR_RX I2C0_SDA SCTM2
35 VDD_2
36 33 VSS_2
37 25 26 22 PB2 MT_CH2 SPI0_SEL UR1_TX
38 26 27 23 PB3 MT_CH2N SPI0_SCK UR1_RX SCTM1
39 27 28 24 PB4 MT_BRK SPI0_MOSI UR1_TX SCTM0
40 28 PB5 GT_CH2 SPI0_MISO UR1_RX
41 PC1 MT_CH0 SPI1_SEL UR1_TX
42 PC2 MT_CH0N SPI1_SCK
43 PC3 MT_BRK SPI1_MOSI UR1_RX
44 PB6 GT_CH3 SPI1_MISO UR0_TX
45 29 1 1 PB7 ADC_IN0 MT_CH1 SPI0_MISO UR0_TX I2C1_SCL
46 30 2 2 PB8 ADC_IN1 MT_CH1N SPI0_SEL UR0_RX I2C1_SDA
47 31 3 3 VDDA
48 32 VSSA
Note: The pin number 33 of the 33-pin QFN package is located at the bottom metal of the QFN package.
Pin Assignment
6 6 PA5 ADC_IN7 GT_CH1 SPI0_MOSI UR1_RX I2C0_SDA SCI_DIO
7 PA6 ADC_IN8 GT_CH2 SPI0_MISO SCI_DET
8 PA7 ADC_IN9 GT_CH3 SPI0_SEL
9 PC4 ADC_IN10 USR_TX SCTM0
10 PC5 ADC_IN11 USR_RX SCTM1
11 7 USBDM
12 8 USBDP
13 9 CLDO
14 10 VDD_1
15 11 VSS_1
16 12 nRST
17 PB9 MT_CH3
18 13 X32KIN PB10 GT_CH0 SPI1_SEL USR_TX SCTM2
19 14 X32KOUT PB11 GT_CH1 SPI1_SCK USR_RX SCTM3
20 15 RTCOUT PB12 SPI0_MISO UR0_RX SCTM0 WAKEUP
21 16 XTALIN PB13 UR0_TX I2C0_SCL
22 17 XTALOUT PB14 UR0_RX I2C0_SDA
23 PB15 MT_CH0 SPI0_SEL I2C1_SCL
24 PC0 MT_CH0N SPI0_SCK I2C1_SDA SCTM3
25 PA8 USR_TX SCI_CLK SCTM2
26 18 PA9_BOOT SPI0_MOSI SCI_DIO SCTM3 CKOUT
27 PA10 MT_CH1 SPI0_MOSI USR_RX SCI_DET
28 PA11 MT_CH1N SPI0_MISO SCI_DET SCTM0
29 19 SWCLK PA12
30 20 SWDIO PA13
31 21 PA14 MT_CH0 SPI1_SEL USR_RTS I2C1_SCL SCI_CLK
32 22 PA15 MT_CH0N SPI1_SCK USR_CTS I2C1_SDA SCI_DIO SCTM1
33 23 PB0 MT_CH1 SPI1_MOSI USR_TX I2C0_SCL
34 24 PB1 MT_CH1N SPI1_MISO USR_RX I2C0_SDA SCTM2
35 VDD_2
36 33 VSS_2
37 25 PB2 MT_CH2 SPI0_SEL UR1_TX
38 26 PB3 MT_CH2N SPI0_SCK UR1_RX SCTM1
39 27 PB4 MT_BRK SPI0_MOSI UR1_TX SCTM0
40 28 PB5 GT_CH2 SPI0_MISO UR1_RX
41 PC1 MT_CH0 SPI1_SEL UR1_TX
42 PC2 MT_CH0N SPI1_SCK
43 PC3 MT_BRK SPI1_MOSI UR1_RX
44 PB6 GT_CH3 SPI1_MISO UR0_TX SCI_CLK
45 29 PB7 ADC_IN0 MT_CH1 SPI0_MISO UR0_TX I2C1_SCL SCI_DET
46 30 PB8 ADC_IN1 MT_CH1N SPI0_SEL UR0_RX I2C1_SDA SCI_DIO
47 31 VDDA
48 32 VSSA
Note: The pin number 33 of the 33-pin QFN package is located at the bottom metal of the QFN package.
Pin Assignment
7 10 PA6 AI/O 33V 4/8/12/16 mA PA6
8 11 PA7 AI/O 33V 4/8/12/16 mA PA7
9 PC4 AI/O 33V 4/8/12/16 mA PC4
10 PC5 AI/O 33V 4/8/12/16 mA PC5
11 7 PC6 AI/O — — PC6
12 8 PC7 AI/O — — PC7
Core power LDO 1.5 V output
13 9 12 10 CLDO P — — It is recommended to connect a 1 μF capacitor as close as
possible between this pin and VSS_1.
14 10 13 11 VDD_1 P — — Voltage for digital I/O
15 11 14 12 VSS_1 P — — Ground reference for digital I/O
External reset pin and external wakeup pin in the Power-
16 12 15 13 nRST Note 3
I 33V_PU —
Down mode
17 PB9 Note 3 I/O (VDD) 33V 4/8/12/16 mA PB9
18 13 PB10 Note 3 AI/O (VDD) 33V 4/8/12/16 mA X32KIN
19 14 PB11 Note 3 AI/O (VDD) 33V 4/8/12/16 mA X32KOUT
20 15 16 14 PB12 Note 3 I/O (VDD) 33V 4/8/12/16 mA RTCOUT
21 16 17 15 PB13 AI/O 33V 4/8/12/16 mA XTALIN
22 17 18 16 PB14 AI/O 33V 4/8/12/16 mA XTALOUT
23 PB15 I/O 33V 4/8/12/16 mA PB15
24 PC0 I/O 33V 4/8/12/16 mA PC0
25 PA8 I/O 33V 4/8/12/16 mA PA8
26 18 19 17 PA9 I/O 33V_PU 4/8/12/16 mA PA9_BOOT
27 PA10 I/O 33V 4/8/12/16 mA PA10
28 PA11 I/O 33V 4/8/12/16 mA PA11
29 19 20 18 PA12 I/O 33V_PU 4/8/12/16 mA SWCLK
30 20 21 19 PA13 I/O 33V_PU 4/8/12/16 mA SWDIO
31 21 22 PA14 I/O 33V 4/8/12/16 mA PA14
32 22 23 PA15 I/O 33V 4/8/12/16 mA PA15
33 23 24 20 PB0 I/O 33V 4/8/12/16 mA PB0
34 24 25 21 PB1 I/O 33V 4/8/12/16 mA PB1
35 VDD_2 P — — Voltage for digital I/O
36 33 VSS_2 P — — Ground reference for digital I/O
37 25 26 22 PB2 I/O 33V 4/8/12/16 mA PB2
38 26 27 23 PB3 I/O 33V 4/8/12/16 mA PB3
39 27 28 24 PB4 I/O 33V 4/8/12/16 mA PB4
40 28 PB5 I/O 33V 4/8/12/16 mA PB5
41 PC1 I/O 33V 4/8/12/16 mA PC1
42 PC2 I/O 33V 4/8/12/16 mA PC2
43 PC3 I/O 33V 4/8/12/16 mA PC3
44 PB6 I/O 33V 4/8/12/16 mA PB6
45 29 1 1 PB7 AI/O 33V 4/8/12/16 mA PB7
46 30 2 2 PB8 AI/O 33V 4/8/12/16 mA PB8
47 31 3 3 VDDA P — — Analog voltage for ADC and Comparator
48 32 VSSA P — — Ground reference for the ADC and Comparator
Note: 1. I = input, O = output, A = Analog port, P = power supply, PU = pull-up, VDD = VDD Power
2. 33V = 3.3V tolerant.
3. These pins are located at the VDD power domain.
Pin Assignment
7 PA6 AI/O 33V 4/8/12/16 mA PA6
8 PA7 AI/O 33V 4/8/12/16 mA PA7
9 PC4 AI/O 33V 4/8/12/16 mA PC4
10 PC5 AI/O 33V 4/8/12/16 mA PC5
11 7 USBDM AI/O — — USB Differential data bus conforming to the Universal Serial Bus standard.
12 8 USBDP AI/O — — USB Differential data bus conforming to the Universal Serial Bus standard.
Core power LDO 1.5 V output
13 9 CLDO P — — It is recommended to connect a 1 μF capacitor as close as possible
between this pin and VSS_1.
14 10 VDD_1 P — — Voltage for digital I/O
15 11 VSS_1 P — — Ground reference for digital I/O
16 12 nRST Note 3 I 33V_PU -- External reset pin and external wakeup pin in the Power-Down mode
17 PB9 Note 3 I/O (VDD) 33V 4/8/12/16 mA PB9
18 13 PB10 Note 3 AI/O (VDD) 33V 4/8/12/16 mA X32KIN
19 14 PB11 Note 3 AI/O (VDD) 33V 4/8/12/16 mA X32KOUT
20 15 PB12 Note 3 I/O (VDD) 33V 4/8/12/16 mA RTCOUT
21 16 PB13 AI/O 33V 4/8/12/16 mA XTALIN
22 17 PB14 AI/O 33V 4/8/12/16 mA XTALOUT
23 PB15 I/O 33V 4/8/12/16 mA PB15
24 PC0 I/O 33V 4/8/12/16 mA PC0
25 PA8 I/O 33V 4/8/12/16 mA PA8
26 18 PA9 I/O 33V_PU 4/8/12/16 mA PA9_BOOT
27 PA10 I/O 33V 4/8/12/16 mA PA10
28 PA11 I/O 33V 4/8/12/16 mA PA11
29 19 PA12 I/O 33V_PU 4/8/12/16 mA SWCLK
30 20 PA13 I/O 33V_PU 4/8/12/16 mA SWDIO
31 21 PA14 I/O 33V 4/8/12/16 mA PA14
32 22 PA15 I/O 33V 4/8/12/16 mA PA15
33 23 PB0 I/O 33V 4/8/12/16 mA PB0
34 24 PB1 I/O 33V 4/8/12/16 mA PB1
35 VDD_2 P — — Voltage for digital I/O
36 33 VSS_2 P — — Ground reference for digital I/O
37 25 PB2 I/O 33V 4/8/12/16 mA PB2
38 26 PB3 I/O 33V 4/8/12/16 mA PB3
39 27 PB4 I/O 33V 4/8/12/16 mA PB4
40 28 PB5 I/O 33V 4/8/12/16 mA PB5
41 PC1 I/O 33V 4/8/12/16 mA PC1
42 PC2 I/O 33V 4/8/12/16 mA PC2
43 PC3 I/O 33V 4/8/12/16 mA PC3
44 PB6 I/O 33V 4/8/12/16 mA PB6
45 29 PB7 AI/O 33V 4/8/12/16 mA PB7
46 30 PB8 AI/O 33V 4/8/12/16 mA PB8
47 31 VDDA P — — Analog voltage for ADC and Comparator
48 32 VSSA P — — Ground reference for the ADC and Comparator
Note: 1. I = input, O = output, A = Analog port, P = power supply, PU = pull-up, VDD = VDD Power
2. 33V = 3.3V tolerant.
3. These pins are located at the VDD power domain.
5 Electrical Characteristics
Electrical Characteristics
absolute maximum rating conditions for extended periods may affect device reliability.
Table 7. Absolute Maximum Ratings
Symbol Parameter Min Max Unit
VDD External Main Supply Voltage VSS - 0.3 VSS + 3.6 V
VDDA External Analog Supply Voltage VSSA - 0.3 VSSA + 3.6 V
VIN Input Voltage on I/O VSS - 0.3 VDD + 0.3 V
TA Ambient Operating Temperature Range -40 +85 °C
TSTG Storage Temperature Range -55 +150 °C
TJ Maximum Junction Temperature — +125 °C
PD Total Power Dissipation — 500 mW
VESD Electrostatic Discharge Voltage - Human Body Mode -4000 +4000 V
Power Consumption
Table 10. HT32F52231/52241 Power Consumption Characteristics
TA = 25°C, unless otherwise specified.
Symbol Parameter Conditions Min Typ Max Unit
VDD = 3.3V, HSE = 8MHz, PLL = 40MHz,
fHCLK = 40MHz, fPCLK = 48MHz, — 12 — mA
All peripherals enabled
VDD = 3.3V, HSE = 8MHz, PLL = 40MHz,
Electrical Characteristics
fHCLK = 40MHz, fPCLK = 40MHz, — 7 — mA
Supply Current All peripherals disabled
(Run Mode) VDD = 3.3V, HSE off, PLL off, LSI on,
fHCLK = 32kHz, fPCLK = 32kHz, — 45 — μA
All peripherals enabled
VDD = 3.3V, HSE off, PLL off, LSI on,
fHCLK = 32kHz, fPCLK = 32kHz, — 40 — μA
All peripherals disabled
VDD = 3.3V, HSE = 8MHz, PLL = 40MHz,
IDD fHCLK = 0MHz, fPCLK = 40MHz, — 7.5 — mA
Supply Current All peripherals enabled
(Sleep Mode) VDD = 3.3V, HSE = 8MHz, PLL = 40MHz,
fHCLK = 0MHz, fPCLK = 40MHz, — 2 — mA
All peripherals disabled
Supply Current VDD = 3.3V, All clock off (HSE/PLL/fHCLK),
— 35 — μA
(Deep-sleep1 Mode) LDO in low power mode, LSI on, RTC on
Supply Current VDD = 3.3V, All clock off (HSE/PLL/fHCLK),
— 5 — μA
(Deep-sleep2 Mode) LDO off (DMOS on), LSI on, RTC on
VDD = 3.3V, LDO off, DMOS off, LSE on,
— 2.8 — μA
Supply Current LSI on, RTC on
(Power-down Mode) VDD = 3.3V, LDO off, DMOS off, LSE off,
— 1.5 — μA
LSI on, RTC off
Electrical Characteristics
Supply Current
(Run Mode) VDD = 3.3V, HSE off, PLL off, LSI on,
fHCLK = 32kHz, fPCLK = 32kHz, — 45 — μA
All peripherals enabled
VDD = 3.3V, HSE off, PLL off, LSI on,
fHCLK = 32kHz, fPCLK = 32kHz, — 40 — μA
All peripherals disabled
VDD = 3.3V, HSE = 8MHz, PLL = 48MHz,
IDD fHCLK = 0MHz, fPCLK = 48MHz, — 10 — mA
Supply Current All peripherals enabled
(Sleep Mode) VDD = 3.3V, HSE = 8MHz, PLL = 48MHz,
fHCLK = 0MHz, fPCLK = 48MHz, — 2.5 — mA
All peripherals disabled
Supply Current VDD = 3.3V, All clock off (HSE/PLL/fHCLK),
— 35 — μA
(Deep-Sleep1 Mode) LDO in low power mode, LSI on, RTC on
Supply Current VDD = 3.3V, All clock off (HSE/PLL/fHCLK),
— 5 — μA
(Deep-Sleep2 Mode) LDO off (DMOS on), LSI on, RTC on
VDD = 3.3V, LDO off, DMOS off, LSE on,
— 2.8 — μA
Supply Current LSI on, RTC on
(Power-Down Mode) VDD = 3.3V, LDO off, DMOS off, LSE off,
— 1.5 — μA
LSI on, RTC off
Note: 1. HSE means high speed external oscillator. HSI means 8MHz high speed internal oscillator.
2. LSE means 32.768kHz low speed external oscillator. LSI means 32kHz low speed internal
oscillator.
3. RTC means real time clock.
4. Code = while (1) { 208 NOP } executed in Flash.
Electrical Characteristics
VPORHYST POR Hysteresis — — 150 mV
tPOR Reset Delay Time VDD = 3.3V — 0.1 0.2 ms
Note: 1. Data based on characterization results only, not tested in production.
2. Guaranteed by design, not tested in production.
3. If the LDO is turned on, the VDD POR has to be in the de-assertion condition. When the
VDD POR is in the assertion state then the LDO will be turned off.
Electrical Characteristics
CLHSE Load capacitance — — 22 pF
@ 16MHz
Internal Feedback Resistor between
RFHSE — — 1 — MΩ
XTALIN and XTALOUT pins
VDD = 3.3V, CL = 12pF
@ 16MHz, HSEDR = 0
RESR Equivalent Series Resistance* — — 160 Ω
VDD = 2.4V, CL = 12pF
@ 16MHz, HSEDR = 1
DHSE HSE Oscillator Duty Cycle — 40 — 60 %
IDDHSE HSE Oscillator Current Consumption VDD = 3.3V @ 16MHz — TBD — mA
IPWDHSE HSE Oscillator Power Down Current VDD = 3.3V — — 0.01 μA
tSUHSE HSE Oscillator STartup Time VDD = 3.3V — — 4 ms
Note: The following guidelines are recommended to increase the stability of the crystal circuit of the
HSE / LSE clock in the PCB layout:
●● The crystal oscillator should be located as close as possible to the MCU to keep the trace
lengths as short as possible to reduce any parasitic capacitance.
●● Shield lines in the vicinity of the crystal by using a ground plane to isolate signals and
reduce noise.
●● Keep any high frequency signal lines away from the crystal area to prevent any crosstalk
adverse effects.
Electrical Characteristics
Factory Calibrated HSI Oscilla- VDD = 2.5V ~ 3.6V, -3 — 3 %
ACCHSI TA = -40°C ~ +85°C
tor FRequency Accuracy
VDD = 2.0V ~ 3.6V
-4 — 4 %
TA = -40°C ~ +85°C
Duty Duty Cycle fHSI = 8MHz 35 — 65 %
Oscillator Supply Current — 300 500 μA
IDDHSI fHSI = 8MHz
Power down Current — — 0.05 μA
tsuHSI Startup Time fHSI = 8MHz — — 10 μs
PLL Characteristics
Table 18. PLL Characteristics
TA = 25°C, unless otherwise specified.
Symbol Parameter Conditions Min Typ Max Unit
fPLLIN PLL Input Clock — 4 — 16 MHz
fCK_PLL PLL Output Clock — 16 — 48 MHz
tLOCK PLL Lock Time — — 200 — μs
Memory Characteristics
Table 19. Flash Memory Characteristics
TA = 25°C, unless otherwise specified.
Symbol Parameter Conditions Min Typ Max Unit
Number of Guaranteed Program/Erase
NENDU TA = -40°C ~ +85°C 10 — — K cycles
Cycles Before Failure. (Endurance)
tRET Data Retention Time TA = -40°C ~ +85°C 10 — — Years
tPROG Word Programming Time TA = -40°C ~ +85°C 20 — — μs
tERASE Page Erase Time TA = -40°C ~ +85°C 2 — — ms
tMERASE Mass Erase Time TA = -40°C ~ +85°C 10 — — ms
Electrical Characteristics
IIH High Level Input Current pull-down resister
Reset pin disabled. — — 3 μA
VDD ×
3.3V IO - 0.5 — V
0.35
VIL Low Level Input Voltage
VDD ×
Reset pin - 0.5 — V
0.35
VDD × VDD +
3.3V IO — V
0.65 0.5
VIH High Level Input Voltage
VDD × VDD +
Reset pin — V
0.65 0.5
VDD ×
3.3V IO — — mV
Schmitt Trigger Input 0.12
VHYS
Voltage Hysteresis VDD ×
Reset pin — — mV
0.12
3.3V IO 4mA drive, VOL = 0.4V 4 — — mA
Low Level Output Current 3.3V IO 8mA drive, VOL = 0.4V 8 — — mA
IOL
(GPIO Sink Current) 3.3V IO 12mA drive, VOL = 0.4V 12 — — mA
3.3V IO 16mA drive, VOL = 0.4V 16 — — mA
3.3V I/O 4mA drive, VOH = VDD - 0.4V 4 — — mA
High Level Output Current 3.3V I/O 8mA drive, VOH = VDD - 0.4V 8 — — mA
IOH
(GPIO Source Current) 3.3V I/O 12mA drive, VOH = VDD - 0.4V 12 — — mA
3.3V I/O 16mA drive, VOH = VDD - 0.4V 16 — — mA
3.3V 4mA drive IO, IOL = 4mA — — 0.4 V
3.3V 8mA drive IO, IOL = 8mA — — 0.4 V
VOL Low Level Output Voltage
3.3V 12mA drive IO, IOL = 12mA — — 0.4 V
3.3V 16mA drive IO, IOL = 16mA — — 0.4 V
VDD -
3.3V 4mA drive IO, IOH = 4mA — — V
0.4
VDD -
3.3V 8mA drive IO, IOH = 8mA — — V
0.4
VOH High Level Output Voltage
VDD -
3.3V 12mA drive IO, IOL = 12mA — — V
0.4
VDD -
3.3V 16mA drive IO, IOL = 16mA — — V
0.4
RPU Internal Pull-up Resistor 3.3V I/O — 46 — kΩ
RPD Internal Pull-down Resistor 3.3V I/O — 46 — kΩ
ADC Characteristics
Table 21. ADC Characteristics
TA = 25°C, unless otherwise specified.
Symbol Parameter Conditions Min Typ Max Unit
VDDA Operating Voltage — 2.5 3.3 3.6 V
VADCIN A/D Converter Input Voltage Range — 0 — VREF+ V
VREF+ A/D Converter Reference Voltage — — VDDA VDDA V
Electrical Characteristics
IADC Current Consumption VDDA = 3.3V — 1 TBD mA
IADC_DN Power Down Current Consumption VDDA = 3.3V — — 0.1 μA
fADC A/D Converter Clock — 0.7 — 16 MHz
fS Sampling Rate — 0.05 — 1 MHz
1/fADC
tDL Data Latency — — 12.5 —
Cycles
1/fADC
tS&H Sampling & Hold Time — — 3.5 —
Cycles
1/fADC
tADCCONV A/D Converter Conversion Time — — 16 —
Cycles
RI Input Sampling Switch Resistance — — — 1 kΩ
No pin/pad capacitance
CI Input Sampling Capacitance — 16 — pF
included
tSU Startup Up Time — — — 1 μs
N Resolution — — 12 — bits
INL Integral Non-linearity Error fS = 750kHz, VDDA = 3.3V — ±2 ±5 LSB
DNL Differential Non-linearity Error fS = 750kHz, VDDA = 3.3V — ±1 — LSB
EO Offset Error — — — ±10 LSB
EG Gain Error — — — ±10 LSB
Note: 1. Guaranteed by design, not tested in production.
2. Due to the A/D Converter input channel and GPIO pin-shared function design limitation, the
VDDA supply power of the A/D Converter has to be equal to the VDD supply power of the MCU
in the application circuit.
3. The figure below shows the equivalent circuit of the A/D Converter Sample-and-Hold input
stage where CI is the storage capacitor, RI is the resistance of the sampling switch and RS
is the output impedance of the signal source VS. Normally the sampling phase duration is
approximately, 3.5/fADC. The capacitance, CI, must be charged within this time frame and it
must be ensured that the voltage at its terminals becomes sufficiently close to VS for accu-
racy. To guarantee this, RS is not allowed to have an arbitrarily large value.
SAR ADC
sample
RS
VS CI
Electrical Characteristics
RI
The worst case occurs when the extremities of the input range (0V and V REF ) are sampled
consecutively. In this situation a sampling error below ¼ LSB is ensured by using the following
equation:
3.5
RS RI
f ADC C I ln( 2 N 2 )
Where fADC is the ADC clock frequency and N is the ADC resolution (N = 12 in this case). A safe
margin should be considered due to the pin/pad parasitic capacitances, which are not accounted for
in this simple model.
If, in a system where the A/D Converter is used, there are no rail-to-rail input voltage variations
between consecutive sampling phases, RS may be larger than the value indicated by the equation
above.
SCTM/GPTM/MCTM Characteristics
Table 22. SCTM/GPTM/MCTM Characteristics
Symbol Parameter Conditions Min Typ Max Unit
fTM Timer Clock Source for GPTM and MCTM — — — 48 MHz
tRES Timer Resolution Time — 1 — — fTM
fEXT External Single Frequency on Channel 1 ~ 4 — — — 1/2 fTM
RES Timer Resolution — — — 16 bits
I2C Characteristics
Table 23. I2C Characteristics
Standard mode Fast mode Fast mode plus
Symbol Parameter Unit
Min Max Min Max Min Max
fSCL SCL Clock Frequency — 100 — 400 — 1000 kHz
tSCL(H) SCL Clock High Time 4.5 — 1.125 — 0.45 — μs
tSCL(L) SCL Clock Low Time 4.5 — 1.125 — 0.45 — μs
Electrical Characteristics
tFALL SCL and SDA Fall Time — 1.3 — 0.34 — 0.135 μs
tRISE SCL and SDA Rise Time — 1.3 — 0.34 — 0.135 μs
tSU(SDA) SDA Data Setup Time 500 — 125 — 50 — ns
SDA data hold time (Note 5) 0 — 0 — 0 — ns
tH(SDA)
SDA data hold time (Note 6) 100 — 100 — 100 — ns
tVD(SDA) SDA data valid time — 1.6 — 0.475 — 0.25 μs
tSU(STA) START Condition Setup Time 500 — 125 — 50 — ns
tH(STA) START Condition Hold Time 0 — 0 — 0 — ns
tSU(STO) STOP Condition Setup Time 500 — 125 — 50 — ns
Note: 1. Guaranteed by design, not tested in production.
2. To achieve 100 kHz standard mode, the peripheral clock frequency must be higher than 2MHz.
3. To achieve 400 kHz fast mode, the peripheral clock frequency must be higher than 8MHz.
4. To achieve 1MHz fast mode plus, the peripheral clock frequency must be higher than 20MHz.
5. The above characteristic parameters of the I2C bus timing are based on: COMB_FILTER_En
= 0 and SEQ_FILTER = 00.
6. The above characteristic parameters of the I2C bus timing are based on: COMB_FILTER_En
= 1 and SEQ_FILTER = 00.
tFALL tRISE
SCL
tSCL(L) tSCL(H)
tVD(SDA)
tH(STA) tSU(STO)
tH(SDA) tSU(SDA)
SDA
tSU(STA)
SPI Characteristics
Table 24. SPI Characteristics
Symbol Parameter Conditions Min Typ Max Unit
SPI Master Mode
fSCK SPI master output SCK Master mode, SPI peripheral
— — fPCLK/2 MHz
(1/tSCK) clock frequency clock frequency fPCLK
tSCK(H) tSCK/2 tSCK/2
SCK clock high and low time — ns
tSCK(L) -2 +1
Electrical Characteristics
tV(MO) Data output valid time — — — 5 ns
tH(MO) Data output hold time — 2 — — ns
tSU(MI) Data input setup time — 5 — — ns
tH(MI) Data input hold time — 5 — — ns
SPI Slave Mode
fSCK SPI master output SCK Slave mode, SPI peripheral
— — fPCLK/3 MHz
(1/tSCK) clock frequency clock frequency fPCLK
SPI slave input SCK clock
DutySCK 30 — 70 %
duty cycle
tSU(SEL) SEL enable setup time — 3 tPCLK — — ns
tH(SEL) SEL enable hold time — 2 tPCLK — — ns
tA(SO) Data output access time — — — 3 tPCLK ns
tDIS(SO) Data output disable time — — — 10 ns
tV(SO) Data output valid time — — — 25 ns
tH(SO) Data output hold time — 15 — — ns
tSU(SI) Data input setup time — 5 — — ns
tH(SI) Data input hold time — 4 — — ns
Note: tSCK= 1/fSCK; tPCLK= 1/fPCLK. SPI output (input) clock frequency fSCK; SPI peripheral clock frequency fPCLK.
tSCK
SCK (CPOL = 0)
tSCK(H) tSCK(L)
SCK (CPOL = 1)
tV(MO) tH(MO)
tV(MO) tH(MO)
SEL
tSU(SEL) tH(SEL)
tSCK
SCK
Electrical Characteristics
(CPOL=0)
tSCK(H) tSCK(L)
SCK
(CPOL=1)
tSU(SI) tH(SI)
Figure 13. SPI Timing Diagrams – SPI Slave Mode with CPHA=1
USB Characteristics
The USB interface is USB-IF certified – Full Speed.
Table 25. USB DC Electrical Characteristics
Symbol Parameter Conditions Min Typ Max Unit
VDD USB Operating Voltage — 3.0 — 3.6 V
VDI Differential Input Sensitivity | USBDP - USBDM | 0.2 — — V
VCM Common Mode Voltage Range — 0.8 — 2.5 V
Electrical Characteristics
VSE Single-ended Receiver Threshold — 0.8 — 2.0 V
VOL Pad Output Low Voltage 0 — 0.3 V
VOH Pad Output High Voltage 2.8 — 3.6 V
RL of 1.5kΩ to VDD33
Differential Output Signal Cross-point
VCRS 1.3 — 2.0 V
Voltage
ZDRV Driver Output Resistance — — 10 — Ω
CIN Transceiver Pad Capacitance — — — 20 pF
Note: 1. Guaranteed by design, not tested in production.
2. The USB functionality is ensured down to 2.7V but for not the full USB electrical characteris-
tics which will experience degradation in the 2.7V to 3.0V VDD voltage range.
3. RL is the load connected to the USB driver USBDP.
Tr Tf
90% 90%
VCRS
10% 10%
Figure 14. USB Signal Rise Time and Fall Time and Cross-point Voltage (VCRS) Definition
6 Package Information
Note that the package information provided here is for consultation purposes only. As this
information may be updated at regular intervals users are reminded to consult the Holtek website
for the latest version of the Package/Carton Information.
Package Information
Additional supplementary information with regard to packaging is listed below. Click on the
relevant section to be transferred to the relevant website page.
• Package Information (include Outline Dimensions, Product Tape and Reel Specifications)
• Carton information
Package Information
Dimensions in inch
Symbol
Min. Nom. Max.
A — 0.236 BSC —
B — 0.154 BSC —
C 0.008 — 0.012
C’ — 0.341 BSC —
D — — 0.069
E — 0.025 BSC —
F 0.004 — 0.010
G 0.016 — 0.050
H 0.004 — 0.010
α 0° — 8°
Dimensions in mm
Symbol
Min. Nom. Max.
A — 6.000 BSC —
B — 3.900 BSC —
C 0.200 — 0.300
C’ — 8.660 BSC —
D — — 1.750
E — 0.635 BSC —
F 0.100 — 0.250
G 0.410 — 1.270
H 0.100 — 0.250
α 0° — 8°
Package Information
Dimensions in inch
Symbol
Min. Nom. Max.
A — 0.236 BSC —
B — 0.154 BSC —
C 0.008 — 0.012
C’ — 0.390 BSC —
D — — 0.069
E — 0.025 BSC —
F 0.004 — 0.0098
G 0.016 — 0.050
H 0.004 — 0.010
α 0° — 8°
Dimensions in mm
Symbol
Min. Nom. Max.
A — 6.000 BSC —
B — 3.900 BSC —
C 0.200 — 0.300
C’ — 9.900 BSC —
D — — 1.750
E — 0.635 BSC —
F 0.100 — 0.250
G 0.410 — 1.270
H 0.100 — 0.250
α 0° — 8°
Package Information
33
Dimensions in inch
Symbol
Min. Nom. Max.
A 0.028 0.030 0.031
A1 0.000 0.001 0.002
A3 — 0.008 BSC —
b 0.006 0.008 0.010
D — 0.157 BSC —
E — 0.157 BSC —
e — 0.016 BSC —
D2 0.104 0.106 0.108
E2 0.104 0.106 0.108
L 0.014 0.016 0.018
K 0.008 — —
Dimensions in mm
Symbol
Min. Nom. Max.
A 0.700 0.750 0.800
A1 0.000 0.020 0.050
A3 — 0.203 BSC —
b 0.150 0.200 0.250
D — 4.000 BSC —
E — 4.000 BSC —
e — 0.400 BSC —
D2 2.650 2.700 2.750
E2 2.650 2.700 2.750
L 0.350 0.400 0.450
K 0.200 — —
Package Information
Dimensions in inch
Symbol
Min. Nom. Max.
A — 0.354 BSC —
B — 0.276 BSC —
C — 0.354 BSC —
D — 0.276 BSC —
E — 0.020 BSC —
F 0.007 0.009 0.011
G 0.053 0.055 0.057
H — — 0.063
I 0.002 — 0.006
J 0.018 0.024 0.030
K 0.004 — 0.008
α 0° ― 7°
Dimensions in mm
Symbol
Min. Nom. Max.
A — 9.000 BSC —
B — 7.000 BSC —
C — 9.000 BSC —
D — 7.000 BSC —
E — 0.500 BSC —
F 0.170 0.220 0.270
G 1.350 1.400 1.450
H — — 1.600
I 0.050 — 0.150
J 0.450 0.600 0.750
K 0.090 — 0.200
α 0° ― 7°
Package Information
Copyright© 2018 by HOLTEK SEMICONDUCTOR INC.
The information appearing in this Data Sheet is believed to be accurate at the time
of publication. However, Holtek assumes no responsibility arising from the use of
the specifications described. The applications mentioned herein are used solely
for the purpose of illustration and Holtek makes no warranty or representation that
such applications will be suitable without further modification, nor recommends
the use of its products for application that may present a risk to human life due to
malfunction or otherwise. Holtek's products are not authorized for use as critical
components in life support devices or systems. Holtek reserves the right to alter
its products without prior notification. For the most up-to-date information, please
visit our web site at http://www.holtek.com.tw/en/home.