Note that the pixels in the first line immediately below the character may be overwritten by the pixel override system that creates
the button box. (Refer to the Button Box Formation Section for more information).
After the first line, each new line always starts with an SL code, even if the number of skipped lines to follow is zero. This means
an SL code must always follow an EOL code. An EOL code may follow an SL code if several ‘transparent’ lines are required
between sections of the window. See Example 3 in the LM1247 data sheet for a case where skipped lines of zero characters are
displayed, resulting in one window being displayed in two segments.
End-Of-Screen Code
To signify the end of the window, a special End-Of-Screen (EOS) code is used in place of a End-Of-Line (EOL) code. There must
be at least one EOS code in the Page RAM to avoid unpredictable behavior. This can be accomplished by clearing the RAM by
writing a 0 to bit 3 of the FRMCTRL1 Register, 0x8400, immediately after power up.
TABLE 10. End-Of-Screen Code
ATTRIBUTE CODE
END-OF-SCREEN CODE
ATT[3:0]
0
Bits 8–0 are all zeros. Bits 12–9 will have the previously entered AC but this is not used and so these bits are “don’t cares”.
OSD CONTROL REGISTERS
These registers, shown in
Table 11, control the size, position, enhanced features and ROM bank selection of up to two independent
OSD windows. These registers are compatible to the LM1246 OSD control Registers. Any bits marked as “X” are reserved
and should be written to with zeros and should be ignored when the register is read. Additional register detail is provided in the
Control Register Definitions Section, later in this document.
TABLE 11. OSD Control Register Detail
Register
Address
Default
D7
D6
D5
D4
D3
D2
D1
D0
FRMCTRL1
0x8400
0x98
ASZDN
ASZEN
FEN
TD
CDPR
D2E
D1E
OSE
FRMCTRL2
0x8401
0x80
PIXELS_PER_LINE[2:0]
BLINK_PERIOD[4:0]
CHARFONTACC
0x8402
0x00
SRST
RSV
LIMIT
VSYPOL
HSYPOL
ATTR
FONT4
VBLANKDUR
0x8403
0x10
X
VBLANK_DURATION[6:0]
CHARHTCTRL
0x8404
0x51
CHAR_HEIGHT[7:0]
BBHLCTRLB0
0x8405
0xFF
G[1:0]
R[2:0]
B[2:0]
BBHLCTRLB1
0x8406
0x01
X
G[2]
BBLLCTRLB0
0x8407
0x00
G[1:0]
R[2:0]
B[2:0]
BBLLCTRLB1
0x8408
0x00
X
G[2]
CHSDWCTRLB0
0x8409
0x00
G[1:0]
R[2:0]
B[2:0]
CHSDWCTRLB1
0x840A
0x00
X
G[2]
ROMSIGCTRL
0x840D
0x00
X
CRS
ROMSIGDATAB0
0x840E
0x00
CRC[7:0]
ROMSIGDATAB1
0x840F
0x00
CRC[15:8]
HSTRT1
0x8410
0x62
HPOS1[7:0]
VSTRT1
0x8411
0x32
VPOS1[7:0]
W1STRTADRL
0x8412
0x00
ADDR1[7:0]
W1STRTADRH
0x8413
0x00
X
ADDR1
[8]
COLWIDTH1B0
0x8414
0x00
COL1[7:0]
COLWIDTH1B1
0x8415
0x00
COL1[15:8]
COLWIDTH1B2
0x8416
0x00
COL1[23:16]
COLWIDTH1B3
0x8417
0x00
COL1[31:24]
HSTRT2
0x8418
0x56
HPOS2[7:0]
VSTRT2
0x8419
0x5B
VPOS2[7:0]
W2STRTADRL
0x841A
0x00
ADDR2[7:0]
www.national.com
26
200969 Version 2 Revision 4
Print Date/Time: 2011/07/11 11:20:12
LM1276