By K. Vijay Kumar Assistant Professor Dept. of ECE
By K. Vijay Kumar Assistant Professor Dept. of ECE
K. Vijay Kumar
Assistant Professor
Dept. of ECE
Intels Programmable
Not Counter/ Timer Device
Possible To (8253/8254) Facilitates
Generate Accurate Time Delays
Accurate Minimizes Load On Mp
Time Real Time Clock
Delays Event Counter
Using Delay Digital One Shot
Routines in Square Wave Generator
8086 Complex Waveform Generator
8253 8254-ADVANCED VERSION OF 8253
8253 can 8254 can operate with higher clock
operate at
frequency Frequency Range ( DC To 8 Mhz AND 10 Mhz
from dc to FOR 8254-2)
2mhz
Includes Status Read Back Command That
Latches The Count And Status Of Counters
Compatible with All Intel and Most other Microprocessors and Handles Inputs from DC
to 10 MHz
8 MHz 8254 and 10 MHz 8254-2
The Intel 8254 is a counter/timer device designed to solve the common timing control
problems in microcomputer system design.
It provides three independent 16-bit counters, each capable of handling clock inputs up
to 10 MHz
Binary or BCD counting
Single a +5V Supply and Standard Temperature Range
Six Programmable Counter Modes and All modes are software programmable. The 8254
is a superset of the 8253.
The 8254 uses HMOS technology and comes in a 24-pin plastic or CERDIP package.
Used for controlling real-time events such as real-time clock, events counter, and motor
speed and direction control.
Counters:
Three Counters C1,C2 & C3
Each 16 Bit Identical Presettable
Down Counter Operates In BCD /Hex
Controlled By Loading Count To Command Word Register
On The Fly Reading
Control Logic:
CS Logic 0 Enables 8254
RD Logic 0 Tells Microprocessor Reads Count From 8254
WR Logic 0 Tells Microprocessor Writes Count/ Command
Into 8254
A1,a0 Address Input Pins To Select Modes And Counters
Data Buffers:
8 Bit Bidirectional D0-d7 Connected To Data Bus Of Microprocessor
Mode 5
Mode 1
Hardware
Programmable
Triggered
Monoshot
Strobe
8254
Modes Of
Operation
Mode 4
Software Mode 2 Rate
Triggered Generator
Strobe
Mode 3
Square Wave
Generator
8254 Modes Of Operation
1. Mode 0 (Interrupt On Terminal Count )
The number of clock pulses between the two low pulses is equal
to the count loaded
generated signal
Counter starts counting after the rising edge of the trigger (GATE)
The OUTPUT goes LOW for one clock period, when the terminal count is
reached
Output will not go LOW until the counter content becomes zero after the rising