
Building Display Pages (Continued)
Notes:
The black background is Color 0 and the gray foreground is Color 1 which we will store in two-color attribute location 5 at
0x8454–0x8457.
The Enhanced Feature portion will be set to Normal (no blinking, shadowing or button boxes, etc.)
The character codes for “A”, “B”, etc. are from bank 4 of the sample font shown in
Figure 29 through
Figure 36.For this example, bank 4 is selected by Bank Select Register 0, and therefore the two upper bits of the character codes are
both 0.
The data shown in
Table 18 is sent to the LM1247 in two transmissions, one for the attribute and one for the Page data. Also,
additional data will need to be sent to position the OSD window and turn it on.
Every line must begin with an AC and an SL code. The first location addressed by the Window 1 Start Address register must
always be contain the SL for the first line of display window #1.
Every line except the last line of a display window must end with an EOL code. The character immediately after an EOL is
always the SL value for the next line, unless the window contains just one line.
The last code in a display window must be an EOS character. The EOS must NOT follow an EOL character.
The attributes that are associated with EOL and EOS characters are not used, so it is most efficient just to allow them to be
the same value as the attribute associated with the previous display characters.
See the Microcontroller Interface Section for I
2C compatible start, stop and addressing information.
TABLE 18. Example 1 Data Transmissions
Data Sent
Description
RAM Address
I
2C start condition
0xBA
LM1247 Slave Write Address
0x54
Two-color attribute location 5 address LSB
0x84
Two-color attribute location 5 address MSB
0x00
Attribute Byte 1 of 4
Background (Color 0): Red = 000b, Green = 000b and
Blue = 000b.
Foreground (Color 1): Red = 101b, Green = 101b, Blue
= 101b, and Enhanced Feature = 0000b.
8454
0xDA
Attribute Byte 2 of 4
8455
0x02
Attribute Byte 3 of 4
8456
0x00
Attribute Byte 4 of 4
8457
I
2C stop condition
I
2C start condition
0xBA
LM1247 Slave Write Address
0x00
Address LSB
0x80
Address MSB
0x05
Use Attribute 5 for the following characters
0x00
Skip 0 lines code
8000
0x02
Character “A”
8001
0x03
Character “B”
8002
20048440
FIGURE 25. Example 1 OSD
LM1247
www.national.com
28