![](http://datasheet.mmic.net.cn/390000/ST6391_datasheet_16835102/ST6391_48.png)
Each linemustbeginwith aformatcharacterwhich
describes the format of that line and of the first
word. This character is not displayed.
A space character defines the format of sub-
one inbit6inthe displayRAM.Ifbit6 of the display
RAM is a zero, the other six bits define one of the
64 displaycharacters.
The colour, background and enable can be pro-
grammed by word. This information is encoded in
the space character between words or in the for-
mat character at the beginning of each line. Five
bits definethe colour andbackgroundof thefollow-
ing word, and determine whether it will be dis-
played ornot.
Charactersare storedin a6 x9dotformat.Onedot
is defined vertically as 2H (horizontal lines) and
horizontally as 2/f
osc
if the smallest character size
is enabled.There is no space between characters
or linesif theverticalspaceenable (VSE)and hori-
zontal spaceenable (HSE) bitsare bothzero. This
allows the use of special graphics characters.
The normal alphanumericcharacter set is format-
ted to be 5 x 7 with one empty row at the top and
one at the bottom and one empty column at the
right. IfVSEand HSEare bothzero,thenthespac-
ing betweenalphanumericcharactersis 1 dot and
the spacingbetweenlinesofalphanumericcharac-
ters is 2H.
The character size is programmed by line through
the use of the size bit (S) in the format character
and the globalsize bits(GS1 and GS2). The verti-
cal spacing enable bit (VSE) located in the format
character controls the spacing between lines. If
this bit is set to one, the spacing between lines is
defined by the vertical spacingregister, otherwise
the spacingbetween lines is 0.
The spacing between words is controlled by the
horizontal space enable bit (HSE) located in the
space character.Ifthisbit isset toone,the spacing
between wordsisdefinedbythehorizontal spacing
register, otherwise the space character width of 6
dots is the spacing between words.
The formats for the display character, space
character and format character are described
hereafter.
D7.
Not used.
D6.
This pinis fixed to “1”.
R, G,B.
Colour.The3colour controlbitsdefinethe
colour of the followingword asshown in Table be-
low.
SpaceCharacterRegisterColour Setting.
R
G
B
Colour
0
0
0
Black
0
0
1
Blue
0
1
0
Green
0
1
1
Cyan
1
0
0
Red
1
0
1
Magenta
1
1
0
Yellow
1
1
1
White
BGS.
Background Select. The background select
bit selectsthe desiredbackground forthefollowing
word. There are twopossiblebackgroundsdefined
by the bits in the Background Control Register.
“0” -The background on the following word is en-
abled by BG0 and the colour is set by R0, G0,
and B0.
“1” -The background on the following word is en-
abled by BG1 and the colour is set by R1, G1,
and B1.
ON-SCREEN DISPLAY
(Continued)
Space Character Format
See Data RAM Table Description
for Specific Address
( Write Only)
D7 D6 D5 D4 D3 D2 D1 D0
HSE = Horizontal SpaceEnable
WE = Word Enable Bit
BGS =BackroundSelect
B = B Colour Bit
G =G ColourBit
R =R ColourBit
Fixed to “1”
Unused
Figure 56. Space Character Register
Explanation
ST6391,92,93,95,97,99
44/64