
2004 Sep 03
52
Philips Semiconductors
Product specication
Enhanced TV microcontrollers with
On-Screen Display (OSD)
SAA56xx
21.3
CCBASE SFR
The SAA56xx incorporates a CCBASE SFR, which
enables CC Display data to be accessed from any 1-kbyte
partition within the Display memory. This SFR allows the
CC Base address for Closed Caption Display memory to
overlap Teletext memory at the following hexadecimal
boundaries of the 80C51 microcontroller ‘MOVX’ address
space:
2000H (same as SAA55x default), 2400H, 2800H, 2C00H,
3000H, 3400H, 3800H, 3C00H, 4000H, 4400H, 4800H,
4C00H, 5000H, 5400H, 5800H, 5C00H, 6000H, 6400H,
6800H and 6C00H.
The reset value for the CCBASE Address SFR is 20H, thus
ensuring software compatibility with other variants in the
SAA55xx family. Register bits CCBASE1 and CCBASE0
must always be set to zero at 1-kbyte boundaries.
Figure
15 shows the default setting for the CC Display
memory.
21.4
Addressing memory
The memory can be addressed by the microcontroller in
two ways, either directly using a MOVX command or via
SFRs, depending on what address is required.
The dedicated Auxiliary RAM, and Display memory in the
range 8000H to 86FFH can only be accessed using the
MOVX command.
The Display memory in the range 2000H to 47FFH can
either be directly accessed using the MOVX command, or
via the SFRs.
21.4.1
TXT DISPLAY MEMORY SFR ACCESS
configured as 40 columns wide by 25 rows and occupies
1K
× 8-bit of memory. There can be a maximum of
12 display pages. Using TXT15.BLOCK<3:0> and
TXT15.MICRO BANK, the required display page can be
selected to be written to. The row and column within that
block is selected using TXT9.R<4:0> and TXT10.C<5:0>.
The data at the selected position can be read or written
using TXT11.D<7:0>.
Whenever a read or write is performed on TXT11, the row
values stored in TXT9 and column value stored in TXT10
are automatically incremented. For rows 0 to 24, the
column value is incremented up to a maximum of 39, at
which point it resets to 0 and increments the row counter
value. When row 25 column 23 is reached, the values of
the row and column are both reset to 0.
Writing values outside the valid range for TXT9 or TXT10
will cause undetermined operation of the
auto-incrementing function for accesses to TXT11.
21.4.2
TXT DISPLAY MEMORY MOVX ACCESS
For the generation of OSD displays that use this mode of
access, it is important to understand the mapping of the
MOVX address onto the display row and column value.
This mapping of row and column onto address is shown in
Table
21. The values shown are added onto a base
a 16-bit address.
handbook, halfpage
GSA061
upper 32 kbytes
lower 32 kbytes
AUXILIARY
TXT BLOCK 0
0000H
0800H
2000H
TXT BLOCK 9
2400H
TXT BLOCK 1
2800H
TXT BLOCK 2
2C00H
TXT BLOCK 3
3000H
TXT BLOCK 4
3400H
TXT BLOCK 5
3800H
TXT BLOCK 6
3C00H
TXT BLOCK 7
4000H
TXT BLOCK 8
TXT BLOCK 10
TXT BLOCK 19
4400H
4800H
4C00H
5000H
7FFFH
CC DISPLAY
8000H
84FFH
FFFFH
Fig.15 DRAM memory mapping.