SlideShare a Scribd company logo
2
Most read
3
Most read
10
Most read
By: Masud-ul-Hasan
Programmable Interval Timer
8253 (PIT)
COE305 Lab.
By: Masud-ul-Hasan
What is 8253?
• The Intel 8253 is a programmable counter/
timer chip designed for use as an Intel
microcomputer peripheral.
• It is packaged in a 24-pin plastic DIP.
• Six programmable timer modes allow the
8253 to be used as an event counter, elapsed
time indicator, programmable one-shot, and in
many other applications e.g., to create
different intervals.
• It has 3 counters:
– Counters 0, 1, 2
By: Masud-ul-Hasan
Block Diagram of 8253
•Each counter in the
block diagram has 3
lines connected to it.
Two of these lines,
clock and gate, are
inputs. The third,
labeled OUT is an
output.
•The function of these
lines changes and
depends on how the
device is initialized or
programmed.
By: Masud-ul-Hasan
Interpretation of the Timer Control Byte
• Bits 7,6: Counter Selection (00 to 10)
• Bits 5,4: Read/load mode for 2-byte count value:
00 -- latch count for reading
01 -- read/load high byte only
10 -- read/load low byte only
11 -- read/load low byte then high byte
• Bits 3,2,1: Count mode selection (000 to 101)
• Bit 0: 0/1- Count in binary/BCD
By: Masud-ul-Hasan
Modes of Operation of 8253
• There are 6 modes of operation of 8253
• Differences in modes are:
– “OUT” signal in different shapes like low-high or
high- low, periodic or non-periodic
– How to trigger/start the counter
• Mode 0 and 1 are same in shape (non-periodic)
• Mode 4 and 5 are same in shape (non-periodic)
• Mode 2 and 3 are almost same in shape
(periodic)
By: Masud-ul-Hasan
Modes of Operation of 8253
• Mode 0: Set Output Bit when timer done.
The output will start off zero. The count is
loaded and the timer will start to count down.
When the count has reached zero the output
will be set high, and remain high until the next
count has been reloaded.
• Mode 1: Programmable One-Shot. The
output will go low following the rising edge of
the gate input. The counter will count and the
output will go high once the counter has
reached zero.
By: Masud-ul-Hasan
Modes of Operation of 8253
• Mode 2: Rate Generator. The counter will
continually count down, when the count
reaches zero, the output will pulse low and
the counter will be reloaded.
• Mode 3: Square Wave Generator. This
mode is similar to Mode 2 except the output
remains low for half of the timer period and
high for the other half of the period.
By: Masud-ul-Hasan
Modes of Operation of 8253
• Mode 4: Software Triggered Pulse. The
output will remain high untill the timer has
counted to zero, at which point the output will
pulse low and then go high again.
• Mode 5: Hardware Triggered Pulse. The
counter will start counting once the gate input
goes high, when the counter reaches zero the
output will pulse low and then go high again.
By: Masud-ul-Hasan
• If 6 is loaded in the counter then it will start
count down from 6 0. After reaching 0,
change the OUT signal like from Lo Hi.
• First 2 MSBs select the counter. Addresses
for 3 counters in flight board’s 8253 are:
Modes of Operation of 8253
0EHWrite OnlyControl Word
0CHRead/WriteCounter 2
0AHRead/WriteCounter 1
08HRead/WriteCounter 0
Port AddressActivity AllowedRegister
By: Masud-ul-Hasan
Modes of Operation of 8253

More Related Content

PPTX
4.programmable dma controller 8257
PPT
8051 block diagram
PPTX
5.programmable interval timer 8253
PPTX
IC 8253 - Microprocessor
PPTX
Programmable peripheral interface 8255
PPTX
Interfacing with peripherals: analog to digital converters and digital to ana...
PDF
8051 Microcontroller I/O ports
PPTX
Interfacing memory with 8086 microprocessor
4.programmable dma controller 8257
8051 block diagram
5.programmable interval timer 8253
IC 8253 - Microprocessor
Programmable peripheral interface 8255
Interfacing with peripherals: analog to digital converters and digital to ana...
8051 Microcontroller I/O ports
Interfacing memory with 8086 microprocessor

What's hot (20)

PPT
8255 presentaion.ppt
PPTX
8051 MICROCONTROLLER ARCHITECTURE.pptx
PPTX
8257 DMA Controller
PDF
8259 Programmable Interrupt Controller
PPT
Timing diagram 8085 microprocessor
PPT
Programming with 8085
PPTX
Pic microcontroller architecture
PPTX
I/O port programming in 8051
PPTX
8086 microprocessor-architecture
PPTX
memory organi.pptx
PPTX
8255 PPI
PPTX
Introduction to 8085 microprocessor
PPT
Addressing modes of 8051
PPTX
LCD Interacing with 8051
PPT
Memory & I/O interfacing
PDF
Stack and subroutine
PPTX
Architecture of 8051
PPTX
Stacks & subroutines 1
PPT
8051 Addressing Modes
PPTX
8251 USART
8255 presentaion.ppt
8051 MICROCONTROLLER ARCHITECTURE.pptx
8257 DMA Controller
8259 Programmable Interrupt Controller
Timing diagram 8085 microprocessor
Programming with 8085
Pic microcontroller architecture
I/O port programming in 8051
8086 microprocessor-architecture
memory organi.pptx
8255 PPI
Introduction to 8085 microprocessor
Addressing modes of 8051
LCD Interacing with 8051
Memory & I/O interfacing
Stack and subroutine
Architecture of 8051
Stacks & subroutines 1
8051 Addressing Modes
8251 USART
Ad

Similar to 8253ppt (20)

