
LM1276 Address Map
(Continued)
TABLE 13. LM1276 Auto Size Registers
(Continued)
Default
D7
D6
0xFF
0x07
0xFF
0x07
0xFF
0xFF
0x07
0x40
INTR_EN
LIMIT
0x00
INTR
RSV
0xFF
0xFF
0xFF
Register
V_BP0
V_BP1
V_FP0_PRV
V_FP1_PRV
V_SYN_PRV
V_BP0_PRV
V_BP1_PRV
HB CONTROL
STATUS
MCU COMMAND
SUB COMMAND
SEQ NUM
Address
0x8589
0x858A
0x858B
0x858C
0x858D
0x858E
0x858F
0x8590
0x8591
0x8592
0x8593
0x859A
D5
D4
D3
D2
D1
D0
VBP[7:0]
RSV
VBP[10:8]
VFP PREV [7:0]
VFP PREV[10:8]
VSYNC PREV [7:0]
VBP PREV [7:0]
VBP PREV[10:8]
RSV
RSV
WHLDIS
RSV
FSHEN
RSV
MCU COMMAND[7:0]
SUB COMMAND[7:0]
SEQ NUM[7:0]
LOCK
ORR
RSV
RSV
RSV
RSV
RSV
RSV
RSV
PLL LOCK
0xFFF8
0x00
RSV
RSV
LOCK
SET
RSV
RSV
RSV
RSV
RSV
H INPUT SEL
0xFFFD
0x01
RSV
RSV
HSEL
RSV
RSV
RSV
Building Display Pages
THE OSD WINDOW
The Display Page RAM contains all of the 9-bit display character codes and their associated 4-bit attribute codes, and the special
13-bit page control codes—the End-of-Line, skip-line parameters and End-of-Screen characters. The LM1276 has a distinct
advantage over many OSD Generators in that it allows variable size and format windows. The window size is not dictated by a
fixed geometric area of RAM. Instead, 512 locations of 13-bit words are allocated in RAM for the definition of the windows, with
special control codes to define the window size and shape.
Window width can be any length supported by the number of pixels per line that is selected divided by the number of pixels in a
character line. It must be remembered that OSD characters displayed during the monitor blanking time will not be displayed on
the screen, so the practical limit to the number of horizontal characters on a line is reduced by the number of characters within
the horizontal blanking period.
The EOS code tells the OSD generator that the character codes following belong to another displayed window at the next window
location. An EOS code may follow normal characters or an SL code, but never an EOL control code, because EOL is always
followed by an AC plus an SL code.
WRITING TO THE PAGE RAM
The Display Page RAM can contain up to 512 of the above listed characters and control codes. Each character, or control code
will consume one of the possible 512 locations. For convenience, writing a 1 to bit 3 of the Frame Control Register (0x8400) resets
all page RAM values to zero. This should be done at power up to avoid unpredictable behavior.
Display Window 1 will also start at the first location (corresponding to the I
2
C address 0x8000). This location must always contain
the Skip-Line (SL) code associated with the first line of Display Window 1. The attribute for this SL code must be written before
the SL code itself, and will be stored in the lower four bits of this memory location. Subsequent locations should contain the
characters to be displayed on line 1 of Display Window 1, until the EOL code or EOS code is written into the Display Page-RAM.
The skip-line parameters associated with the next line must always be written to the location immediately after the preceding line’s
End-of-Line character. The only exception to this rule is when an End-of-Screen character (value 0x0000) is encountered. It is
important to note that an End-of-Line character should not precede an End-of-Screen character (otherwise the End-of-Screen
character will be interpreted as the next line’s skip-line code). Instead, the End-of-Screen code will end the line and also end the
window, making it unnecessary to precede it with an EOL. The I
2
C Format for writing a sequence of display characters is
minimized by allowing sequential characters with the same attribute code to send in a string as follows:
Byte #1: I
2
C Slave Address
Byte #2: LSB Register Address
Byte #3: MSB Register Address
Byte #4: Attribute Table Entry to use for the following s skip-line code or characters
Byte #5: First display character, SL parameter, EOL or EOS control code
Byte #6: Second display character, SL parameter, EOL or EOS control code
Byte #7: Third display character, SL parameter, EOL or EOS control code
Byte #n: Last display character in this color sequence, SL parameter, EOL or EOS control code to use the associated Attribute
Table Entry.
L
www.national.com
30