27 GRAPHICS ENGINE (GE)
27-32
Seiko Epson Corporation
S1C33L26 TECHNICAL MANUAL
The RECT command draws a rectangle with the colored line specified. Specify the X and Y coordinates of the up-
per left and lower right corners. The line width can also be specified in number of pixels.
Argument 1 (Drawing effects and color)
D[31:24] Reserved
D23
Clip Enable Bit
Enables or disables the clipping function. (See Section 27.3.5.)
1: Clipping enabled
0: Clipping disabled
D22
Transparent Enable Bit
Enables or disables transparency. (See Section 27.3.5.)
1: Transparency enabled
0: Transparency disabled
D[21:20] Palette Select[1:0] Bits
Selects the palette to be used when converting colors with a palette. (See Section 27.3.5.)
5.7.1 Palette Selection
Table 27.
Palette Select[1:0] bits
Palette
0x3
Palette 3
0x2
Palette 2
0x1
Palette 1
0x0
Not used
D19
Sync Enable Bit
Enables or disables the LCDC synchronization function. (See Section 27.3.5.)
1: Enabled (Synchronized)
0: Disabled (Not synchronized)
D[18:16] Write Effect Setting[2:0] Bits
Selects a writing effect. (See Section 27.3.5.)
5.7.2 Writing Effect Selections
Table 27.
Write Effect Setting[2:0] bits
Writing effect
0x7–0x4
Reserved
0x3
Rewrite
0x2
Mesh
0x1
XOR
0x0
Normal (Fill)
D[15:0] Color[15:0] Bits
Specifies the drawing color.
The effective bits depend on the GE bpp mode (set using DISP_BPP[2:0]/GE_DISP_CFG register).
16 bpp mode: Color[15:0] (D[15:0]) bits are effective
8 bpp mode: Color[7:0] (D[7:0]) bits are effective
4 bpp mode: Color[3:0] (D[3:0]) bits are effective
2 bpp mode: Color[1:0] (D[1:0]) bits are effective
1 bpp mode: Color0 (D0) bit is effective
The color data may be modified before being written to the work area according to the palette and/or
writing effect settings. (See Section 27.3.5.)
Argument 2 (Line width)
D[31:12] Reserved
D[11:0] Line Width[11:0] Bits
Specifies the line width in number of pixels. (See Section 27.3.2.)