27 GRAPHICS ENGINE (GE)
S1C33L26 TECHNICAL MANUAL
Seiko Epson Corporation
27-43
The FONT_CFG command sets the font information, such as the memory location where the font data (character
set) is stored, character and background colors, and font bitmap size, to the GE module. This setting must be per-
formed before starting character drawing. For information on the font data format, see Section 27.3.3.
Argument 1 (Font configuration)
D[31:24] Reserved
D[23:16] Font Index Offset[7:0] Bits
Specifies the index code size in bytes for each character data in the font set to be used. If the character
data consists of bitmap data only without index code, specify as 0x0.
D15
Reserved
D[14:8] Height[6:0] Bits
Specifies the height of the font in number of pixels.
D7
Reserved
D[6:0]
Width[6:0] Bits
Specifies the width of the font in number of pixels.
Argument 2 (Color settings)
D[31:16] Character Color[15:0] Bits
Specifies the drawing color for characters.
D[15:0] Background Color[15:0] Bits
Specifies the background color for characters.
The effective Character/Background Color bits depend on the GE bpp mode (set using DISP_BPP[2:0]/
GE_DISP_CFG register).
16 bpp mode: Character/Background Color[15:0] (D[31:16]/D[15:0]) bits are effective.
8 bpp mode: Character/Background Color[7:0] (D[23:16]/D[7:0]) bits are effective.
4 bpp mode: Character/Background Color[3:0] (D[19:16]/D[3:0]) bits are effective.
2 bpp mode: Character/Background Color[1:0] (D[17:16]/D[1:0]) bits are effective.
1 bpp mode: Character/Background Color0 (D16/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 3 (Font set base address)
D[31:0] Font Set Base Address[31:0] Bits
Specifies the memory address from which the font set data is stored.
CHAR Command (Character Drawing)
27.5.14
Bit
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
CMD
0x21
0xffff
ARG1
Effect Setting
Font Index
re
se
rv
ed
R
es
iz
e/
T
ile
S
el
ec
t
re
se
rv
ed
R
ot
at
io
n
S
el
ec
t
C
lip
E
na
bl
e
Tr
an
sp
ar
en
t E
na
bl
e
P
al
et
te
S
el
ec
t
S
yn
c
E
na
bl
e
W
rit
e
E
ffe
ct
S
et
tin
g
ARG2
Y1 Coordinate
X1 Coordinate
ARG3
Y2 Coordinate
X2 Coordinate
The CHAR command draws a character or symbol specified by an index in the character set at the specified loca-
tion. The command also allows specification of drawing effects such as resizing, tiling, and rotation as well as gen-
eral drawing effects.