LCD CONTROLLER/DRIVER

S3C9228/P9228

 

 

LCD MODE CONTROL REGISTER (LMOD)

A LMOD is located in page 0, at address FEH, and is read/write addressable using register addressing mode. It has the following control functions.

LCD duty and bias selection

LCD clock selection

LCD display control

COMs signal output control

P3 high impedance control

The LMOD register is used to turn the LCD display on/off, to select duty and bias, to select LCD clock, to control port 3 high impedance/normal I/O port, and to turn the COM signal output on/off. Following a RESET, all LMOD values are cleared to "0". This turns off the LCD display, select 1/3 duty and 1/3 bias, and select 256Hz for LCD clock.

The LCD clock signal determines the frequency of COM signal scanning of each segment output. This is also referred as the LCD frame frequency. Since the LCD clock is generated by watch timer clock (fw). The watch timer should be enabled when the LCD display is turned on.

MSB

LCD Mode Control Register (LMOD)

FEH, R/W

.7

.6

.5

.4

.3

.2

.1

.0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

LSB

Not used

COM pins high impedance control bit:

0 = Normal COMs signal output

1 = High impendane COM pins

Port 3 high impendance control bit 0 = Normal I/O

1 = High impendane input

LCD clock selection bits:

00 = fw/27 (256 Hz when fw is 32.768 kHz) 01 = fw/26 (512 Hz when fw is 32.768 kHz) 10 = fw/25 (1024 Hz when fw is 32.768 kHz) 11 = fw/24 (2048 Hz when fw is 32.768 kHz)

LCD duty and bias selection bits:

00 = 1/3 duty, 1/3 bias (COM0-COM2, SEG0-SEG19) 01 = 1/4 duty, 1/3 bias (COM0-COM3, SEG0-SEG19) 10 = 1/8 duty, 1/4 bias (COM0-COM7, SEG0-SEG15) 11 = 1/8 duty, 1/5 bias (COM0-COM7, SEG0-SEG15)

LCD display control bit 0 = Display off

1 = Normal display on

Figure 13-4. LCD Mode Control Register (LMOD)

13-4

Page 418
Image 418
Samsung S3C9228/P9228, 8-Bit CMOS Microcontroller user manual LCD Mode Control Register Lmod