
1995 Jun 15
22
Philips Semiconductors
Preliminary specification
Microcontrollers for TV tuning
control and OSD applications
PCA84C646; PCA84C846
10.2
Loading character data into display RAM
Three Derivative Registers are used to address and load
data into the display RAM. These registers (configurations
are shown in Tables 18, 19 and 20) are described in the
following Sections.
10.2.1
DCR A
DDRESS
R
EGISTER
(DCRAR)
Table 18
DCRAR (address 30H)
This is Derivative Register 30 and bits <5-0> holds the
address of the location in display RAM to which the data
held in registers DCRTR and DCRCR will be written to.
Bits <7-6> are reserved.
10.2.2
DCR A
TTRIBUTE
R
EGISTER
(DCRTR)
Table 19
DCRTR (address 31H)
This is Derivative Register 31 and holds the character font
attribute data. The data will be loaded into bits <3-0> of the
location in RAM pointed to by the contents of DCRAR.
Bits <7-4> are reserved.
10.2.3
DCR C
HARACTER
R
EGISTER
(DCRCR)
Table 20
DCRCR (address 32H)
This is Derivative Register 32 and holds the character data
that will be loaded into bits <9-4> of the location in RAM
addressed by the contents of DCRAR. Bits <7-6> are
reserved.
10.3
Writing character data to display RAM
1.
Select the start address in display RAM. The start
address is stored in DCRAR and can take any value
between 0 and 63.
7
6
5
4
3
2
1
0
A5
A4
A3
A2
A1
A0
7
6
5
4
3
2
1
0
T3
T2
T1
T0
7
6
5
4
3
2
1
0
C5
C4
C3
C2
C1
C0
2.
Load the character attributes into DCRTR. If the
attributes of a series of displayed characters are the
same, only DCRCR needs to be updated.
The meaning of the attributes (4 bits) is dependent on
the contents of the next command (the data in the
DCRCR bits <5-0>; i.e. Carriage Return Code, Space
Code or Character Font Code).
Load the character data into DCRCR. This operation
loads the selected RAM location with the data held in
registers DCRTR and DCRCR. The address held in
DCRAR is then incremented by ‘1’ pointing to the next
RAM location in anticipation of the next operation.
3.
Overflow of the DCRAR, i.e. overflow from 63 to 64,
makes it reset to zero. After the instruction ‘MOV D32H, A’
is finished, the post-increment operation is performed
automatically. Auto-post-increment operation:
Begin
(DCRAR)
≤
(DCRAR) + 1
If (DCRAR) > 63 then (DCRAR)
≤
0
End
After master RESET the initial values of DCRAR, DCRTR
and DCRCR are all zero. Figure 16 shows how DCRAR is
incremented and advanced.
10.4
Default value of the display character
The default values of the display characters, after master
RESET, are as follows:
Background colour = Blue (R = 0, G = 0, B = 1)
Character size = 1V/1H
End-of-Display control bit = 0.
If another set-up is needed, the first character should be
SP code and second character is CR code to define the
character size and background colour.
handbook, halfpage
17
00
01
02
03
04
61
62
63
18
19
MED208
Fig.16 DCRAR increment cycle.