All Locations Are; Directly Address - Intel MCS48 User Manual

Family of single chip microcomputers
Hide thumbs Also See for MCS48:
Table of Contents

Advertisement

SINGLE
COMPONENT
SYSTEM
8021 Functional
Specifications
The
following
is
a functional description
of
the
major elements
of
the 8021.
2.5
Program
Memory
The
8021
contains
1K
x
8
of
mask
programmable
ROM. No
external
ROM
expansion
capability
is
provided.
2.6
Data
Memory
A
64
x 8
dynamic
RAM
is
located
on
chip
for
data
storage.
All
locations are
indirectly
addressable
and
eight
designated
locations
are
directly
addressable.
Also,
included
in
the
memory
is
the
address
stack,
addressed
by
a
3-bit
stack
pointer.
Memory
is
organized as
shown
in
Figure
1.
The
least significant
8 addresses,
0-7,
are
directly
addressable by
any
of
the
1 1
direct
register
instructions.
The
locations are
readily
accessible
for
a variety
of
opera-
tions with the
least
number
of instruction
bytes required
for their
manipulation.
Registers
and
1
have another
function,
in
that
they
can be used
to indirectly
address
all
locations
in
memory,
using the
indirect
register instructions.
These
indirect
RAM
address
registers,
IRAR's, are especially
useful
for
repetitive-type
operations
on
adjacent
memory
locations.
The
indirect
register instruction specifies
which
IRAR
to
use,
and
the contents
of
the
IRAR
is
used
to
address
a location
in
RAM. The
contents
of
the
addressed
location
is
used
during the
execution
of
the
instruction
and
may
be
modified.
A
value
larger
than 63 should not
be
preset
in
the
IRAR when
selected
by an
indirect register instruction.
IRAR's
may
point to
address
0-7,
if
desired.
Locations 8-23
may
be used
as the
address
stack.
The
address
stack
enables
the pro-
cessor
to
keep
track of the return
addresses
generated from
CALL
instructions.
A
3-bit
stack pointer
(SP)
supplies the
address
of
the locations
to
be loaded
with the next
return
address
generated.
The
SP
to
this
pushdown
stack
is
incremented by
one
after
a
return
address
is
stored,
and
decre-
mented
by
one
before
an address
is
fetched
during a
RET.
The
unincremented program
counter address
is
stored
in
the
address
stack.
The
stack
contents
is
incremented
before being loaded
into
the
program coun-
ter
during a
return
from
subroutine.
A
total
of 8 levels of
nesting
is
possible.
The
SP
is
initialized
to
location
8
upon RESET.
Since
each address
is
1
0-bits long,
two
bytes
must
be used
to
store a single address.
The SP
is
incremented
and decremented by
one, but
each increment
or
decrement
moves
the
address
pointed
to
by
two. Therefore, only
even
numbered
addresses
are pointed
to.
If
a particular application
does
not require8
levels of
nesting,
the
unused
portion
of
the
stack
may
be used
as
any
other
indirectly
addressable scratchpad
location.
For
ex-
ample,
if
only 3
levels of
subroutine
nesting
are used,
then only
locations
8-13
need be
reserved
for
the
address
stack,
and
loca-
tions
14-63
can be used
for
data
storage.
INDIRECTLY
ADDRESSABLE
BY
IRAR0OR
1
CAN
BE
USED
FOR ADDRESS
STACK
DIRECTLY
ADDRESSABLE
FIGURE
1.
INTERNAL
RAM
ORGANIZATION
2-20

Advertisement

Table of Contents
loading

Table of Contents