8524 microprocessor, Study notes of Microprocessors

microprocessors

Typology: Study notes

2011/2012

Uploaded on 09/23/2012

ananya_kallankudlu
ananya_kallankudlu 🇮🇳

4

(1)

6 documents

1 / 72

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
M. Krishna Kumar MM/M3/LU9a/V1/2004 1
8254
Compatible with All Intel and Most other Microprocessors
Handles Inputs from DC to 10 MHz
8 MHz 8254
10 MHz 8254-2
Status Read-Back Command
Six Programmable Counter Modes
Three Independent 16-Bit Counters
Binary or BCD Counting
Single a 5V Supply
Standard Temperature Range
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48

Partial preview of the text

Download 8524 microprocessor and more Study notes Microprocessors in PDF only on Docsity!

M. Krishna Kumar

MM/M3/LU9a/V1/

•^

Compatible with All Intel and Most other Microprocessors

-^

Handles Inputs from DC to 10 MHz

8 MHz 825410 MHz 8254-

•^

Status Read-Back Command

-^

Six Programmable Counter Modes

-^

Three Independent 16-Bit Counters

-^

Binary or BCD Counting

-^

Single a 5V Supply

-^

Standard Temperature Range

M. Krishna Kumar

MM/M3/LU9a/V1/

•^

The Intel 8254 is a counter/timer device designed to solvethe common timing control problems in microcomputersystem design.

-^

It provides three independent 16-bit counters, each capableof handling clock inputs up to 10 MHz.

-^

All modes are software programmable. The 8254 is asuperset of the 8253.

-^

The 8254 uses HMOS technology and comes in a 24-pinplastic or CERDIP package.

8254 (cont..)

M. Krishna Kumar

MM/M3/LU9a/V1/

Figure 2. 8254 Block Diagram

M. Krishna Kumar

MM/M3/LU9a/V1/

Pin Description

Symbol

PinNo.

Type

Name and Function

D7-D

1 - 8

I/O

DATA: Bi-directional three state data buslines, connected to system data bus.

CLK 0

9

I^

CLOCK 0: Clock input of Counter 0.

OUT 0

10

O

OUTPUT 0: Output of Counter 0.

GATE 0

11

I^

GATE 0: Gate input of Counter 0.

GND

12

GROUND: Power supply connection.

VCC

24

POWER: A 5V power supply connection.

WR

23

I^

WRITE CONTROL: This input is low duringCPU write operations.

RD

22

I^

READ CONTROL: This input is low duringCPU read operations.

M. Krishna Kumar

MM/M3/LU9a/V1/

GATE 2

16

I^

GATE 2: Gate input of Counter 2.

CLK 1

15

I^

CLOCK 1: Clock input of Counter 1.

GATE 1

14

I^

GATE 1: Gate input of Counter 1.

OUT 1

OUT 1

O

OUT 1: Output of Counter 1.

Pin Description (cont..)

M. Krishna Kumar

MM/M3/LU9a/V1/

Functional Description

•^

The 8254 is a programmable interval timer/counterdesigned for use with Intel microcomputer systems.

-^

It is a general purpose, multi-timing element that can betreated as an array of I/O ports in the system software.

-^

The 8254 solves one of the most common problems in anymicrocomputer system, the generation of accurate timedelays under software control. Instead of setting up timingloops in software, the programmer configures the 8254 tomatch his requirements and programs one of the countersfor the desired delay.

M. Krishna Kumar

MM/M3/LU9a/V1/

•^

Programmable rate generator

-^

Square wave generator

-^

Binary rate multiplier

-^

Complex waveform generator

-^

Complex motor controller

Functional Description (cont..)

M. Krishna Kumar

MM/M3/LU9a/V1/

Block Diagram

•^

DATA BUS BUFFER

: This 3-state, bi-directional, 8-bit

buffer is used to interface the 8254 to the system bus, seethe figure below : Block Diagram Showing Data BusBuffer and Read/Write Logic Functions.

-^

READ/WRITE LOGIC

: The Read/Write Logic accepts

inputs from the system bus and generates control signalsfor the other functional blocks of the 8254. A

1

and A

0

select one of the three counters or the Control WordRegister to be read from/written into.

-^

A “low” on the RD input tells the 8254 that the CPU isreading one of the counters.

M. Krishna Kumar

MM/M3/LU9a/V1/

•^

A “low” on the WR input tells the 8254 that the CPU iswriting either a Control Word or an initial count. Both RDand WR are qualified by CS; RD and WR are ignoredunless the 8254 has been selected by holding CS low.

-^

CONTROL WORD REGISTER :

The Control Word

Register (see Figure 4) is selected by the Read/Write Logicwhen A

,A 1

= 11. If the CPU then does a write operation to 0

the 8254, the data is stored in the Control Word Registerand is interpreted as a Control Word used to define theoperation of the Counters.

Block Diagram (cont..)

M. Krishna Kumar

MM/M3/LU9a/V1/

Figure 4. Block Diagram Showing Control Word Register and Counter Functions

M. Krishna Kumar

MM/M3/LU9a/V1/

•^

The status register, shown in Figure 5, when latched,contains the current contents of the Control Word Registerand status of the output and null count flag. (See detailedexplanation of the Read-Back command.)

-^

The actual counter is labelled CE (for CountingElement''). It is a 16-bit presettable synchronous downcounter. OLM and OLL are two 8-bit latches. OL standsforOutput Latch''; the subscripts M and L stand forMost significant byte'' andLeast significant byte'‘respectively.

Block Diagram (cont..)

M. Krishna Kumar

MM/M3/LU9a/V1/

Figure 5. Internal Block Diagram of a Counter

M. Krishna Kumar

MM/M3/LU9a/V1/

•^

Similarly, there are two 8-bit registers called CRM andCRL (for ``Count Register''). Both are normally referred toas one unit and called just CR.

-^

When a new count is written to the Counter, the count isstored in the CR and later transferred to the CE. TheControl Logic allows one register at a time to be loadedfrom the internal bus. Both bytes are transferred to the CEsimultaneously.

-^

CRM and CRL are cleared when the Counter isprogrammed. In this way, if the Counter has beenprogrammed for one byte counts (either most significantbyte only or least significant byte only) the other byte willbe zero.

Block Diagram (cont..)

M. Krishna Kumar

MM/M3/LU9a/V1/

•^

Note that the CE cannot be written into, whenever a countis 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 theoutside world through the Control Logic.

-^

8254 SYSTEM INTERFACE :

The 8254 is a component

of the Intel Microcomputer Systems and interfaces in thesame manner as all other peripherals of the family.

-^

It is treated by the system's software as an array ofperipheral I/O ports; three are counters and the fourth is acontrol register for MODE programming.

Block Diagram (cont..)