SlideShare a Scribd company logo
Programmable Interval timer 8253 / 8254
WHY 8253???
8253 VS 8254
8254 BLOCK
BLOCK DIAGRAM OF 8254
Timer
Timer
8254 PIN DIAGRAM
CONTROL WORD FORMAT
Timer
Modes of operationMode 0:  INTERRUPT ON TERMINAL COUNT
The output becomes a logic 0 when the control word is written
Remains low even after count value loaded in counter
Counter starts decrementing after falling edge of clock
The OUT goes high upon reaching the terminal count & remains high till reloading
 OUT can be used as interrupt
Writing a count register , when previous counting is in process  first byte when loaded stops the previous count,  second  byte when loaded starts new count
Gate high  normal counting
Gate low  counting terminated and  current count latched till GATE goes high againMode 0:  INTERRUPT ON TERMINAL COUNT
Mode 1: One-shot mode. monostablemultivibrator
 gate input is used as trigger input
 output remains high till the count is loaded
 After application of trigger, output goes low and remains low till count becomes zero
 Another count loaded, when output already low it does not disturb counting until a new trigger is applied at the gate
New counting starts after new trigger pulseMode 1: One-shot mode
Mode 2: RATE GENERATOR / DIVIDE BY N COUNTER

More Related Content

PPTX
8251 USART
PPTX
8279 in microprocessor
PPTX
8254 Programmable Interval Timer by vijay
PPT
PPTX
8251 USART
PPT
8051 block diagram
PPTX
PROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptx
PDF
8051 Microcontroller I/O ports
8251 USART
8279 in microprocessor
8254 Programmable Interval Timer by vijay
8251 USART
8051 block diagram
PROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptx
8051 Microcontroller I/O ports

What's hot (20)

PDF
Unit II arm 7 Instruction Set
PPTX
5.programmable interval timer 8253
PDF
Schmitt trigger basics
PDF
8259 Programmable Interrupt Controller
PDF
Unit 3 mpmc
PPTX
3.programmable interrupt controller 8259
PPT
Instruction set of 8086
PPTX
1.ppi 8255
DOCX
8086 pin diagram description
PPTX
8259 Operating Modes.pptx
PPTX
PIC-18 Microcontroller
PPTX
PPTX
OVERVIEW OF MSP430G2553
PPT
Programmable Timer 8253/8254
PPT
PDF
8155 PPI
PPT
Memory & I/O interfacing
PPTX
Signal descriptors of 8086
PPTX
Stacks & subroutines 1
PPTX
INTERRUPTS OF 8086 MICROPROCESSOR
Unit II arm 7 Instruction Set
5.programmable interval timer 8253
Schmitt trigger basics
8259 Programmable Interrupt Controller
Unit 3 mpmc
3.programmable interrupt controller 8259
Instruction set of 8086
1.ppi 8255
8086 pin diagram description
8259 Operating Modes.pptx
PIC-18 Microcontroller
OVERVIEW OF MSP430G2553
Programmable Timer 8253/8254
8155 PPI
Memory & I/O interfacing
Signal descriptors of 8086
Stacks & subroutines 1
INTERRUPTS OF 8086 MICROPROCESSOR
Ad

Viewers also liked (9)

PDF
Notes nyquist plot and stability criteria
PPT
8085 interrupts
PPT
Control chap10
PPT
8255_utkarsh_kulshrestha
PPT
Interfacing 8255
PPTX
Nyquist and polar plot 118 & 117
PDF
8085 interrupts
PPTX
Interrupts of microprocessor 8085
PPT
Chapter 4 - Digital Transmission
Notes nyquist plot and stability criteria
8085 interrupts
Control chap10
8255_utkarsh_kulshrestha
Interfacing 8255
Nyquist and polar plot 118 & 117
8085 interrupts
Interrupts of microprocessor 8085
Chapter 4 - Digital Transmission
Ad

Similar to Timer (20)

