Intel MCS48 User Manual page 301

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

Advertisement

8253/8253-5
Control
Word
Register
The
Control
Word
Register
is
selected
when
AO,
A
1
are
11.
It
then accepts information
from
the data
bus
buffer
and
stores
it
in
a
register.
The
information stored
in
this
register
controls the operational
MODE
of
each
counter,
selection of binary or
BCD
counting
and
the loading
of
each count
register.
The
Control
Word
Register
can
only
be
written
into;
no
read operation
of
its
contents
is
available.
Counter
#0,
Counter
#1,
Counter
#2
These
three functional blocks are
identical
in
operation so
only a single
Counter
will
be
described.
Each Counter
consists
of
a
single,
16-bit,
pre-settable,
DOWN
counter.
The
counter can operate
in
either
binary or
BCD
and
its
input,
gate
and
output
are
configured by the
selection of
MODES
stored
in
the Control
Word
Register.
The
counters
are
fully
independent and each can have
separate
Mode
configuration
and
counting
operation,
binary or
BCD.
Also, there
are special features
in
the
control
word
that
handle
the loading
of
the
count
value
so
that
software
overhead can be minimized
for
these
functions.
The
reading
of
the contents
of
each
counter
is
available
to
the
programmer
with
simple
READ
operations
for
event
counting
applications
and
special
commands
and
logic
are included
in
the
8253 so
that
the
contents
of
each
counter can be
read "on the
fly"
without having
to
inhibit
the clock
input.
8253
SYSTEM INTERFACE
The
8253
is
a
component
of
the
Intel™
Microcomputer
Systems and
interfaces
in
the
same manner
as
all
other
peripherals
of
the
family.
It
is
treated
by
the
systems
software as
an
array
of
peripheral I/O
ports;
three are
counters
and
the fourth
is
a control
register for
MODE
programming.
Basically,
the
select inputs
AO,
A1 connect
to
the AO,
A1
address bus
signals
of
the
CPU. The
CS
can be
derived
directly
from
the
address bus using a
linear select
method.
Or
it
can be connected
to
the
output
of a
decoder,
such
as
an
Intel®
8205
for larger
systems.
"OO
DATA
BUS
BUFFER
\
V
m
wn
»cj
READ/
WRITE
CONTROL
WORD
K
REGISTER
NT
A-
o
o
mm^mmmM
/
,J
O
-CLKO
r
GATED
-OUT0
-
CLK
1
-
GATE
1
"•OUT1
r
CLK
2
GATE
2
'
OUT
2
Figure
2.
Block Diagram
Showing
Control
Word
Register
and Counter
Functions
ADDRESS
BUS
(16)
CONTROL
BUS
A,
A„
CS
DATA
BUS
(8)
iZ
A
a
"0""7
8253
COUNTER
OUT GATE
CLK
OUT GATE
CLK
OUT GATE
CLK
Figure
3.
8253
System
Interface
8-11
00745A

Advertisement

Table of Contents
loading

Table of Contents