
Rev. 1.00
531 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
26 Cyclic Redundancy Check (CRC)
27 LED Controller (LEDC)
27
27
LED Controller (LEDC)
Introduction
The LED controller is used to drive 8-segment digital displays. For the HT32F54231/HT32F54241
devices, the LED controller can drive up to eight 8-segment digital displays. For the HT32F54243/
HT32F54253 devices, the LED controller can drive up to twelve 8-segment digital displays. Users
have the flexibility to configure the pin position and number of the COMs according to the digital
displays in their application. In a complete frame period, t
frame
, the enabled COMs will be scanned
from the lower to the higher. Taking an example of where four 8-segment LEDs are used and where
COM0, COM5, COM6 and COM7 are enabled. Here COM0, COM5, COM6 and the COM7 will be
scanned successively in this sequence within a complete frame period. The scanning time of each
COM port is equal to 1/4 t
frame
, which is subdivided into the dead time duty and the COM duty.
Users can adjust the dead time duty to change the LED brightness.
LED
Registers
LED
Controller
LED
Prescaler
APB Bus
PCLK
CK_LED
LEDMUX [3:0]
LEDPS [11:0]
LEDEN
SEGPOL [7:0]
COMPOL [15:0]
DTYNUM [1:0]
LEDDRn
(n = 0 ~ 11)
Selected COM signals
FIEN
COMyEN (y = 0 ~ 11)
DEADNUM [5:0]
LSE
LSI
LED Pixel Data
FIF
SEGx
(x = 0 ~ 7)
COMy
(y = 0 ~ 11)
Frame Interrupt
Figure 189. LEDC Block Diagram