All trademarks mentioned in this document http://www.DigitalCoreDesign.com
are trademarks of their respective owners. http://www.dcd.pl
Copyright 1999-2003 DCD – Digital Core Design. All Rights Reserved.
is accomplished by using a CLK input signal
to the D8254 counters which is a derivative of
the system clock source. Another technique
is to externally synchronize the WR and CLK
input signals. This is done by gating WR with
CLK.
Data Bus Buffer 8-bit buffer is used to inter-
face the D8254 to the system bus.
Control Word - The Control Word Register is
selected by the Read/Write Logic when
ADDR(1:0) = 11. If the CPU then does a write
operation to the D8254, the data is stored in
the Control Word Register and is interpreted
as a Control Word used to define the opera-
tion of the Counters.
COUNTERS BLOCK
DIAGRAM
All three Counters (0, 1, 2) are functionally
identical and fully independent. Each can
work as a 16 bit wide Binary or BCD counter,
in one of the six available modes:
● Interrupt on terminal count
● Hardware retriggerable One-Shot
● Rate Generator
● Square wave mode
● Software triggered strobe
● Hardware triggered strobe
The internal block diagram of a single counter
is shown in Figure below.
CRLCRM
CE
OLLOLM
Satus
Register
Status
Latch
Ctrl. Word
Register
Control
Unit
clkn
gaten
outn
datao(7:0)
datai(7:0)
The central element of each Counter is CE
module - Counting Element – 16 bit pre-
settable synchronous down BIN/BCD
counter.
Status Register, Status Latch – Status
register contains actual mode declaration and
value of output signal. Latched in Status
Latch, after receiving Read-Back Command
with STATUS Bit = 0.
Control Unit – Controls read/write operation
and decrementing of CE.
CR M, CR L – Input data registers. When
new count is written to counter, the count is
written in the CR and later transferred to CE.
OL L, OL M – Output data registers. Latched
when the suitable Counter Latch Command is
sent to the D8254.
Control Word - The Control Word Register is
selected by the Read/Write Logic when
ADDR(1:0) = 11. If the CPU then does a write
operation to the D8254, the data is stored in
the Control Word Register and is interpreted
as a Control Word used to define the opera-
tion of the Counters.
PERFORMANCE
The following table gives a survey about the
Core area and performance in the LATTICE®
devices after Place & Route (all key features
have been included):
Device Speed
grade LUTs/PFUs Fmax
ispXPGA -5 560 / 173 68 MHz
ORCA 4 -3 484 / 116 39 MHz
ORCA 3 -7 441 / 105 20 MHz
Core performance in LATTICE® devices