programmable interval timer

16
Programmable Interval Timer 8253 By, Daggubati.Sirisha

Upload: sirisha-vamsi

Post on 26-Aug-2014

160 views

Category:

Documents


5 download

TRANSCRIPT

Page 2: Programmable Interval Timer

• The Intel 8253 and 8254 are Programmable Interval Timers (PITs), which perform timing and counting functions. They were primarily designed for the Intel 8080/8085-processors, but later used in x86-systems.

Page 3: Programmable Interval Timer

• There are several applications where we need to generate clock signals of different frequency, Delays of different duration and strobe signals after certain interval

• These Signals can be generated by using different techniques

• Software,Hardware and combined • Programmable interval Timer is used in

Page 4: Programmable Interval Timer

Software based approachClock

using 2 delay routine we generateclock

Generating delay

Strobe signal

Limitation

Some application e need to generate clock and delay at a time , which is not possible using this method, although it is Flexible to generate everything by program ,due to above Drawback

Page 5: Programmable Interval Timer

Hardware based approach

Page 6: Programmable Interval Timer

Hardware based approach

555 Timer

Drawback:If we need to change the frequency of clock need to change the capacitor andResistor values ie hardware need to be changed, so we go for combined approach

trigger

Page 7: Programmable Interval Timer
Page 8: Programmable Interval Timer

Combined approach-Programmable Interval Timer-8253

Max clk freq 2mhz

Page 9: Programmable Interval Timer

8253

• Control word register used to control mode of operation

• three16 bit registers called Counters used to generate delay, clock signal and strobe signal

Page 10: Programmable Interval Timer

Addressing and CONTROL REGISTER

Page 11: Programmable Interval Timer

Interrupt on TC-Mode-0

Count down can be inhibited

Gate is inhibiting the clock to decrement the count

Page 12: Programmable Interval Timer

Mode:1(Monostable multivibrator)

When trigger is applied it will start count, here gate line acts like trigger input

Page 13: Programmable Interval Timer

Rate generator

If u write n ,it keeps gnerating strobe after tc reaches 0-called rate generatorGate input used to load reset,the count value reset and start from n value

Page 14: Programmable Interval Timer

Square wave generator

Output will remain high or low for this durationDifference of period is only one clock cycle between odd and even number

Page 15: Programmable Interval Timer

Softare triggered strobe

It generate the strobe at the output, here write operation acts as the triggerOperation can be delayed by gating

Page 16: Programmable Interval Timer

Hardare triggered strobe

This gate line is used as the trigger input, count down is initiated by gate