Hitachi AP1 Data Book page 153

4-bit single-chip microcomputer
Table of Contents

Advertisement

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - LCD-III
[~~~~-_;_-I
B< B< B':
So
I
~
Al
A2
A,
I
A and B
(Note) A's significanca is inverted.
C~=~~
I
R. : Ru : Ru : Rn
I
R. : R.: RI2 : Rill R2and R3
(Note) The significanca of R2 and R3 is inverted.
Figure 5 Correspondence of Each Bit of the Pattern
" "
Y
15 14 13 12 11 10
9
8
7
6
5
4
3
2
1
0
• RAM (RANDOM ACCESS MEMORY)
RAM is the memory used for data storage and register save
(data RAM) and storage of segment data for liquid crystal
display (display data RAM). One unit (digit) consists of
4 bits and there is a total of 160 digits (640 bits).
(NOTE) Capacity of display data RAM varies by contents
of display, and capacity of data RAM changes
corresponding to the former.
Addressing of RAM is performed by the matrix of the me
number and the digit number. There are 10 mes and 16
digits in the matrix. Normally the me No. is set to X and the
digit No. is set to Y, then the matrix of X and Yaddresses
RAM and performs the Read/Write operation.
Special digits in RAM can be addressed without the use of
X and Y. These digits are called as memory register (MR)
and the number is 16 (MRO to MRlS). Memory register can
be exchanged for A register By XAMR instruction.
RAM address space is shown in Figure 6.
X
i~ 15 14 13 12 11 10
9
8
7
6
5
4
3
2
1
0
+-
digit No.
!
00
00
10
10
or
!
Ol
it it
N
:E :E
t
file
No.
M
N
it it it
:E :E :E
i.··
·i.
0
it
>
Ol
a:
:E
00
,..
co
10
or
a: a: a: a: a:
:E :E :E :E :E
M
N
...
a: a: a:
:E :E :E
0
a:
:E
• The area market as
c::::::J
is
usable only for data.
*
The data marked as
C::::J
is
usable for both data and
display.
* The file 8 is selected when
X
register has any value in
8 to ",and the file 9 is
selected when 12 to 15.
Figure 6 RAM Address Space
In case of the instructions which consist of a simultaneous
Read/Write operations of RAM (exchange of RAM and a
register), the writing data doesn't affect the reading data
because the read operation is followed by the write opera-
tion.
RAM bit manipulation is usable, which performs any bit set,
reset or test of the addressed RAM. Bit assignment is made
by the program as shown below.
151
3
2
o
n Bit assignment No.
~-2~'~2-2~--2-1~---~~1
M
The bit test makes the status "1" when the assigned bit is
"I" and makes it "0" when the assigned bit is "0".

Advertisement

Table of Contents
loading

Table of Contents