Intel MCS48 User Manual page 40

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

Advertisement

SINGLE
COMPONENT
SYSTEM
subroutines
allowing the
registers of
Bank
used
in
the
main program
to
be
instantly
"saved"
by
a
Bank
Switch.
second bank
is
not used, locations 24-31 are
still
addressable as general purpose
RAM.
Since
the
two
RAM
pointer
Registers
RO
and
R1 are
a
part of
the
working
register
array,
effectively
creates
two
more
pointer registers (RO'
and
R1')
which can be
used
with
and
to easily
access up
to
four
separate working areas
in
Ram
at
one
time.
RAM
locations (8-23) also
a
role
in
that
they contain the
stack
as explained
2.1.6.
tions
are
addressed by
the
during subroutine
calls
as
well
as by
RAM
Pointer Registers
RO
and
R1.
If
the
level of
subroutine nesting
is
less
than
8,
all
stack
registers
are not required
and can be used as
general
purpose
RAM
locations.
Each
level of
subroutine nesting not
used
provides the user
with
two
additional
RAM
locations.
2.1.4
The 8048
has 27
lines
which can be used
for
input or
output
functions.
grouped as 3
8
lines
each
which
serve as
either inputs,
outputs
or
bidirectional
ports
and
3
"test"
inputs
which can
alter
program sequences
when
tested
by
conditional
jump
instructions.
1
2
Ports
1
and
2
are
each
8
bits
wide and have
identical characteristics.
these
ports
is
statically
latched
and remains
un-
changed
As
input ports
these
lines
are
non
latching,
i.e.,
inputs
present
until
read by
an
input
instruction.
Inputs
outputs
one
standard
TTL
load.
1
2
called quasi-
bidirectional
because
of
a
special output
circuit
structure
which
allows
each
serve as
an
input,
an
output, or
both
even
though
outputs are
statically
latched.
The
figure
circuit
configuration
Each
line
is
continuously
pulled
up
to
+5v
through a
resistive
device
of relatively
high
impedance (~50KO).
This
pullup
to
provide the
source
current
for
level
yet
can be
pulled
low
by a standard
TTL
gate thus allowing the
same
pin to
be used
for
both
input
To
provide
fast
switching
times
in
a
"0"
to "1" transition
a
relatively
low
ORL,
ANL
+5V
*50K
WRITE
PULSE
I/O
PIN
PORT1
2
QUASI
Bl
DIRECTIONAL"
PORT STRUCTURE
2-4

Advertisement

Table of Contents
loading

Table of Contents