
LM1247 Address Map (Continued)
PREAMPLIFIER CONTROL
These registers, shown in
Table 15, control the gains, DAC outputs, PLL, horizontal and vertical blanking, OSD contrast and DC
offset of the video outputs. 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 15. LM1247 Preamplifier Interface Registers
Register
Address
Default
D7
D6
D5
D4
D3
D2
D1
D0
BGAINCTRL
0x8430
0xE0
X
BGAIN[6:0]
GGAINCTRL
0x8431
0xE0
X
GGAIN[6:0]
RGAINCTRL
0x8432
0xE0
X
RGAIN[6:0]
CONTRCTRL
0x8433
0xE0
X
CONTRAST[6:0]
DAC1CTRL
0x8434
0x80
DAC1[7:0]
DAC2CTRL
0x8435
0x80
DAC2[7:0]
DAC3CTRL
0x8436
0x80
DAC3[7:0]
DAC4CTRL
0x8437
0x80
DAC4[7:0]
DACOSDDCOFF
0x8438
0x94
X
DCF[1:0]
OSD CONT[1:0]
DS OFFSET[1:0]
GLOBALCTRL
0x8439
0x00
XXXXXX
PS
BV
AUXCTRL
0x843A
0x07
XXXXXX
ACD
HBD
PLLFREQRNG
0x843E
0x16
X
CLMP
X
OOR
VBL
PFR[1:0]
SRTSTCTRL
0x843F
0x00
X
A/D[0]
XXXXX
SRST[0]
TWO-COLOR ATTRIBUTE RAM
This address range (0x8440 - 0x8497) contains the attribute lookup tables used for displaying two-color characters. There are 16
groups of 4 bytes each according to the format shown in
Table 16. The attributes are stored starting with Color 0 (background)
and each color is stored red first, green second and then blue. They may be written or read using the following address format:
Address = 0x8440 + (N * 0x4) + B
where: N = Attribute number (0x0
≤ N ≤ 0xF)
B = Attribute byte number (0x0
≤ B ≤ 0x3)
When reading, it is OK to read only one, two, or all three bytes. When writing more than one 2-color attribute using the auto
increment feature, all four bytes must be written. When writing, bytes 0 through 2 must be written in order. Bytes 0 through 2 will
take effect after byte 2 is written. Since byte 3 contains all reserved bits, this byte may be written, but will have no effect. Any bits
marked as “X” are reserved and should be written to with zeros and should be ignored when the register is read.
TABLE 16. LM1247 Two-Color Attribute Registers
Register
Address
D7
D6
D5
D4
D3
D2
D1
D0
ATT2C0n
0x8440 + 4n
C0B[1:0]
C0G[2:0]
C0R[2:0]
ATT2C1n
+1
C1B[0]
C1G[2:0]
C1R[2:0]
C0B[2]
ATT2C2n
+2
X
EF[3:0]
C1B[2:1]
ATT2C3n
+3
XXXXXXX
X
FOUR-COLOR ATTRIBUTE RAM
This address range (0x8500 - 0x857F), contains the attribute lookup tables used for displaying four-color characters. There are
16 groups of 8 bytes each according to the format shown in
Table 17. The attributes are stored starting with Color 0 (background)
and each color is stored red first, green second and then blue. They may be written or read using the following address format:
Address = 0x8500 + (N * 0x8) + B
where: N = Attribute number (0x0
≤ N ≤ 0xF)
B = Attribute byte number (0x0
≤ B ≤ 0x7)
When writing, bytes 0 through 2 must be written in order and bytes 4 through 6 must be written in order. Bytes 0 through 2 will
take effect after byte 2 is written. Bytes 4 through 6 will take effect after byte 6 is written. Since bytes 5 and 7 contain all reserved
bits, these bytes may be written, but no effect will result. When reading, it is OK to read only one, two, or all three bytes. If writing
more than one 4-color attributes using the auto increment feature, all eight bytes must be written. Any bits marked as “X” are
reserved and should be written to with zeros and should be ignored when the register is read.
LM1247
www.national.com
26