
Rev. 1.00
537 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
27 LED Controller (LEDC)
27 LED Controller (LEDC)
CK_LED
SEGx
SEGxPOL = 1
1/N frame = 64 clocks
(DTYNUM = 3)
~C0Sx
COM Duty = 59 clocks
Deadtime Duty
= 5 clocks
(DEADNUM = 5)
COM0
COM5
~C5Sx
COM7
~C7Sx
……
……
Scanning
Frequency
.
.
.
.
.
.
.
.
.
COMyPOL = 0
(y = 0, 5 ~ 7)
(x = 0, 1,
…
, 7)
~ ~
~ ~
~ ~
~ ~
~ ~
~ ~
1 Frame
Figure 197. Common Anode 8-segment Digital D PNP BJT Timing
LEDC Frame Interrupt
The frame interrupt can be enabled after the pixel data of the last COM duty is latched. Users can
update the pixel data or adjust the dead time duty in the interrupt service routine.
The Frame interrupt flag, FIF
,
in the LEDSR register is set by hardware and reset by software by
writing a “1” to it
CK_LED
SEGx
SEGxPOL = 0
1/N frame = 64 clocks
(DTYNUM = 11, N=4)
C0Sx
COM Duty = 59 clocks
Deadtime Duty
= 5 clocks
(DEADNUM = 5)
COM0
COM5
C5Sx
COM7
C7Sx
……
……
Scanning
Frequency
.
.
.
.
.
.
.
.
.
COMyPOL = 0
(y = 0, 5 ~ 7)
(x = 0, 1,
…
, 7)
Frame interrupt
C7Sx latched
1 Frame
~ ~
~ ~
~ ~
~ ~
~ ~
~ ~
Figure 198. Frame Interrupt