
Rev. 1.00
536 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
27 LED Controller (LEDC)
CK_LED
SEGx
SEGxPOL = 0
(x = 0, 1,
…
, 7)
COM0
COM5
COM7
……
……
Scanning
Frequency
COMyPOL = 1
(y = 0, 5 ~ 7)
1/N frame = 64 clocks
(DTYNUM = 3), N = 4
C0Sx
COM Duty = 59 clocks
Deadtime Duty
= 5 clocks
(DEADNUM = 5)
C5Sx
C7Sx
.
.
.
.
.
.
.
.
.
1 Frame
~ ~
~ ~
~ ~
~ ~
~ ~
~ ~
Figure 195. Common Cathode 8-segment Digital D NPN Transistor Timing
Common Anode 8-segment Digital D PNP BJT Connection
▆
SEG output low and COM output low → LED on
▆
COM output high → LED off
The register configurations are as follows:
▆
Set SEGxPOL = 1, the output is inverted. Set COMyPOL = 0, the output is non-inverted.
▆
Set DTYNUM[1:0] = b11, the period of each digital display scan is 64 CK_LED clocks.
▆
The selected COMs are enabled.
COMy
(y = 0, 5 ~ 7)
SEG0
SEG1
SEG2
SEG3
SEG4
SEG5
SEG6
SEG7
V
DD
R
Figure 196. Common Anode 8-segment Digital D PNP BJT Connection