Samsung S3C6400X User Manual page 538

Table of Contents

Advertisement

GRAPHICS 2D
COORD_0
COORD_1
FG_COLOR
BG_COLOR
CMDR_7
CMDR_4/CMDR_5
RASTER OPERATION
 
Raster Operation performs Boolean operations on three operands: source, destination and third operand
according to the 8-bit ROP value specified by the user. The truth table of ROP is given in the following table.
The third operand can be pattern or foreground color, configurable by the OS bit in the ROP_REG.
Pattern is a user-specified 8x8x16-bpp image; the pattern data should be given in RGB565 format. The following
equation is used to calculate the pattern index of pixel (x, y):
index = ( ((patternOffsetY + y) & 0x7 )<<3 ) + ((patternOffsetX + x)&0x7),
where patternOffsetY and patternOffsetX are the offset value specified in register PATOFF_REG.
Here are some examples on how to use the ROP value to perform the operations:
1) Final Data = Source. Only the Source data matter, so ROP Value = "11110000".
2) Final Data = Destination. Only the Destination data matter, so ROP Value = "11001100".
3) Final Data = Pattern. Only the Pattern data matter, so ROP Value = "10101010".
18-6
Coordinate of the leftmost topmost coordinate of the destination window
Coordinate of the rightmost bottommost coordinate of the destination window
Foreground Color
Background Color
The base address of the font data. Note that writing to this register starts the
rendering process in the memory-to-screen mode.
The host provides the font data through these two command registers. When the
host writes the first 32-bit data into CMDR_4, the rendering process starts in the
host-to-screen mode. Then the host should provide the rest of data by writing them
into CMDR_5 continuously.
Source
Destination
1
1
1
1
1
0
1
0
0
1
0
1
0
0
0
0
Third Operand
ROP Value
1
Bit7
0
Bit6
1
Bit5
0
Bit4
1
Bit3
0
Bit2
1
Bit1
0
Bit0
S3C6400X RISC MICROPROCESSOR

Advertisement

Table of Contents
loading

Table of Contents