PPT
8254-timer.ppt
PPTX
unit 2 lect 6 AND 7 8254.pptx
PPTX
Timer
PPT
PPT
PPTX
8254 Programmable Interval Timer
PPTX
8254 Programmable Interval Timer by vijay
PDF
8255.pdf
PPTX
8254.pptx
PPTX
Interfacing with Timer IC.pptx interfacing with timer ic
PPT
8254 timer - Microprocessor and interfacing
PDF
Microprocessor & Interfacing (Part-2) By Er. Swapnil V. Kaware
PPT
8255-PPI MPMC text book for engineering.ppt
PPTX
PPT
8254 PIT
PPTX
Module 3.pptx Microcontrollers for 4th sem
PPTX
Digital Fundamentals and Computer Architecture -1-agricultural-pathwayunder-f...
8254-timer.ppt
unit 2 lect 6 AND 7 8254.pptx
Timer
8254 Programmable Interval Timer
8254 Programmable Interval Timer by vijay
8255.pdf
8254.pptx
Interfacing with Timer IC.pptx interfacing with timer ic
8254 timer - Microprocessor and interfacing
Microprocessor & Interfacing (Part-2) By Er. Swapnil V. Kaware
8255-PPI MPMC text book for engineering.ppt
8254 PIT
Module 3.pptx Microcontrollers for 4th sem
Digital Fundamentals and Computer Architecture -1-agricultural-pathwayunder-f...
Ad

Recently uploaded (20)

PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Zenith AI: Advanced Artificial Intelligence
PPTX
Tartificialntelligence_presentation.pptx
PPT
What is a Computer? Input Devices /output devices
PDF
project resource management chapter-09.pdf
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
1. Introduction to Computer Programming.pptx
PPTX
Chapter 5: Probability Theory and Statistics
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
Architecture types and enterprise applications.pdf
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
Programs and apps: productivity, graphics, security and other tools
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Zenith AI: Advanced Artificial Intelligence
Tartificialntelligence_presentation.pptx
What is a Computer? Input Devices /output devices
project resource management chapter-09.pdf
DP Operators-handbook-extract for the Mautical Institute
A contest of sentiment analysis: k-nearest neighbor versus neural network
Assigned Numbers - 2025 - Bluetooth® Document
1. Introduction to Computer Programming.pptx
Chapter 5: Probability Theory and Statistics
WOOl fibre morphology and structure.pdf for textiles
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
NewMind AI Weekly Chronicles – August ’25 Week III
OMC Textile Division Presentation 2021.pptx
Architecture types and enterprise applications.pdf
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf

8253ppt

  • 1. By: Masud-ul-Hasan Programmable Interval Timer 8253 (PIT) COE305 Lab.
  • 2. By: Masud-ul-Hasan What is 8253? • The Intel 8253 is a programmable counter/ timer chip designed for use as an Intel microcomputer peripheral. • It is packaged in a 24-pin plastic DIP. • Six programmable timer modes allow the 8253 to be used as an event counter, elapsed time indicator, programmable one-shot, and in many other applications e.g., to create different intervals. • It has 3 counters: – Counters 0, 1, 2
  • 3. By: Masud-ul-Hasan Block Diagram of 8253 •Each counter in the block diagram has 3 lines connected to it. Two of these lines, clock and gate, are inputs. The third, labeled OUT is an output. •The function of these lines changes and depends on how the device is initialized or programmed.
  • 4. By: Masud-ul-Hasan Interpretation of the Timer Control Byte • Bits 7,6: Counter Selection (00 to 10) • Bits 5,4: Read/load mode for 2-byte count value: 00 -- latch count for reading 01 -- read/load high byte only 10 -- read/load low byte only 11 -- read/load low byte then high byte • Bits 3,2,1: Count mode selection (000 to 101) • Bit 0: 0/1- Count in binary/BCD
  • 5. By: Masud-ul-Hasan Modes of Operation of 8253 • There are 6 modes of operation of 8253 • Differences in modes are: – “OUT” signal in different shapes like low-high or high- low, periodic or non-periodic – How to trigger/start the counter • Mode 0 and 1 are same in shape (non-periodic) • Mode 4 and 5 are same in shape (non-periodic) • Mode 2 and 3 are almost same in shape (periodic)
  • 6. By: Masud-ul-Hasan Modes of Operation of 8253 • Mode 0: Set Output Bit when timer done. The output will start off zero. The count is loaded and the timer will start to count down. When the count has reached zero the output will be set high, and remain high until the next count has been reloaded. • Mode 1: Programmable One-Shot. The output will go low following the rising edge of the gate input. The counter will count and the output will go high once the counter has reached zero.
  • 7. By: Masud-ul-Hasan Modes of Operation of 8253 • Mode 2: Rate Generator. The counter will continually count down, when the count reaches zero, the output will pulse low and the counter will be reloaded. • Mode 3: Square Wave Generator. This mode is similar to Mode 2 except the output remains low for half of the timer period and high for the other half of the period.
  • 8. By: Masud-ul-Hasan Modes of Operation of 8253 • Mode 4: Software Triggered Pulse. The output will remain high untill the timer has counted to zero, at which point the output will pulse low and then go high again. • Mode 5: Hardware Triggered Pulse. The counter will start counting once the gate input goes high, when the counter reaches zero the output will pulse low and then go high again.
  • 9. By: Masud-ul-Hasan • If 6 is loaded in the counter then it will start count down from 6 0. After reaching 0, change the OUT signal like from Lo Hi. • First 2 MSBs select the counter. Addresses for 3 counters in flight board’s 8253 are: Modes of Operation of 8253 0EHWrite OnlyControl Word 0CHRead/WriteCounter 2 0AHRead/WriteCounter 1 08HRead/WriteCounter 0 Port AddressActivity AllowedRegister
  • 10. By: Masud-ul-Hasan Modes of Operation of 8253