User`s manual
ENDAT-K1001 USERS MANUAL
UNICORN COMPUTER CORP.
25
2-6. LCD Backlight ON/OFF Control
1) Inverter Power/ON/OFF Signal level select:
I-PWR1 (Pin2, 4, 6): LCD Backlight Voltage Select (2x3 with 2.0mm)
Voltage +5V +12V *
I-PWR1 4-6 2-4
I-PWR1 (Pin1, 3, 5): Inverter ON/OFF Level Select (2x3 with 2.0mm)
Voltage +3.3V * +5V
I-PWR1 1-3 3-5
2) Backlight ON/OFF Control port address:
This is alternate function with VBIOS (VESA) to offering an easy way to control
the LCD backlight ON and OFF as need. Please follow the instructions of
below for more detail in operation.
Sample code for backlight on/off control (using Turbo C/C++ 3.0):
#define input_port 0xf40
outportb(0x2e,0x87); // Unlock register
outportb(0x2e,0x01); // Unlock register
outportb(0x2e,0x55); // Unlock register
outportb(0x2e,0x55); // Unlock register
outportb(0x2e,0x07); // Set Logic Device number pointer
outportb(0x2f,0x07); // Set Logic Device number
outportb(0x2e,0x25); // Set Multi-Function Pin for GPIO Set1
outportb(0x2f,0x10); // GP10~17 (Default 01)
outportb(0x2e,0x2A); // Set Ext Multi-Function Pin
outportb(0x2f,0x10); // Set Bit 1: GPIO / 0:PCIRST
outportb(0x2e,0xC0); // Set Enable Simple GPIO
outportb(0x2f,0x10); // GP10~17 (Default 01)
outportb(0x2e,0xB0); // Set GPIO Pin Polarity
outportb(0x2f,0x10); // GP10~17(Default 00) 1:Inverting/0: Non-Inverting
outportb(0x2e,0xC8); // Set GPIO Input Mode / Output Mode
outportb(0x2f,0x10); // 0: Inputer ; 1: Output (Default 00)
outportb(0xf40,0xnn); // Set active register is IO Base Address 0F40 “default 2F”
// ; bit4 = 0h Backlight On
// ; bit4 = 1 Backlight Off
Register configuration:
Bit No 7 6 5 4 3 2 1 0
Map
NA NA NA
BKL CTRL
NA NA NA NA