0% found this document useful (0 votes)
54 views23 pages

Microprocessor

The 8254 Programmable Interval Timer IC consists of 3 16-bit counters that can generate time delays, clock pulses, and square waves. It operates in 6 modes and requires a +5V power supply. The IC connects to a microprocessor via data and control lines and pins that select the individual counters. It allows writing initialization values to the counters and control register, and reading the counts either after stopping or while counting.

Uploaded by

SahilPrabhakar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views23 pages

Microprocessor

The 8254 Programmable Interval Timer IC consists of 3 16-bit counters that can generate time delays, clock pulses, and square waves. It operates in 6 modes and requires a +5V power supply. The IC connects to a microprocessor via data and control lines and pins that select the individual counters. It allows writing initialization values to the counters and control register, and reading the counts either after stopping or while counting.

Uploaded by

SahilPrabhakar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 23

Programmable Interval Timer

IC 8254 is an programmable interval


Timer, whose function is similar to
software program(counter and Time
delay).
Applications are
Used to generate time delay
Clock pulses
Square wave generators and etc

8254 consists of 3- 16 bit counters, which


works individually.
This counters operates in 6 different modes
8254 is a 24 pin dual in line package IC
It requires +5v power supply.
To operate as an counter, 16 bit count value is
to be stored in register and required
command should be given to start the
decrement operation
When the count is decrement to zero, and
signal is given to MPU( consider as a
interrupt).
We can also read the contents of counter
while its value is decrementing.

8254 consists of 3 individual counter


register(0,1,2).
Data bus (D7-D0)
R/W control logic
Control register
Counter is having 2 input pins and one
output pin.
Input pins: CLOCK(CLK) and GATE
Output Pins: OUT
Data pins are connected to the data bus pins of

MPU

In 8254 , 5 control logic pins are


present
RD(AL):
WR(AL):
RD and WR control lines are connected with IOM,
IOR, MEMR and MEMW control lines of MPU.
CS(AL): This pins is used to Disable and

enable the 8254 chip and this is done by


decoding the address lines
A1,A0: This lines are used to select the 3
different counter.

Each counter is assigned with


individual port address.
Control register is
Common to all
counters and has its
own port address.

8254 can be programmed to provide various types of output through write


operation and we can also check the count while counting through Read
operation.

Write Operation:
To initialize a Counter, following steps are required

Write a control word into control register

Load the low-order byte of count in the counter register

Load the high-order byte of count in the counter register

Read Operation:
This operation can be done in 2 ways:
1. Reading the count after stopping the counter
2. Second method involves reading a count, while count is in
progress( READING ON FLY).

Mode 0

Interrupt on terminal count

Mode 1

Programmable one-shot

Mode 2

Rate Generator

Mode 3

Square wave rate generator

Mode 4

Software triggered strobe

Mode 5

Hardware trigger strobe

You might also like