PPTX
8254.pptx
PPT
8254 PIT
PPTX
unit 2 lect 6 AND 7 8254.pptx
PPT
8254 timer - Microprocessor and interfacing
PPTX
IC 8253 - Microprocessor
PDF
PPTX
Interfacing with Timer IC.pptx interfacing with timer ic
DOCX
Peripheral 8245,16550&8237 dma controller
PDF
Microprocessor & Interfacing (Part-2) By Er. Swapnil V. Kaware
PPT
8255-PPI MPMC text book for engineering.ppt
PPT
PPTX
timer counter (1).pptx
PDF
Interfacing Analog to Digital Data Converters ee3404.pdf
PPTX
UNIT 5.pptx
PPTX
Presentation computer architechure (1)
PPTX
UNIT 5 Interfacing and Mixed Signal Controller.pptx
PPT
8051e
PPTX
89C51 PROGRAMMING in Unit-4 of Microprocessor
PPTX
8051 training an interactive tutorial
PDF
8255.pdf
8254.pptx
8254 PIT
unit 2 lect 6 AND 7 8254.pptx
8254 timer - Microprocessor and interfacing
IC 8253 - Microprocessor
Interfacing with Timer IC.pptx interfacing with timer ic
Peripheral 8245,16550&8237 dma controller
Microprocessor & Interfacing (Part-2) By Er. Swapnil V. Kaware
8255-PPI MPMC text book for engineering.ppt
timer counter (1).pptx
Interfacing Analog to Digital Data Converters ee3404.pdf
UNIT 5.pptx
Presentation computer architechure (1)
UNIT 5 Interfacing and Mixed Signal Controller.pptx
8051e
89C51 PROGRAMMING in Unit-4 of Microprocessor
8051 training an interactive tutorial
8255.pdf

More from Aisu (19)

PPT
ma project
PPT
Newton Raphson
PPT
Aisuphysics
PDF
Dreaming In Arabicnovel
PDF
The Society For The Betterment Of Mankind
PPT
Digital Transmission Fundamentals
PPT
8251 08 Serial
PPT
8251
PDF
11 Serial 0515
PPT
Io (2)
PPT
I Ointerface in mp
PPT
Display1in mp
PPT
Display11 in mp
PPT
8259 A P R O G R A M M A B L E I N T E R R U P T C O N T R O L L E R2
PPT
db
PPTX
Serial Io
PPT
Interrupt11
PPT
B Trees
PPT
overview of physical storage media
ma project
Newton Raphson
Aisuphysics
Dreaming In Arabicnovel
The Society For The Betterment Of Mankind
Digital Transmission Fundamentals
8251 08 Serial
8251
11 Serial 0515
Io (2)
I Ointerface in mp
Display1in mp
Display11 in mp
8259 A P R O G R A M M A B L E I N T E R R U P T C O N T R O L L E R2
db
Serial Io
Interrupt11
B Trees
overview of physical storage media

Recently uploaded (20)

DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
RMMM.pdf make it easy to upload and study
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
Hazard Identification & Risk Assessment .pdf
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
Classroom Observation Tools for Teachers
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PPTX
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
Indian roads congress 037 - 2012 Flexible pavement
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PDF
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
Unit 4 Skeletal System.ppt.pptxopresentatiom
PDF
1_English_Language_Set_2.pdf probationary
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
RMMM.pdf make it easy to upload and study
A powerpoint presentation on the Revised K-10 Science Shaping Paper
Hazard Identification & Risk Assessment .pdf
Paper A Mock Exam 9_ Attempt review.pdf.
Classroom Observation Tools for Teachers
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
Final Presentation General Medicine 03-08-2024.pptx
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Indian roads congress 037 - 2012 Flexible pavement
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Chinmaya Tiranga quiz Grand Finale.pdf
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Unit 4 Skeletal System.ppt.pptxopresentatiom
1_English_Language_Set_2.pdf probationary

