Nxp Semiconductors UM10237 User Manual

Page of 792
UM10237_2
© NXP B.V. 2008. All rights reserved.
User manual
Rev. 02 — 19 December 2008 
293 of 792
NXP Semiconductors
UM10237
Chapter 12: LPC24XX LCD controller
For monochrome STN mode, only the red palette field bits [4:1] are used. However, in 
STN color mode the green and blue [4:1] are also used. Only 4 bits per color are used, 
because the gray scaler only supports 16 different shades per color.
 shows the bit representation of the palette data for the STN monochrome 
mode.
 
6.5 Hardware cursor
The hardware cursor is an integral part of the LCD controller. It uses the LCD timing 
module to provide an indication of the current scan position coordinate, and intercepts the 
pixel stream between the palette logic and the gray scale/output multiplexer.
All cursor programming registers are accessed through the LCD slave interface. This also 
provides a read/write port to the cursor image RAM.
6.5.1 Cursor operation
The hardware cursor is contained in a dual port RAM. It is programmed by software 
through the AHB slave interface. The AHB slave interface also provides access to the 
hardware cursor control registers. These registers enable you to modify the cursor 
position and perform various other functions.
When enabled, the hardware cursor uses the horizontal and vertical synchronization 
signals, along with a pixel clock enable and various display parameters to calculate the 
current scan coordinate.
5
G[0]
Unused
G[0]
Unused
4:1
R[4:1]
Red palette data
B[4:1]
Blue palette data
0
R[0]
Unused
B[0]
Unused
Table 252. Palette data storage for STN monochrome mode.
Bit(s)
Name
Description
31
-
Unused
30:27
-
Unused
26
-
Unused
25:22
-
Unused
21
-
Unused
20:17
Y[3:0]
Intensity data
16
-
Unused
15
-
Unused
14:11
-
Unused
10
-
Unused
9:6
-
Unused
5
-
Unused
4:1
Y[3:0]
Intensity data
0
-
Unused
Table 251. Palette data storage for STN color modes.
Bit(s)
Name
(RGB format)
Description 
(RGB format)
Name
(BGR format)
Description 
(BGR format)