![Sino Wealth SH79F3283 Скачать руководство пользователя страница 78](http://html1.mh-extra.com/html/sino-wealth/sh79f3283/sh79f3283_manual_1283063078.webp)
SH79F3283
78
8.2 LED Driver
The LED driver contains a controller, a duty generator with 3-8 Common signal pins and 8 Segment driver pins. Support
1/3-1/8 duty voltage driver mode, the 1/3-1/8 duty is adjustable. Set DISPSEL bit can select the LED driver mode.
LED SEG1-SEG8 can be shared as I/O. When DISPSEL = 1, LCD is disable and LED is enable. The P0SS and P2SS
registers are invalid, select the mode of LED_SEG 1-8 and LED_C1-LED_C8 is controlled by P1SS, P3SS registers.
The DISPSEL bit must be set to 1 before enable LED driver.
The Common Ports integrated large current sink ability, when OP_P37-P34 = 0 and OP_P33-P.0 = 1, the Port3 large current
sink ability is enable. (Refer to Code Option)
During the Power in Reset, Pin Reset, LVR Reset and Watchdog Reset, the LED driver will be turned off.
8.2.1 Register
Table 8.8
LED Control Register
ABH, Bank0
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
DISPCON
DISPSEL
LEDON
-
DUTY0
-
-
-
-
R/W
R/W
R/W
-
R/W
-
-
-
-
Reset Value
(POR/WDT/LVR/PIN)
0
0
-
0
-
-
-
-
Bit Number
Bit Mnemonic
Description
7
DISPSEL
LCD/LED control bit
0: select LCD driver
1: select LED driver
6
LEDON
LED control bit
0: turn off LED driver
1: turn on LED driver
4
DUTY0
DUTY[2:1]
LED duty selection bit (Combination control with DUTY[2:1])
Refer to DUTY[2:1]
Note: SH79F3283 has LCD and LED driver, but cannot work at the same time. When DISPSEL = 1, LCD is disabled, when
DISPSEL = 0, LED is disable.