Académique Documents
Professionnel Documents
Culture Documents
System
reset
I
FIGURE 8-4 The clock generator (8284A) and the 8086 and 8088 microprocessor illustrating
the connection for the clock and reset signals. A 15 MHz crystal provides the 5 MHz clock for
the microprocessor.
Operation of the Clock Section. The top half of the logic diagram represents the clock and reset
synchronization section of the 8284A clock gznerator. As the diagram shows, the crystal oscil-
lator has two inputs: X1 and X2. If a crystal is attached to X1 and X2, the oscillator generates a
square-wave signal at the same frequency as the crystal. The square-wave signal is fed to an
AND gate and also to an inverting buffer that provides the OSC o u t p ~ signal.
~t The OSC signal is
sometimes used as an EFI input to other 8284A circuits in a system.
An inspection of the AND gate reveals that when FIT is a logic 0, the oscillator oi~tputis
steered through to the divide-by-3 counter. If FIT is a logic 1, then EFI is steered through to the
counter.
The output of the divide-by-3 counter generates the timing for ready synchronization, a
signal for another counter (divide-by-2), and the CLK signal to the 808618088 microprocessors.
The CLK signal is also buffered before it leaves the clock generator. Notice that the output of the
first counter feeds the second. These two cascaded counters provide the divide-by-6 output at
PCLK, the peripheral clock output.
Figure 8 - 4 shows how an 8284A is connected to the 808618088. Notice (1) that F/? and
CSYNC are grounded to select the crystal oscillator and (2) that a 15 MHz crystal provides the
normal 5 MHz clock signal to the 808618088 as well as a 2.5 MHz peripheral clock signal.
Operation of the Reset Section. The reset section of the 8284A is very simple. It consists of a
Schmitt trigger buffer and a single D-type flip-flop circuit. The D-type flip-flop ensures that the
timing requirements of the 808618088 RESET input are met. This circuit applies the RESET
signal to the microprocessor on the negative edge (1-to-0 transition) of each clock. The
808618088 microprocessors sample RESET at the positive edge (0-to-1 transition) of the clocks;
therefore, this circuit meets the timing requirements of the 8086/8088.
Refer again to Figure 8-4. Notice that an RC circuit provides a logic 0 to the RES input pin
when power is first applied to the system. After a short time, the RES input becomes a logic 1 be-
cause the capacitor charges toward +5.0 V through the resistor. A push-button switch allows the
microprocessor to be reset by the operator. Correct reset timing requires the RESET input to
CHAPTER 8 808618088 HARDWARE SPECIFICATIONS
become a logic 1 no later than four clocks after syslem power is applied and to be held high for
at least 5 0 ps. The flip-flop makes certain that RESET goes high in four clocks, and the RC time
constant ensures that it stays high for at least 50 ps.
Demultiplexing the 8088. Figure 8-5 illustrates the 8088 microprocessor and the components
required to demultiplex its buses. In this case, two 74LS373 transparent latches are used to de-
multiplex the addressldata bus connections AD7-AD, and the multiplexed addresslstatus con-
nections AldS6-A 16/S3.
These transparent latclles, which are like wires whenever the address latch enable pin
(ALE) becomes a logic 1, pass the inputs to the outputs. After a short time, ALE returns to its
logic 0 condition, which causes the latches to remember the inputs at the time of the change to a
logic 0. In this case, A,-A. are stored in the bottom latch and AI9-AI6 in the top latch. This
yields a separate address bus with connections A19-A,. These address connections allow the
8088 to address 1M byte of memory space. The fact that the data bus is separate allows it to be
connected to any 8-bit peripheral device or memory component.
Demultiplexing the 8086. Like the 8088, the 8086 system requires separate address, data, and
control buses. It differs primarily in the number of multiplexed pins. In the 8088, only AD,-AD,
and AldS6-AI6IS3 a ~ m u l t i p l e x e d .In the 8086, the multiplexed pins include ADI5-AD,,
AI9/SG-AI6/S3,and BHE/S,. All of these signals must be demultiplex
Figure 8-6 illustrates a demultiplexed
- -8086 with all three buses: address (Al9-A, and
m), data (Dl,-D,,). and control (M/IO, RD, and m).
T1.t circuit shown in Figure 8-6 is almost identical to the one pictured in Figure 8-5, ex-
-74LS373 latch has been added to demultiplex the addressldata bus pins
cept that an additional
ADl5-AD, and a BHE/S, input has been added to the top 74LS373 to select the high-order
memory bank in the 16-bit memory system of the 8086. Here the memory and 110 system see the
8086 as a device with a 20-bit address bus (Al9-A,), a 16-bit data bus (D15-DO),and a _?-line
m,
conlrol bus ( M I E , m).
and
8-4 BUS TIMING
Vcn
- TCLCL -TCHlCH2
R E A D CYCLE
(NOTE 1 ) .
(wA,m. v,,
FIGURE 8-11 Minimum mode 8088 bus timing for a read operation
Memory access time starts when the address appears on the memory address bus and
continues until the microprocessor samples the memory data at T3. Approximately three T
states elapse between these times. (Refer to Figure 8-12 for the following times.) The ad-
dress does not appear until TCLAVtime (1 10 ns if the clock is 5 MHz) after the start of T I .
This means that T,,, time must be subtracted from the three clocking states (600 ns) that
separate the appearance of the address (TI) and the sampling of the data (T3). One other time
must also be subtracted: the data setup time (TDVCL),which occurs before T3. Memory access
time is thus three clocking states minus the sum of T,,, and TDVCL. Because TDVCL is 30 ns
with a 5 MHz clock, the allowed memory access time is only 460 ns (access time = 600 ns
- 110 ns - 30 ns).
Actually, the memory devices chosen for connection to the 808618088 operated at 5 MHz
must be able to access data in less than 460 ns because of the time delay introduced by the ad-
dress decoders and buffers in the system. At least a 30 or 40 ns margin should exist for the oper-
ation of these circuits. Therefore, the memory speed should be no slower than about 420 ns to
operate correctly with the 808618088 microprocessors.
CHAPTER 8 808618088 HARDWARE SPECIFICATIONS
8088 is operated with a 5 MHz clock. Hold time is often much less than this, and is in fact often
0 ns for memory devices. The width of !he WR strobe is T,,,, or 340 ns at a 5 MHz clock rate.
This rate, too, is compatible with most memory devices that have an access time of 400 ns or less.
cLK
READY
FIGURE 8-14
-'-'i{r$
808618088 READY input timing
9-1 MEMORY DEVICES 31 3
- -- --
Sclcct Krad
9-1 MEMORY DEVICES
UODE SELECTION
BLOCK DIAGRAM
"CC ~
GND
"PP
-
- - - - e
DATA OUTPUTS
01-1-07
W- CHIP SELECT,
=r~-i
PDIPGM --4 POWER DOWN, OUTPUT BUFFERS
PIN NAMES AND PROG. LOGIC
1
-
X 16,384-BIT
DECODER CELLMATRIX
FIGURE 9-2 The pin-out of the 2716, 2K x 8 EPROM (Courtesy of Intel Corporation)
Still another, newer type of read-mostly memory (RMM) is called theflash memoly. The
flash memory1 is also often called an EEPROM (electrically erasable programmable ROM),
EAROM (electrically alter-able ROM), or a NOVRAM (nonvolatile RAM). These memory de-
vices are electrically erasable in the system, but require more time to erase than a normal RAM.
The flash memory device is used to store setup information for systems such as the video card in
the computer. It may also soon replace the EPROM in the computer for the BIOS memory. Some
systems contain a password stored in the flash memory device.
Figure 9-2 illustrates the 2716 EPROM, which is representative of most EPROMs. This de-
vice contains 11 address inputs and 8 data outputs. The 2716 is a 2K x 8 memory device. The
27XXX series of the EPROMs contains the following part numbers: 2704 (512 x 8), 2708 (1K x 8),
2716 (2K x 8), 2732 (4K x 8), 2764 (8K x 8), 27128 (16K x 8), 27256 (32K x 8), 27512 (64K x 8),
and 271024 (128K x 8). Each of these parts contains address pins, eight data connections, one or
more chip selection inputs (E), and an output enable pin (m).
Figure 9-3 illustrates the timing diagram for the 2716 EPROM. Data only appear on the
output connections after a logic 0 is placed on both the a
and ?%pin connections. 1f and a
are not both logic O's, the data output connections remain at their high-impedance or off states. Note
that the Vpppin must be placed at a logic 1 for data to be read from the EPROM. In some cases, the
Vpppin is in the same position as the %% pin on the SRAM. This can allow a single socket to hold
either an EPROM or an S U M . Examples are the 2716 EPROM and the 61 16 SRAM, both 2K x 8
devices that have the same pin-out, except for VPpon the EPROM and on the SRAM.
One important piece of information provided by the timing diagram and data sheet is the
memory access time-the time that it takes the memory to read information. As Figure 9-3 il-
lustrates, memory access time (TAcc) is measured from the appearance of the address at the
A.C. Characteristics
T~ = O'C to 70C, ~ ~ ~ = 1+5V
' +5%.
1 vppI2' = VCCf0.6vi3'
I Symbol I Parameter
Min. I
Limits
1
~ y p . [ ~ ] Max.
1 1 Unit Test Conditions 1
tAccl Address to Output Delay 1 250 1 450 1 ns ( PDIPGM = %C = VIL
~ a ~ a c i t a n cTA
e~=~
25'c,
~ f = 1 MHZ A.C. Test Conditions:
Symbol I Parameter ] Typ. ] Max. I Unit I Conditions I Output Load: 1 TTL gate and CL = 100 pF
lnput Rise and Fall Times: <20 ns
CIN Input Capacitance 4 6 pF VIN =OV
lnput Pulse Levels: 0.8V to 2.2V
COuT Output Capacitance 8 12 pF VoUT = OV Timing Measurement Reference Level:
lnouts 1V and 2V
Outputs O.8V and 2V
WAVEFORMS
A. Read Mode
PDIPGM = VIL I
ADDRESS
YIG* 2
OUTPUT DATA OUT V I L l O
FIGURE 9-3 The timing diagram of AC c h a r a c t e r i s t i c s of the 2716 EPROM (Courtesy o f Intel
Corporation)
Also,
=
address inputs until the appearance of the data at the output connections. This is based on the as-
sunlption that the input goes low at the same time that the address inputs become stable.
must be a logic 0 for the output connections to become active. The basic speed of th
EPROM is 450 ns. (Recall from Chapter 7 that the 808618088 operated with a 5 MHz clock al-
lowed memory 460 ns to access data.) This type of inemory component requires wait states to
operate properly with the 8086/8088 microprocessors because of its rather long access time. If
wait states are not desired, higher speed versions of the EPROM are available at an additional
cost. Today, EPROM memory is available with access times of as little as 100 ns.
PIN NOMENCLATURE
A0 - A10 Addresses
DO1 - DO8 Data IniDara Out
E Output Enable
9 Chip Select
"cc + 5-v Supply
VSS Ground
w W r ~ r eEnable
and is used when the size of the readlwrite memory is relatively small. Today, a small memory is
one that is less than 1M byte.
Figure 9 4 illustrates the 4016 SRAM, which is a 2K x 8 readlwrite memory. This device
has 11 address inputs and 8 data input/output connections. This device is representative of all
SRAM devices.
The control inputs of this RAM are slightly different from those presented earlier. The
pin is labeled G, the CS pin 3, and the WE pin W.Despite the altered designations, the control
pins function exactly the same as those outlined previously. Other manufacturers make this pop-
ular SRAM under the part numbers 2016 and 6 116.
Figure 9-5 depicts the timing diagram for.the 4016 SRAM. As the read cycle timing re-
veals, the access time is ta (A). On the slowest version of the 4016, this time is 250 ns, which is
fast enough to connect to an 8088 or an 8086 operated at 5 MHz without wait states. Again, it is
important to remember that the access time must be checked to determine the compatibility of
memory components with the microprocessor.
Figure 9-6 illustrates the pin-out of the 62256, 32K x 8 static RAM. This device is pack-
aged in a 28-pin integrated circuit, and is available with access times of 120 ns or 150 ns. Other
common SRAM devices are available in 8K x 8 and 128K x 8 sizes with access times of as little
as 10 ns for SRAM used in computer cache memory systems.
I
ADDRESS
ADDRESS
I
I (see note 8)
p~
W
(see
-t----------tc(wr)
ADDRESS
FIGURE 9-8 RAS, CAS, and address input timing for the TMS4464 DRAM (Courtesy of Texas
Instruments Incorporated)
TMS4464, which stores 256K bits of data. Notice that it contains only 8 address inputs where it
should contain 16-the number required to address 64K memory locations. The only way that
16 address bits can be forced into 8 address pins is in two-
8-bit increments. This operation
- re-
quires two special pins called column address strobe (CAS) and row address strobe -
(RAS).
First, Ao-A, are placed on the address pins and strobed into an internal row latch by RAS as the
row address. Next. the address bits A s - A d r e placed on the same eight address inputs and
strobed into an internal column latch by CAS as the column address (see Figure 9-8 for this
timing). The 16-bit address held in- these internal latches addresses the contents of one of the 4-
bit memory locations. Note that CAS also performs the function of the chip selection input to
the DRAM.
Figure 9-9 illustrates a set of multiplexers used to strobe the column
-
and row addresses
into the eight address inputs of a pair of TMS4464 DRAMs. Here the RAS not only strobes the
row address into the DRAMs, but it also changes the address applied to the address-inputs. This
is possible due to the long propagation delay time of the multiplexers. When - RAS is a logic 1,
the B inputs are connected to the Y outputs of the multiplexers; when the RAS input goes to a
logic 0, the A inputs connect to the Y outputs. Because the internal row address latch is edge-
triggered, it captures the row address before the address at the inputs change to the column ad-
dress. More detail on DRAM and DRAM interfacing is provided in Section 9-6.
As with the SRAM, the R m pin writes data to the DRAM when a logic 0, but there is no
pin labeled or enable. There also is no (select) input to the DRAM. As mentioned, the CAS
input selects the DRAM. If selected, the DRAM is written if R/W = 0 and read if RTW = 1.
Figure 9-10 shows the pinout of the 41256 dynamic RAM. This device is organized as a
256K x 1 memory requiring as little as 70 ns to access data.
More recently. larger DRAMs have become available that are organized as a 1M x 1
memory, 4M x 1, and 16M x 1. On the horizon is the 256M x 1 memory, which is in the plan-
ning stages. Because DRAM memory is usually placed on small circuit boards called SIMMs,
Figure 9-1 1 shows the pin-outs of the two most common SIMMs (Single In-line Memory Mod-
ules). The 30-pin SIMM is organized most often as 1 M x 8 or 1M x 9 and 4M x 8 or 4M x 9.
9-2 ADDRESS DECODING
DATE 6/6/96
CHIP DECODE31 PALl6L8
;pins1 2 3 4 5 6 7 8 9 1 0
A19 .A18 A17 A16 Ai5 .A14 A13 NC NC GND
;pins 11 12 13 14 i5 i6 3.7 18 i9 20
NC 08 07 05 05 04 03 02 01 VCC
The first eight lines of the program illustrated in Example 9-5 identify the program title,
pattern, revision, author, company, date, and chip type with the program name. Although it is
normal to find entries in each heading, the only entry that is absolutely necessary is the CHIP
statement. In this example, the chip type is a PAL16L8 and the program is called DECODERl.
After the program is identified, a comment statement (;pins) identifies the pin numbers. Below
this comment statement appears the pins as defined for this application. Once all the pins are de-
fined, we use the EQUATIONS statement to indicate that the equations for this application
follow. In this example, the equations define the eight chip enable outputs for the eight EPROM
memory devices. Refer to Figure 9-18 for the complete schematic diagram of this PAL decoder.