Mapping Ram Registers; One Bit/Pixel Monochrome Mode; Four Bits/Pixel Passive Matrix Color Mode - Motorola DragonBall MC9328MX1 Reference Manual

Integrated portable system processor
Table of Contents

Advertisement

19.4.17 Mapping RAM Registers

The mapping RAM is used for mapping 4-bit codes for grayscale to the 16 gray shades, and for mapping 4-
or 8-bit color codes to either the 4096 (for active panels) or 512 colors (for passive panels). The color
RAM (0x00205800-0x00205BFC) contains 256 entries and each entry is 12 bits wide. Each RAM entry
use 4 bytes of address space. The RAM can be accessed with word transactions only and the address must
be word aligned. Unimplemented bits are read as 0. Byte or halfword access to the RAM corrupts its
contents. All read/write data use least significant twelve bits.
In 4 bpp mode, the first sixteen RAM entries are used. In 8 bpp mode, all 256 RAM entries are used. The
color RAM is not initialized at reset. With any given panel, only one of the following settings is valid:
1 bpp monochrome mode
4 bpp gray-scale mode
4 bpp passive matrix color mode
8 bpp passive matrix color mode
4 bpp active matrix color mode
8 bpp active matrix color mode
12/16 bpp active matrix color mode

19.4.17.1 One Bit/Pixel Monochrome Mode

The mapping RAM is not used in this mode because the LCDC uses the display data in memory to drive
the panel directly.
19.4.17.2 Four Bits/Pixel Gray-Scale Mode
In four bits/pixel gray-scale mode, a 4-bit code represents a gray-scale level. The first 16 mapping RAM
entries must be written to define the codes for all 16 combinations.
BIT
11
TYPE
r
0
RESET
Name
Reserved
Reserved—These bits are reserved and should read 0.
Bits 11–4
GPM
Gray Palette Map—Represents the gray-scale level for a given pixel code.
Bits 3–0

19.4.17.3 Four Bits/Pixel Passive Matrix Color Mode

In four bits/pixel passive matrix color mode, a 4-bit code represents a 12-bit color. Because just four bits
are used to encode the color, a maximum of 16 colors can be selected out of a palette of 4096. The first 16
mapping RAM entries must be written to define the codes for the 16 available combinations.
MOTOROLA
10
9
8
7
r
r
r
r
0
0
0
0
Table 19-25. Four Bits/Pixel Gray-Scale Mode
LCD Controller
6
5
4
3
2
r
r
r
rw
rw
0
0
0
?
?
Description
Programming Model
1
0
GPM
rw
rw
?
?
19-37

Advertisement

Table of Contents
loading

Table of Contents