The Intersil 82C54 is a high performance CMOS
Programmable Interval Timer manufactured using an
advanced 2 micron CMOS process.
The 82C54 has three independently programmable and
functional 16-bit counters, each capable of handling clock
input frequencies of up to 8MHz (82C54) or 10MHz
(82C54-10) or 12MHz (82C54-12).
The high speed and industry standard configuration of the
82C54 make it compatible with the Intersil 80C86, 80C88,
and 80C286 CMOS microprocessors along with many
other industry standard processors. Six programmable
timer modes allow the 82C54 to be used as an event
counter, elapsed time indicator, programmable one-shot,
and many other applications. Static CMOS circuit design
insures low power operation.
The Intersil advanced CMOS process results in a significant
reduction in power with performance equal to or greater than
existing equivalent products.
CP82C54CP82C54-10CP82C54-120
CP82C54Z (See Note)CP82C54-10Z (See Note) CP82C54-12Z (See Note)0
CS82C54*CS82C54-10*CS82C54-120
CS82C54Z* (See Note) CS82C54-10Z* (See Note) CS82C54-12Z* (See Note)0
ID82C54---40
IP82C54IP82C54-10--40
IP82C54Z (See Note)IP82C54-10Z (See Note)--40
IS82C54*IS82C54-10*--40
IS82C54Z (See Note)IS82C54-10Z (See Note)--40
MD82C54/B---55
SMD # 8406501JA---55
SMD# 84065013A-84065023A-55
Contact factory for availability.
*Add “96” suffix for tape and reel.
**Pb-free PDIPs can be used for through hole wave solder processing only. They are not intended for use in Reflow solder processing applications.
TEMPERATURE
RANGEPACKAGE
o
C to +70oC24 Lead PDIPE24.6
o
C to +70oC24 Lead PDIP** (Pb-free) E24.6
o
C to +70oC28 Lead PLCCN28.45
o
C to +70oC28 Lead PLCC (Pb-free) N28.45
o
C to +85oC24 Lead CERDIPF24.6
o
C to +85oC24 Lead PDIPE24.6
o
C to +85oC24 Lead PDIP** (Pb-free) E24.6
o
C to +85oC28 Lead PLCCN28.45
o
C to +85oC28 Lead PLCC (Pb-free) N28.45
o
C to +125oC24 Lead CERDIPF24.6
o
C to +125oC24 Lead CERDIPF24.6
o
C to +125oC28 Lead CLCCJ28.A
PKG.
DWG. #8MHz10MHz12MHz
NOTE: Intersil Pb-free plus anneal products employ special Pb-free material sets; molding compounds/die attach materials and 100% matte tin
plate termination finish, which are RoHS compliant and compatible with both SnPb and Pb-free soldering operations. Intersil Pb-free products are
MSL classified at Pb-free peak reflow temperatures that meet or exceed the Pb-free requirements of IPC/JEDEC J STD-020.
CAUTION: Stresses above those listed in “Absolute Maximum Ratings” may cause permanent damage to the device. This is a stress only rating and operation of the
device at these or any other conditions above those indicated in the operational sections of this specification is not implied.
θ
(oC/W) θJC (oC/W)
JA
o
C to +150oC
o
o
o
C
C
C
DC Electrical SpecificationsV
SYMBOLPARAMETERMINMAXUNITSTEST CONDITIONS
VIHLogical One Input Voltage2.0-VCX82C54, IX82C54
VILLogical Zero Input Voltage-0.8V VOHOutput HIGH Voltage3.0-VIOH = -2.5mA
VOLOutput LOW Voltage-0.4VIOL = +2.5mA
IIInput Leakage Current-1+1µAVIN = GND or V
IOOutput Leakage Current-10+10µAVOUT = GND or V
ICCSBStandby Power Supply Current-10µAV
ICCOPOperating Power Supply Current-10mAV
CapacitanceT
SYMBOLPARAMETERTYPUNITSTEST CONDITIONS
CINInput Capacitance20pFFREQ = 1MHz
COUTOutput Capacitance20pFFREQ = 1MHz
CI/OI/O Capacitance20pFFREQ = 1MHz
NOTE:
1. Not tested, but characterized at initial design and at major process/design changes.
= +25oC; All Measurements Referenced to Device GND, Note 1
A
= +5.0V ± 10%, Includes all Temperature Ranges
CC
2.2-VMD82C54
-0.4-VIOH = -100µA
V
CC
DIP Pins 9,11,14-16,18-23
DIP Pins 1-8
= 5.5V, VIN = GND or VCC,
CC
Outputs Open, Counters
Programmed
= 5.5V,
CC
CLK0 = CLK1 = CLK2 = 8MHz,
VIN = GND or V
Outputs Open
CC
CC
CC
,
3
82C54
www.BDTIC.com/Intersil
AC Electrical SpecificationsV
SYMBOLPARAMETER
READ CYCLE
(1)TARAddress Stable Before RD
(2)TSRCS
(3)TRAAddress Hold Time After RD0-0-0-ns1
(4)TRRRD
(5)TRDData Delay from RD
(6)TADData Delay from Address-210-185-185ns1
(7)TDFRD
(8)TRVCommand Recovery Time200-165-165-ns
WRITE CYCLE
(9)TAWAddress Stable Before WR
(10)TSWCS
(11)TWAAddress Hold Time After WR0-0-0-ns
(12)TWWWR
(13)TDWData Setup Time Before WR
(14)TWDData Hold Time After WR
(15)TRVCommand Recovery Time200-165-165-ns
CLOCK AND GATE
(16)TCLKClock Period125DC100DC80DCns1
(17)TPWHHigh Pulse Width60-30-30-ns1
(18)TPWLLow Pulse Width60-40-30-ns1
(19)TRClock Rise Time-25-25-25ns
(20)TFClock Fall Time-25-25-25ns
(21)TGWGate Width High50-50-50-ns1
(22)TGLGate Width Low50-50-50-ns1
(23)TGSGate Setup Time to CLK50-40-40-ns1
(24)TGHGate Hold Time After CLK50-50-50-ns1
(25)TODOutput Delay from CLK-150-100-100ns1
(26)TODG Output Delay from Gate-120-100-100ns1
(27)TWOOUT Delay from Mode Write-260-240-240ns1
(28)TWCCLK Delay for Loading055055055ns1
(29)TWGGate Delay for Sampling-540-540-540ns1
(30)TCLCLK Setup for Count Latch-4040-4040-4040ns1
NOTE:
1. Not tested, but characterized at initial design and at major process/design changes.
Stable Before RD0-0-0-ns1
Pulse Width150-95-95-ns1
to Data Floating585565565ns2, Note 1
Stable Before WR0-0-0-ns
Pulse Width95-95-95-ns
= +5.0V ± 10%, Includes all Temperature Ranges
CC
82C5482C54-10 82C54-12
30-25-25-ns1
-120-85-85ns1
0-0-0-ns
140-95-95-ns
25-0-0-ns
UNITS
TEST
CONDITIONSMINMAXMINMAXMINMAX
4
Functional Diagram
www.BDTIC.com/Intersil
82C54
CLK 0
GATE 0
OUT 0
CLK 1
GATE 1
OUT 1
CLK 2
GATE 2
OUT 2
CONTROL
WORD
REGISTER
CONTROL
LOGIC
GATE n
CLK n
OUT n
INTERNAL BUS
STATUS
LATCH
CR
M
STATUS
REGISTER
CE
OL
M
COUNTER INTERNAL BLOCK DIAGRAM
CR
OL
L
L
D7 - D
RD
WR
A
A
CS
0
0
1
BUFFER
READ/
WRITE
LOGIC
CONTROL
WORD
REGISTER
INTERNAL BUS
DAT A/
BUS
8
COUNTER
0
COUNTER
1
COUNTER
2
Pin Description
SYMBOL
D7 - D01 - 8I/ODATA: Bi-directional three-state data bus lines, connected to system data bus.
CLK 09ICLOCK 0: Clock input of Counter 0.
OUT 010OOUT 0: Output of Counter 0.
GATE 011IGATE 0: Gate input of Counter 0.
GND12GROUND: Power supply connection.
OUT 113OOUT 1: Output of Counter 1.
GATE 114IGATE 1: Gate input of Counter 1.
CLK 115ICLOCK 1: Clock input of Counter 1.
GATE 216IGATE 2: Gate input of Counter 2.
OUT 217OOUT 2: Output of Counter 2.
CLK 218ICLOCK 2: Clock input of Counter 2.
A0, A119 - 20IADDRESS: Select inputs for one of the three counters or Control Word Register for read/write
DIP PIN
NUMBERTYPEDEFINITION
operations. Normally connected to the system address bus.
A1A0SELECTS
00Counter 0
01Counter 1
10Counter 2
11Control Word Register
CS
21ICHIP SELECT: A low on this input enables the 82C54 to respond to RD and WR signals. RD and WR
are ignored otherwise.
RD
WR
V
CC
22IREAD: This input is low during CPU read operations.
23IWRITE: This input is low during CPU write operations.
24-VCC: The +5V power supply pin. A 0.1µF capacitor between pins VCC and GND is recommended for
decoupling.
5
82C54
www.BDTIC.com/Intersil
Functional Description
General
The 82C54 is a programmable interval timer/counter
designed for use with microcomputer systems. It is a general
purpose, multi-timing element that can be treated as an
array of I/O ports in the system software.
The 82C54 solves one of the most common problems in any
microcomputer system, the generation of accurate time
delays under software control. Instead of setting up timing
loops in software, the programmer configures the 82C54 to
match his requirements and programs one of the counters
for the desired delay. After the desired delay, the 82C54 will
interrupt the CPU. Software overhead is minimal and
variable length delays can easily be accommodated.
Some of the other computer/timer functions common to
microcomputers which can be implemented with the 82C54
are:
• Real time clock
• Event counter
• Digital one-shot
• Programmable rate generator
• Square wave generator
• Binary rate multiplier
• Complex waveform generator
• Complex motor controller
Data Bus Buffer
This three-state, bi-directional, 8-bit buffer is used to
interface the 82C54 to the system bus (see Figure 1).
Read/Write Logic
The Read/Write Logic accepts inputs from the system bus and
generates control signals for the other functional blocks of the
82C54. A1 and A0 select one of the three counters or the
Control Word Register to be read from/written into. A “low” on
the RD
input tells the 82C54 that the CPU is reading one of the
counters. A “low” on the WR
is writing either a Control Word or an initial count. Both RD
WR
are qualified by CS; RD and WR are ignored unless the
82C54 has been selected by holding CS
input tells the 82C54 that the CPU
and
low .
Control Word Register
The Control Word Register (Figure 2) is selected by the
Read/Write Logic when A1, A0 = 11. If the CPU then does a
write operation to the 82C54, the data is stored in the
Control Word Register and is interpreted as a Control Word
used to define the Counter operation.
The Control Word Register can only be written to; status
information is available with the Read-Back Command.
CLK 0
GAT E 0
OUT 0
CLK 1
GAT E 1
OUT 1
D7 - D
RD
WR
A
A
CS
DAT A/
8
0
0
1
BUS
BUFFER
READ/
WRITE
LOGIC
INTERNAL BUS
COUNTER
0
COUNTER
1
D7 - D
0
RD
WR
A
0
A
1
CS
FIGURE 1. DATA BUS BUFFER AND READ/WRITE LOGIC
8
BUFFER
CONTROL
WORD
REGISTER
FUNCTIONS
DAT A/
BUS
READ/
WRITE
LOGIC
INTERNAL BUS
COUNTER
0
COUNTER
1
COUNTER
2
6
CLK 0
GATE 0
OUT 0
CLK 1
GATE 1
OUT 1
CLK 2
GATE 2
OUT 2
CONTROL
WORD
REGISTER
FIGURE 2. CONTROL WORD REGISTER AND COUNTER
FUNCTIONS
COUNTER
2
CLK 2
GAT E 2
OUT 2
Counter 0, Counter 1, Counter 2
These three functional blocks are identical in operation, so
only a single Counter will be described. The internal block
diagram of a signal counter is shown in Figure 3. The
counters are fully independent. Each Counter may operate in
a different Mode.
The Control Word Register is shown in the figure; it is not
part of the Counter itself, but its contents determine how the
Counter operates.
82C54
www.BDTIC.com/Intersil
The status register, shown in the figure, when latched,
contains the current contents of the Control Word Register
and status of the output and null count flag. (See detailed
explanation of the Read-Back command.)
The actual counter is labeled CE (for Counting Element). It is
a 16-bit presettable synchronous down counter.
INTERNAL BUS
CONTROL
WORD
REGISTER
CONTROL
LOGIC
GATE n
CLK n
FIGURE 3. COUNTER INTERNAL BLOCK DIAGRAM
OUT n
STATUS
LATCH
STATUS
REGISTER
CR
OL
CE
CR
OL
L
L
M
M
OLM and OLL are two 8-bit latches. OL stands for “Output
Latch”; the subscripts M and L for “Most significant byte” and
“Least significant byte”, respectively. Both are normally referr ed
to as one unit and called just OL. These latches normally
“follow” the CE, but if a suitable Counter Latch Command is
sent to the 82C54, the latches “latch” the present count until
read by the CPU and then return to “following” the CE. One
latch at a time is enabled by the counter’ s Control Logic to drive
the internal bus. This is how the 16-bit Counter communicates
over the 8-bit internal bus. Note that the CE itself cannot be
read; whenever you read the count, it is the OL that is being
read.
Similarly , there are two 8-bit registers called CRM and CRL (for
“Count Register”). Both are normally referred to as one unit and
called just CR. When a new count is written to the Counter, the
count is stored in the CR and later transferred to the CE. The
Control Logic allows one register at a time to be loaded from
the internal bus. Both bytes are transf e rred to the CE
simultaneously . CRM and CRL are cleared when the Counter is
programmed for one byte counts (either most significant byte
only or least significant byte only) the other byte will be zero.
Note that the CE cannot be written into; whenever a count is
written, it is written into the CR.
The Control Logic is also shown in the diagram. CLK n,
GATE n, and OUT n are all connected to the outside world
through the Control Logic.
82C54 System Interface
The 82C54 is treated by the system 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 A0, A1 connect to the A0, 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.
Operational Description
General
After power-up, the state of the 82C54 is undefined. The
Mode, count value, and output of all Counters are undefined.
How each Counter operates is determined when it is
programmed. Each Counter must be programmed before it
can be used. Unused counters need not be programmed.
Programming the 82C54
Counters are programmed by writing a Control Word and
then an initial count.
All Control Words are written into the Control Word Register,
which is selected when A1, A0 = 11. The Control Word
specifies which Counter is being programmed.
By contrast, initial counts are written into the Counters, not
the Control Word Register. The A1, A0 inputs are used to
select the Counter to be written into. The format of the initial
count is determined by the Control Word used.
ADDRESS BUS (16)
A1 A0
CONTROL BUS
I/OW
I/OR
DATA BUS (8)
8
RD
COUNTER
2
WR
CS
A0
A1
COUNTER
0
OUT GATE CLK
FIGURE 4. COUNTER INTERNAL BLOCK DIAGRAM
D0 - D7
82C54
COUNTER
1
OUTGATECLKOUTGATECLK
Write Operations
The programming procedure for the 82C54 is very flexible.
Only two conventions need to be remembered:
1. For Each Counter, the Control Word must be written
before the initial count is written.
2. The initial count must f ollow the count format specified in the
Control Word (least significant byte only, most significant
byte only, or least significant byte and then most significant
byte).
7
82C54
www.BDTIC.com/Intersil
Since the Control Word Register and the three Counters have
separate addresses (selected by the A1, A0 inputs), and each
Control Word specifies the Counter it applies to (SC0, SC1
bits), no special instruction sequence is required. Any
programming sequence that follows the conv entions abov e is
acceptable.
00Counter Latch Command (See Read Operations)
01Read/Write least significant byte only.
10Read/Write most significant byte only.
11Read/Write least significant byte first, then most
NOTE: Don’t Care bits (X) should be 0 to insure compatibility with
future products.
= 0; RD = 1; WR = 0
SC - SELECT COUNTER
RW - READ/WRITE
significant byte.
M - MODE
BCD - BINARY CODED DECIMAL
POSSIBLE PROGRAMMING SEQUENCE
A1A0
Control Word - Counter 011
LSB of Count - Counter 000
MSB of Count - Counter 000
Control Word - Counter 111
LSB of Count - Counter 101
MSB of Count - Counter 101
Control Word - Counter 211
LSB of Count - Counter 210
MSB of Count - Counter 210
POSSIBLE PROGRAMMING SEQUENCE
A1A0
Control Word - Counter 011
Control Word - Counter 111
Control Word - Counter 211
LSB of Count - Counter 210
LSB of Count - Counter 101
LSB of Count - Counter 000
MSB of Count - Counter 000
MSB of Count - Counter 101
MSB of Count - Counter 210
POSSIBLE PROGRAMMING SEQUENCE
A1A0
Control Word - Counter 211
Control Word - Counter 111
Control Word - Counter 011
LSB of Count - Counter 210
MSB of Count - Counter 210
LSB of Count - Counter 101
MSB of Count - Counter 101
LSB of Count - Counter 000
MSB of Count - Counter 000
8
82C54
www.BDTIC.com/Intersil
POSSIBLE PROGRAMMING SEQUENCE
A1A0
Control Word - Counter 111
Control Word - Counter 011
LSB of Count - Counter 101
Control Word - Counter 211
LSB of Count - Counter 000
MSB of Count - Counter 101
LSB of Count - Counter 210
MSB of Count - Counter 000
MSB of Count - Counter 210
NOTE: In all four examples, all counters are programmed to
Read/Write two-byte counts. These are only four of many
programming sequences.
A new initial count may be written to a Counter at an y time
without affecting the Counter’ s progr ammed Mode in any w a y.
Counting will be affected as described in the Mode definitions.
The new count must follo w the pro grammed count format.
If a Counter is programmed to read/write two-byte counts,
the following precaution applies. A program must not transf er
control between writing the first and second byte to another
routine which also writes into that same Counter. Otherwise,
the Counter will be loaded with an incorrect count.
READ OPERATIONS
It is often desirable to read the value of a Counter without
disturbing the count in progress. This is easily done in the
82C54.
There are three possible methods for reading the Counters.
The first is through the Read-Back command, which is
explained later. The second is a simple read operation of the
Counter, which is selected with the A1, A0 inputs. The only
requirement is that the CLK input of the selected Counter
must be inhibited by using either the GATE input or external
logic. Otherwise, the count may be in process of changing
when it is read, giving an undefined result.
COUNTER LATCH COMMAND
The other method for reading the Counters involves a
special software command called the “Counter Latch
Command”. Like a Control Word, this command is written to
the Control Word Register, which is selected when A1, A0 =
11. Also, like a Control W ord, the SC0, SC1 bits select one of
the three Counters, but two other bits, D5 and D4,
distinguish this command from a Control Word.
.
A1, A0 = 11; CS = 0; RD = 1; WR = 0
D7D6D5D4D3D2D1D0
SC1SC000XXXX
SC1, SC0 - specify counter to be latched
SC1SC0COUNTER
000
011
102
11Read-Back Command
D5, D4 - 00 designates Counter Latch Command, X - Don’t Care.
NOTE: Don’t Care bits (X) should be 0 to insure compatibility
with future products.
The selected Counter’s outp ut latch (OL) latches the co unt
when the Counter Latch Command is received. This count is
held in the latch until it is read by the CPU (or until the Counter
is reprogrammed). The count is then unlatched automatically
and the OL returns to “following” the counting element (CE).
This allows reading the contents of the Counters “on the fly”
without affecting counting in progress. Multiple Cou nter Latch
Commands may be used to latch more than one Counter.
Each latched Counter’s OL h olds its count until read. Cou nter
Latch Commands do not affect the programmed Mode of the
Counter in any way.
If a Counter is latched and then, some time later, latched
again before the count is read, the second Counter Latch
Command is ignored. The count read will be the count at the
time the first Counter Latch Command was issued.
With either method, the count must be read according to the
programmed format; specifically, if the Counter is
programmed for two byte counts, two bytes must be read.
The two bytes do not have to be read one right after the
other; read or write or programming operations of other
Counters may be inserted between them.
Another feature of the 82C54 is that reads and writes of the
same Counter may be interleaved; fo r example, if the
Counter is programmed for two byte counts, the following
sequence is valid.
1. Read least significant byte.
2. Write new least significant byte.
3. Read most significant byte.
4. Write new most significant byte.
If a counter is programmed to read or write two-byte counts,
the following precaution applies: A program MUST NOT
transfer control between reading the first and second byte to
another routine which also reads from that same Counter.
Otherwise, an incorrect count will be read.
READ-BACK COMMAND
The read-back command allows the user to check the count
value, programmed Mode, and current state of the OUT pin
and Null Count flag of the selected counter(s).
The command is written into the Control Word Register and
has the format shown in Figure 5. The command applies to
9
82C54
www.BDTIC.com/Intersil
the counters selected by setting their corresponding bits D3,
D2, D1 = 1.
A0, A1 = 11; CS
D7D6D5D4D3D2D1D0
11COUNT
D5:0=Latch count of selected Counter (s)
D4:0=Latch status of selected Counter(s)
D3:1=Select Counter 2
D2:1=Select Counter 1
D1:1=Select Counter 0
D0:Reserved for future expansion; Must be 0
FIGURE 5. READ-BACK COMMAND FORMAT
The read-back command may be used to latch multiple
counter output latches (OL) by setting the COUNT bit D5 = 0
and selecting the desired counter(s). This signal command is
functionally equivalent to several counter latch commands,
one for each counter latched. Each counter’s latched count
is held until it is read (or the counter is reprogrammed). That
counter is automatically unlatched when read, but other
counters remain latched until they are read. If multiple count
read-back commands are issued to the same counter
without reading the count, all but the first are ignored; i.e.,
the count which will be read is the count at the time the first
read-back command was issued.
The read-back command may also be used to latch status
information of selected counter(s) by setting STATUS bit D4
= 0. Status must be latched to be read; status of a counter is
accessed by a read from that counter.
The counter status format is shown in Figure 6. Bits D5
through D0 contain the counter’s programmed Mode exactly
as written in the last Mode Control Word. OUTPUT bit D7
contains the current state of the OUT pin. This allows the
user to monitor the counter’s output via software, possibly
eliminating some hardware from a system.
D7D6D5D4D3D2D1D0
OUTPUTNULL
D7:1=Out pin is 1
0=Out pin is 0
D6:1=Null count
0=Count available for reading
D5-D0=Counter programmed mode (See Control Word Formats)
= 0; RD = 1; WR = 0
STATUS CNT 2CNT 1CNT 0 0
RW1 RW0M2M1M0BCD
COUNT
FIGURE 6. STATUS BYTE
NULL COUNT bit D6 indicates when the last count written to
the counter register (CR) has been loaded into the counting
element (CE). The exact time this happens depends on the
Mode of the counter and is described in the Mode Definitions,
but until the counter is loaded into the counting element (CE),
it can’t be read from the counter . If the count is latched or read
before this time, the count v alu e will not refl ect the new count
just written. The operation of Null Count is shown below.
THIS ACTION:CAUSES:
A. Write to the control word register:(1) . . . . Null Count = 1
B. Write to the count register (CR):(2) . . . . . Null Count = 1
C. New count is loaded into CE (CR - CE) . . Null Count = 0
1. Only the counter specified by the control word will have its
null count set to 1. Null count bits of other counters are
unaffected.
2. If the counter is programmed for two-byte counts (least
significant byte then most significant byte) null count goes
to 1 when the second byte is written.
If multiple status latch operations of the counter(s) are
performed without reading the status, all but the first are
ignored; i.e., the status that will be read is the status of the
counter at the time the first status read-back command was
issued.
Both count and status of the selected counter(s) may be
latched simultaneously by setting both COUNT and STA TUS
bits D5, D4 = 0. This is functionally the same as issuing two
separate read-back commands at once, and the above
discussions apply here also. Specifically, if multiple count
and/or status read-back commands are issued to the same
counter(s) without any intervening reads, all but the first are
ignored. This is illustrated in Figure 7.
If both count and status of a counter are latched, the first
read operation of that counter will return latched status,
regardless of which was latched first. The next one or two
reads (depending on whether the counter is programmed for
one or two type counts) return latched count. Subsequent
reads return unlatched count.
10
82C54
www.BDTIC.com/Intersil
COMMANDS
DESCRIPTIONRESULTD7D6D5D4D3D2D1D0
11000010Read-Back Count and Status of Counter 0Count and Status Latched for Counter 0
11100100Read-Back Status of Counter 1Status Latched for Counter 1
11101100Read-Back Status of Counters 2, 1Status Latched for Counter 2,
But Not Counter 1
11011000Read-Back Count of Counter 2Count Latched for Counter 2
11000100Read - Ba ck Count an d St a t u s o f C o un t e r 1Count Latched for Counter 1,
But Not Status
11100010Read-Back Status of Counter 1Command Ignored, Status Already
Latched for Counter 1
FIGURE 7. READ-BACK COMMAND EXAMPLE
CSRDWRA1A0
01000Write into Counter 0
01001Write into Counter 1
01010Write into Counter 2
01011Write Control Word
00100Read from Counter 0
00101Read from Counter 1
00110Read from Counter 2
00111No-Operation (Three-State)
1XXXXNo-Operation (Three-State)
011XXNo-Operation (Three-State)
FIGURE 8. READ/WRITE OPERATIONS SUMMARY
MODE DEFINITIONS
The following are defined for use in describing the operation
of the 82C54.
CLK PULSE - A rising edge, then a falling edge, in that
order, of a Counter’s CLK input.
TRIGGER - A rising edge of a Counter’s Gate input.
COUNTER LOADING - The transfer of a count from the CR
to the CE (See “Functional Description”)
MODE 0: INTERRUPT ON TERMINAL COUNT
Mode 0 is typically used for event counting. After the Control
Word is written, OUT is initially low, and will remain low until
the Counter reaches zero. OUT then goes high and remains
high until a new count or a new Mode 0 Control Word is
written to the Counter.
GATE = 1 enables counting; GATE = 0 disables counting.
GATE has no effect on OUT.
After the Control Word and initial count are written to a
Counter, the initial count will be loaded on the next CLK
pulse. This CLK pulse does not decrement the count, so for
an initial count of N, OUT does not go high until N + 1 CLK
pulses after the initial count is written.
If a new count is written to the Counter it will be loaded on
the next CLK pulse and counting will continue from the new
count. If a two-byte count is written, the following happens:
1. Writi ng the first byte disables counting. Out is set low
immediately (no clock pulse required).
2. Writing the second byte allows the new count to be
loaded on the next CLK pulse.
This allows the counting sequence to be synchronized by
software. Again OUT does not go high until N + 1 CLK
pulses after the new count of N is written.
11
82C54
www.BDTIC.com/Intersil
If an initial count is written while GATE = 0, it will still be
loaded on the next CLK pulse. When GATE goes high, OUT
will go high N CLK pulses later; no CLK pulse is needed to
load the counter as this has already been done.
CW = 10 LSB = 4
WR
CLK
GATE
OUT
NNNN
CW = 10 LSB = 3
WR
CLK
GATE
OUT
NNNN
CW = 10 LSB = 3
WR
0403020100FFFFFF
030202020100FF
LSB = 2
FE
FF
MODE 1: HARDWARE RETRIGGERABLE ONE-SHOT
OUT will be initially high. OUT will go low on the CLK pulse
following a trigger to begin the one-shot pulse, and will remain
low until the Counter reaches zero . OUT will then go high and
remain high until the CLK pulse after the next trigger.
After writing the Control Word and initia l count, the Cou nter is
armed. A trigger results in loading the Counter and setting
OUT low on the next CLK pulse, thus starting the one-shot
pulse N CLK cycles in duration. The one-shot is retriggerable,
hence OUT will remain low f or N CLK pulses after an y trigger .
The one-shot pulse can be repeated without rewriting the
same count into the counter. GATE has no effect on OUT.
If a new count is written to the Counter during a one-shot
pulse, the current one-shot is not affected unless the
Counter is retriggerable. In that case, the Counter is loaded
with the new count and the one-shot pulse continues until
the new count expires.
CW = 12 LSB = 3
WR
CLK
GATE
CLK
GATE
OUT
NNNN
030201020100FF
FF
FIGURE 9. MODE 0
NOTES: The following conventions apply to all mode timing diagrams.
1. Counters are programmed for binary (not BCD) counting and for
reading/writing least significant byte (LSB) only.
2. The counter is always selected (CS
always low).
3. CW stands for “Control Word”; CW = 10 means a control word of
10, Hex is written to the counter.
4. LSB stands for Least significant “byte” of count.
5. Numbers below diagrams are count values. The lower number is
the least significant byte. The upper number is the most
significant byte. Since the counter is programmed to read/write
LSB only, the most significant byte cannot be read.
6. N stands for an undefined count.
7. Vertical lines show transitions between count values.
OUT
NNNN
CW = 12 LSB = 3
WR
CLK
GATE
OUT
NNNN
CW = 12 LSB = 2
WR
CLK
GATE
OUT
03020100FFFF030
N
0302010302010
N
LSB = 4
2
0
NNNN
12
020100FFFFFFFE040
N
FIGURE 10. MODE 1
3
82C54
www.BDTIC.com/Intersil
MODE 2: RATE GENERATOR
This Mode functions like a divide-by-N counter. It is typically
used to generate a Real Time Clock Interrupt. OUT will
initially be high. When the initial count has decremented to 1,
OUT goes low for one CLK pulse. OUT then goes high
again, the Counter reloads the initial count and the process
is repeated. Mode 2 is periodic; the same sequence is
repeated indefinitely. For an initial count of N, the sequence
repeats every N CLK cycles.
GATE = 1 enables counting; GATE = 0 disables counting. If
GATE goes low during an output pulse, OUT is set high
immediately. A trigger reloads the Counter with the initial
count on the next CLK pulse; OUT goes low N CLK pulses
after the trigger. Thus the GATE input can be used to
synchronize the Counter.
After writing a Control Word and initial count, the Counter will
be loaded on the next CLK pulse. OUT goes low N CLK
pulses after the initial count is written. This allows the
Counter to be synchronized by software also.
Writing a new count while counting does not affect the current
counting sequence. If a trigger is received after writing a new
count but before the end of the current period, the Counter will
be loaded with the new count on the next CLK pulse and
counting will continue from the end of the current counting
cycle.
CW = 14LSB = 3
WR
CLK
GATE
OUT
02010302010
NNNN
CW = 14LSB = 3
WR
CLK
GATE
OUT
NNNN
CW = 14LSB = 4LSB = 5
WR
0
3
02020302010
0
3
3
3
MODE 3: SQUARE WAVE MODE
Mode 3 is typically used for Baud rate generation. Mode 3 is
similar to Mode 2 except for the duty cycle of OUT. OUT will
initially be high. When half the initial count has expired, OUT
goes low for the remainder of the count. Mode 3 is periodic;
the sequence above is repeated indefinitely. An initial count
of N results in a square wave with a period of N CLK cycles.
GATE = 1 enables counting; GATE = 0 disables counting. If
GATE goes low while OUT is low, OUT is set high
immediately; no CLK pulse is required. A trigger reloads the
Counter with the initial count on th e next CLK pulse. Thus
the GATE input can be used to synchronize the Counter.
After writing a Control Word and initial count, the Counter will
be loaded on the next CLK pulse. This allows the Counter to
be synchronized by software also.
Writing a new count while counting does not affect the
current counting sequence. If a trigger is received after
writing a new count but before the end of the current halfcycle of the square wave , the Counter will be loaded with the
new count on the next CLK pulse and counting will continue
from the new count. Otherwise, the new count will be loaded
at the end of the current half-cycle.
CW = 16 LSB = 4
WR
CLK
GATE
OUT
CW = 16 LSB = 5
WR
CLK
GATE
OUT
CW = 16 LSB = 4
WR
CLK
NNNN
NNNN
0
0204020402040
4
0
0402050205040
5
040
2
2
050
2
2
CLK
GATE
OUT
NNNN
03020105040
0
4
FIGURE 11. MODE 2
3
GATE
OUT
NNNN
13
0
0204020202040
4
FIGURE 12. MODE 3
040
2
2
82C54
www.BDTIC.com/Intersil
Mode 3 Is Implemented As Follows
EVEN COUNTS - OUT is initially high. The initial count is
loaded on one CLK pulse and then is decremented by two
on succeeding CLK pulses. When the count expires, OUT
changes value and the Counter is reloaded with the initial
count. The above process is repeated indefinitely.
ODD COUNTS - OUT is initially high. The initial count is loaded
on one CLK pulse, decremented by one on the next CLK pulse,
and then decremented by two on succeeding CLK pulses.
When the count expires, OUT goes low and the Counter is
reloaded with the initial count. The count is decremented by
three on the next CLK pulse, and then by two on succeeding
CLK pulses. When the count expires, OUT goes high again and
the Counter is reloaded with the initial count. The above
process is repeated indefinitely. So for odd counts, OUT will be
high for (N + 1)/2 counts and low for (N - 1)/2 counts.
MODE 4: SOFTWARE TRIGGERED MODE
OUT will be initially high. When the initial count expires, OUT
will go low for one CLK pulse then go high again. The
counting sequence is “Triggered” by writing the initial count.
GATE = 1 enables counting; GATE = 0 disables counting.
GATE has no effect on OUT.
After writing a Control Word and initial count, the Counter will
be loaded on the next CLK pulse. This CLK pulse does not
decrement the count, so for an initial count of N, OUT does not
strobe low until N + 1 CLK pulses after the initial count is
written.
If a new count is written during counting, it will be loaded on
the next CLK pulse and counting will continue from the new
count. If a two-byte count is written, the following happens:
1. Writing the first byte has no effect on counting.
2. Writin g the second byte allows the new count to be
loaded on the next CLK pulse.
This allows the sequence to be “retriggered” by software. OUT
strobes low N + 1 CLK pulses after the new count of N is
written.
CW = 18 LSB = 3
WR
CLK
GATE
OUT
020100FFFFFFFEFF
NNNN
CW = 18 LSB = 3
WR
CLK
GATE
OUT
NNNN
CW = 18 LSB = 3
WR
CLK
GATE
OUT
NNN
FIGURE 13. MODE 4
0
3
0303020100FF
0
3
LSB = 2
030201020100FF
N
FD
FF
FF
MODE 5: HARDWARE TRIGGERED STROBE
(RETRIGGERABLE)
OUT will initially be high. Counting is triggered by a rising
edge of GATE. When the initial count has expired, OUT will
go low for one CLK pulse and then go high again.
After writing the Control Word and initial count, the counter
will not be loaded until the CLK pulse after a trigger. This
CLK pulse does not decrement the count, so for an initial
count of N, OUT does not strobe low until N + 1 CLK pulses
after trigger.
A trigger results in the Counter being loaded with the initial
count on the next CLK pulse. The counting sequence is
triggerable. OUT will not strobe low for N + 1 CLK pulses
after any trigger GATE has no effect on OUT.
If a new count is written during counting, the current counting
sequence will not be affected. If a trigger occurs after the
new count is written but before the current count expires, the
14
82C54
www.BDTIC.com/Intersil
Counter will be loaded with new count on the next CLK pulse
and counting will continue from there.
CW = 1A LSB = 3
WR
CLK
GATE
OUT
03020100FFFF0
NNNN
CW = 1A LSB = 3
WR
CLK
GATE
OUT
NNNN
CW = 1A LSB = 3
WR
CLK
GATE
OUT
NNNN
N
NN
N
FIGURE 14. MODE 5
030203020
LSB = 5
03020100FFFFFF
FE
3
00FF
1
FF
0
0
5
4
Operation Common To All Modes
Programming
When a Control Word is written to a Counter, all Control
Logic, is immediately reset and OUT goes to a known initial
state; no CLK pulses are required for this.
Gate
The GATE input is always sampled on the rising edge of
CLK. In Modes 0, 2, 3 and 4 the GATE input is level
sensitive, and logic level is sampled on the rising edge of
CLK. In modes 1, 2, 3 and 5 the GATE input is rising-edge
sensitive. In these Modes, a rising edge of Gate (trigger)
sets an edge-sensitive flip-flop in the Counter. This flip-flop is
then sampled on the next rising edge of CLK. The flip-flop is
reset immediately after it is sampled. In this way, a trigger will
be detected no matter when it occurs - a high logic level
does not have to be maintained until the next rising edge of
CLK. Note that in Modes 2 and 3, the GATE input is both
edge-and level-sensitive.
Counter
New counts are loaded and Counters are decremented on
the falling edge of CLK.
The largest possible initial count is 0; this is equivalent to 2
for binary counting and 10
4
for BCD counting.
The counter does not stop when it reaches zero. In Modes 0,
1, 4, and 5 the Counter “wraps around” to the highest count,
either FFFF hex for binary counting or 9999 for BCD
counting, and continues counting. Modes 2 and 3 are
periodic; the Counter reloads itself with the initial count and
continues counting from there.
SIGNAL
STATUS
MODES
0Disables Cou n t ing-Enables Counting
1-1) Initiates
21) Disables
31) Disables
41) Disables
5-Initiates Counting-
NOTE: 0 is equivalent to 2
counting.
FIGURE 16. MINIMUM AND MAXIMUM INITIAL COUNTS
LOW OR
GOING LOWRISINGHIGH
Counting
2) Resets output
after next clock
Initiates Counting Enables Counting
counting
2) Sets output
immediately high
Initiates Counting Enables Counting
counting
2) Sets output
immediately high
-Enables Counting
Counting
FIGURE 15. GATE PIN OPERATIONS SUMMARY
MODEMIN COUNTMAX COUNT
010
110
220
320
410
510
16
for binary counting and 104 for BCD
16
-
15
Timing Waveforms
www.BDTIC.com/Intersil
A0 - A1
DATA BUS
WR
A0 - A1
CS
82C54
(9)
tAW
(10)
tSW
(13)
tDW
FIGURE 17. WRITE
tWA (11)
VALID
tWD (14)
(12)
tWW
RD
DATA BUS
RD, WR
CS
tAR (1)
(2)
tSR
(5)
tRD
(6)
tAD
FIGURE 18. READ
FIGURE 19. RECOVERY
(4)
tRR
VALID
(8) (15)
tRV
tRA (3)
(7)
tDF
16
Timing Waveforms (Continued)
www.BDTIC.com/Intersil
MODE
82C54
COUNT
(SEE NOTE)
WR
CLK
GATE
OUT
Burn-In Circuits
Q1
Q2
VCC
GND
F9
F10
F11
F12
F0
A
Q6
GND
R1
R1
R1
R1
R1
R1
R1
R1
R2
R1
1
2
3
4
5
6
7
8
9
10
11
12
(23)
tGS
tOD (25)
tCL (30)
tGH (24)
(17)
tPWH
(19)
tR
tGS
(23)
(27)
tWO
(18)
tPWL
tGH
tWC (28)
(24)
tGL
tF (20)
(22)
(16)
tCLK
(21)
tGW
tODG (26)
NOTE: LAST BYTE OF COUNT BEING WRITTEN
FIGURE 20. CLOCK AND GATE
MD82C54 (CERDIP)MR82C54 (CLCC)
V
CC
C1
24
R1
23
R1
22
R1
21
R1
20
R1
19
R2
18
17
R1
16
R2
15
R1
14
13
Q3
VCC
GND
Q5
Q4
F2
A
Q8
F1
Q7
A
V
CC
R3
A
R4
GND
F9
F10
F11
F12
F0
OPEN
R1
R1
R1
R1
R1
R2
VCC Q2 Q1 OPENC1Q3 VCC
3214
5
6
7
8
9
10
11
R5 R1R5 R1 R2
VCC
28 27 26
14 15 16 17 1812 13
R1R1R1R1R1
25
24
23
22
21
20
19
R1
R1
R1
R2
R5
R1
OPEN
GND
Q5
Q4
F2
VCC/2
Q8
NOTES:
1. V
= 5.5V ± 0.5V
CC
2. GND = 0V
3. VIH = 4.5V ±10%
4. VIL = -0.2V to 0.4V
5. R1 = 47kΩ ±5%
6. R2 = 1.0kΩ ±5%
7. R3 = 2.7kΩ ±5%
8. R4 = 1.8kΩ ±5%
9. R5 = 1.2kΩ ±5%
10. C1 = 0.01µF Min
11. F0 = 100kHz ±10%
12. F1 = F0/2, F2 = F1/2, ...F12 = F11/2
17
VCC/2Q6 GND
OPEN
VCC/2F1Q7
82C54
www.BDTIC.com/Intersil
Die Characteristics
DIE DIMENSIONS:
129mils x 155mils x 19mils
(3270µm x 3940µm x 483µm)
Metallization Mask Layout
D4
D3
METALLIZATION:
Type: Si-Al-Cu
Thickness: Metal 1: 8kÅ ± 0.75kÅ
Metal 2: 12kÅ ± 1.0kÅ
GLASSIVATION:
Type: Nitrox
Thickness: 10kÅ ± 3.0kÅ
82C54
D5D6D7VCCWR
RD
CS
A1
D2
D1
D0
CLK0
A0
CLK2
OUT2
GATE2
OUT0GATE0GNDOUT1GATE1CLK1
18
Dual-In-Line Plastic Packages (PDIP)
www.BDTIC.com/Intersil
82C54
N
D1
E1
-B-
-C-
A1
A2
E
A
L
e
C
C
L
e
A
C
e
B
INDEX
AREA
BASE
PLANE
SEATING
PLANE
NOTES:
1. Controlling Dimensions: INCH. In case of conflict between English and
Metric dimensions, the inch dimensions control.
2. Dimensioning and tolerancing per ANSI Y14.5M-1982.
3. Symbols are defined in the “MO Series Symbol List” in Section 2.2 of
Publication No. 95.
4. Dimensions A, A1 and L are measured with the package seated in
JEDEC seating plane gauge GS-3.
5. D, D1, and E1 dimensions do not include mold flash or protrusions.
Mold flash or protrusions shall not exceed 0.010 inch (0.25mm).
6. E andare measured with the leads constrained to be perpendicular to datum .
7. e
e
8. B1 maximum dimensions do not include dambar protrusions. Dambar
protrusions shall not exceed 0.010 inch (0.25mm).
9. N is the maximum number of terminal positions.
10. Corner leads (1, N, N/2 and N/2 + 1) for E8.3, E16.3, E18.3, E28.3,
E42.6 will have a B1 dimension of 0.030 - 0.045 inch (0.76 - 1.14mm).
12 3N/2
-A-
D1
B1
B
e
A
and eC are measured at the lead tips with the leads unconstrained.
1. Controlling dimension: INCH. Converted millimeter dimensions are
not necessarily exact.
2. Dimensions and tolerancing per ANSI Y14.5M-1982.
3. Dimensions D1 and E1 do not include mold protrusions. Allowable
mold protrusion is 0.010 inch (0.25mm) per side. Dimensions D1
and E1 include mold mismatch and are measured at the extreme
material condition at the body parting line.
4. To be measured at seating plane contact point.
5. Centerline to be determined where center leads exit plastic body.
1. Metallized castellations shall be connected to plane 1 terminals
and extend toward plane 2 across at least two layers of ceramic
or completely across all of the ceramic layers to make electrical
connection with the optional plane 2 terminals.
2. Unless otherwise specified, a minimum clearance of 0.015 inch
(0.38mm) shall be maintained between all metallized features
(e.g., lid, castellations, terminals, thermal pads, etc.)
3. Symbol “N” is the maximum number of terminals. Symbols “ND”
and “NE” are the number of terminals along the sides of length
“D” and “E”, respectively.
4. The required plane 1 terminals and optional plane 2 terminals (if
used) shall be electrically connected.
5. The corner shape (square, notch, radius, etc.) may vary at the
manufacturer’s option, from that shown on the drawing.
6. Chip carriers shall be constructed of a minimum of two ceramic
layers.
7. Dimension “A” controls the overall package thic kness . The maximum “A” dimension is package height bef ore being solder dipped.
8. Dimensioning and tolerancing per ANSI Y14.5M-1982.
9. Controlling dimension: INCH.
NOTESMINMAXMINMAX
Rev. 0 5/18/94
21
82C54
www.BDTIC.com/Intersil
Ceramic Dual-In-Line Frit Seal Packages (CERDIP)
LEAD FINISH
c1
-A-
-B-
bbbC A - B
S
BASE
PLANE
SEATING
PLANE
S1
b2
cccC A - BMD
D
A
A
b
e
S
S
NOTES:
1. Index area: A notch or a pin one identification mark shall be located adjacent to pin one and shall be located within the shaded
area shown. The manufacturer’s identification shall not be used
as a pin one identification mark.
2. The maximum limits of lead dimensions b and c or M shall be
measured at the centroid of the finished lead surfaces, when
solder dip or tin plate lead finish is applied.
3. Dimensions b1 and c1 apply to lead base metal only. Dimension
M applies to lead plating and finish thickness.
4. Corner leads (1, N, N/2, and N/2+1) may be configured with a
partial lead paddle. For this configuration dimension b3 replaces
dimension b2.
5. This dimension allows for off-center lid, meniscus, and glass
overrun.
6. Dimension Q shall be measured from the seating plane to the
base plane.
7. Measure dimension S1 at all four corners.
8. N is the maximum number of terminal positions.
9. Dimensioning and tolerancing per ANSI Y14.5M - 1982.
10. Controlling dimension: INCH.
-DBASE
E
D
S
S
Q
A
-CL
METAL
b1
M
(b)
SECTION A-A
α
(c)
M
eA
eA/2
aaaCA - B
M
c
D
S
S
F24.6 MIL-STD-1835 GDIP1-T24 (D-3, CONFIGURATION A)
All Intersil U.S. products are manufactured, assembled and tested utilizing ISO9000 quality systems.
Intersil Corporation’s quality certifications can be viewed at www.intersil.com/design/quality
Intersil products are sold by description only. Intersil Corporation reserves the right to make changes in circuit design, software and/or specifications at any time without
notice. Accordingly, the reader is cautioned to verify that data sheets are current before placing orders. Information furnished by Intersil is believed to be accurate and
reliable. However, no responsibility is assumed by Intersil or its subsidiaries for its use; nor for any infringements of patents or other rights of third parties which may result
from its use. No license is granted b y implica tion or ot herw ise un der any patent or patent rights of Intersil or its subsidiaries.
For information regarding Intersil Corporation and its products, see www.intersil.com
22
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.