Timer

  • 11. Modes of operationMode 0: INTERRUPT ON TERMINAL COUNT
  • 12. The output becomes a logic 0 when the control word is written
  • 13. Remains low even after count value loaded in counter
  • 14. Counter starts decrementing after falling edge of clock
  • 15. The OUT goes high upon reaching the terminal count & remains high till reloading
  • 16. OUT can be used as interrupt
  • 17. Writing a count register , when previous counting is in process  first byte when loaded stops the previous count,  second byte when loaded starts new count
  • 18. Gate high  normal counting
  • 19. Gate low  counting terminated and current count latched till GATE goes high againMode 0: INTERRUPT ON TERMINAL COUNT
  • 20. Mode 1: One-shot mode. monostablemultivibrator
  • 21. gate input is used as trigger input
  • 22. output remains high till the count is loaded
  • 23. After application of trigger, output goes low and remains low till count becomes zero
  • 24. Another count loaded, when output already low it does not disturb counting until a new trigger is applied at the gate
  • 25. New counting starts after new trigger pulseMode 1: One-shot mode
  • 26. Mode 2: RATE GENERATOR / DIVIDE BY N COUNTER
  • 27. When N is loaded as count  after N pulses  OUT goes low for only one clock cycle then, count N is reloaded  OUT becomes high for N clock pulses
  • 28. The number of clock pulses between the two low pulses is equal to the count loaded
  • 29. gate  logic 0  no counting
  • 30. Gate  logic 1  normal countingMode 3: SQUARE WAVE RATE GENERATORWhen count N loaded is even  output remains HIGH for half the count and LOW for the rest half of the count
  • 31. When count N loaded is odd  output remains HIGH for (N+1)/2 and low for (N-1)/2.
  • 33. Generates a continuous square-wave with G set to 1.
  • 34. If count is even, 50% duty cycle otherwise OUT is high 1 cycle longer.Mode 3: square wave generator
  • 35. Mode 4: Software triggered StrobeAfter mode is set output goes high
  • 36. When count is loaded counting down starts
  • 37. On reaching terminal count output goes low for only one clock cycle, and then again output goes HIGH
  • 38. The above said low pulse can be used as a strobe for interfacing MP with peripherals
  • 39. When GATE is LOW  counting is inhibited and count is latched
  • 40. If a new count is loaded while counting, previous counting stops and new counting started in next clock cycleMode 4: Software triggered Strobe
  • 41. 20Mode 5: Hardware triggered StrobeThis mode generates a strobe in response to the rising edge at the trigger
  • 42. Mode is used to generate a delayed strobe in response to an externally generated signal
  • 43. Once mode is programmed and counter loaded, OUT goes HIGH
  • 44. Counter starts counting after the rising edge of the trigger (GATE)
  • 45. The OUTPUT goes LOW for one clock period, when the terminal count is reached
  • 46. Output will not go LOW until the counter content becomes zero after the rising edge of any trigger
  • 47. GATE is used as trigger inputMode 5: Hardware triggered Strobe
  • 49. Read OperationsThere are three possible methods for reading the counters: a simple read operation
  • 50. the Counter Latch Command
  • 51. the Read-Back CommandSimple read operation: The Counter which is selected with the A1, A0 inputs, the CLK input of the selected Counter must be inhibited by using either the GATE input or external logic.
  • 52. Otherwise, the count may be in the process of changing when it is read, giving an undefined result.Counter Latch Command: SC0, SC1 bits select one of the three Counters
  • 53. two other bits, D5 and D4, distinguish this command from a Control Word
  • 54. If a Counter is latched and then, some time later, latched again before the count is read, the second Counter Latch Command is ignored.
  • 55. The count read will be the count at the time the first Counter Latch Command was issued.Read-back control command:The read-back control, word is used, when it is necessary for the contents of more than one counter to be read at a same time.Count : logic 0, select one of the Counter to be latchedStatus : logic 0, Status must be latched to be read status of a counter and is accessed by a read from that counter
  • 56. Status register:shows the state of the output pin
  • 57. check the counter is in NULL state (0) or not
  • 58. how the counter is programmed