![](http://datasheet.mmic.net.cn/40000/LM1247AAG-NA-NOPB_datasheet_1645329/LM1247AAG-NA-NOPB_29.png)
Building Display Pages (Continued)
TABLE 18. Example 1 Data Transmissions (Continued)
Data Sent
Description
RAM Address
0x04
Character “C”
8003
0x01
End-of-Line (EOL) code
8004
0x00
Skip 0 lines
8005
0x05
Character “D”
8006
0x06
Character “E”
8007
0x07
Character “F”
8008
0x00
End-of-Screen (EOS) code
8009
I
2C stop condition
EXAMPLE 2
A 3x2 character matrix of characters on a black background is to be displayed on the screen using 2-color character codes. Two
gray skip lines are desired below the first line of characters, and 3 gray skip lines are desired below the second line. This is shown
The first line of characters will use attribute 0, the second line will use attribute 0 for the first character, attribute 1 for the second
character, and attribute 2 for the third character. The skip lines will use attribute 3, which we choose to be the inverse of attribute
1.
Notes:
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, we assume bank 4 is selected by Bank Select Register 3, so the two upper bits of the character codes are
both 1’s. Therefore, the code stored in page RAM for the “A” will be 0xC2.
Every line begins with an AC and an SL code. The first location addressed by the Window 1 Start Address register must always
contain the SL for the first line of display window #1.
If an I
2C transmission finishes without an EOL code (in the middle of a line) the first byte sent in the next transmission is an
AC.
Every line except the last line of a display window ends 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 character in a display window is an EOS code. The EOS must NOT follow an EOL character.
Table 19 shows the data sent to the LM1247 for the entire image, in 7 transmissions.
TABLE 19. Example 2 Data Transmissions
Data Sent
Description
RAM Address
I
2C start condition
0xBA
LM1247 Slave Write Address
0x40
Two-color attribute location 0 address LSB
0x84
Two-color attribute location 0 address MSB
20048441
FIGURE 26. Example 2 OSD
LM1247
www.national.com
29