SlideShare a Scribd company logo
1 of 12
8254 Timer8254 Timer
Features of 8254 Timer
It has 3 independent 16 bit down counters.
Counters can be programmed in 6 different modes.
Counting facility in both BCD and Binary number systems.
It has powerful command called READ BACK COMMAND which allows the
user to check the count value,programmed mode and current mode and
current status of the counter.
Operating frequency range is
For 8253:- upto 2.6 MHz
For 8254:- upto 10 MHz
8254 Functional Description
 Figure shows the pin-out of the 8254,
a higher-speed version of the 8253, and a diagram
of one of the three counters.
 Each timer contains:
 a CLK input which provides the basic operating frequency
to the timer
 a gate input pin which controls the timer in some modes
 an output (OUT) connection to obtain the output
of the timer
8254 Control word
8254 Programming
 Each counter may be programmed with a count of 1 to FFFFH.
 Minimum count is 1 all modes except 2 and 3 with minimum count of 2.
 Each counter has a program control word used to select the way the
counter operates.
 If two bytes are programmed, then the first byte (LSB) stops the count, and the
second byte (MSB) starts the counter with the new count.
 Mode 0: Interrupt on terminal count
- The output becomes a logic 0 when the control
word is written
- and remains there until N plus the number of
programmed counts
MODE 1:- HW triggered / programmable one shot.
The triggering must be done through the GATE input by sending a
0-to-1 pulse to it.
Steps: 1) Load the count register
2) A 0-to-1 pulse must be sent to the GATE
input to trigger the count.
3) In Mode 1, after sending the 0-to-1 pulse to GATE, OUT
becomes low and stays low for a duration of N*T, then
becomes high and stays high until the GATE is triggered
again.
4) If during the activation, a retriggered happened, then restart
the down counting.
Mode 2: Rate Generator (Divide-by-N
counter In Mode2, if GATE=1, OUT will be high for N*T, goes low only for
one clock pulse, then counter is reloaded automatically,
 The cycle is repeated until reprogrammed or G pin set to 0.
Mode 3: Square wave rate generator
 Mode 3: Generates a continuous square-wave with G set to 1.
 If count is even, 50% duty cycle otherwise OUT is high 1 cycle
longer
Mode 4: Software triggered strobe
 In Mode4, if GATE=1, the output will go high when loading the
count, it will stay high for duration N*T.
 After the count reaches zero, it becomes low for one clock pulse,
then goes high again and stays high until a new command word
or new count is loaded
 To repeat the strobe, the count must be reloaded
Mode 5: Hardware triggered strobe
 Similar to Mode4, except that the triggering must be
done with the GATE input
 The count starts only when a 0-to-1 pulse is sent to the
GATE input
 If GATE retriggered during the counting, it will restart
the down counting

More Related Content

What's hot

Minimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 MicroprocessorMinimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 Microprocessor
Nikhil Kumar
 
Timer
TimerTimer
Timer
Aisu
 

What's hot (20)

Difference b/w 8085 & 8086
Difference b/w 8085 & 8086Difference b/w 8085 & 8086
Difference b/w 8085 & 8086
 
8251 USART
8251 USART8251 USART
8251 USART
 
8259 programmable interrupt controller
8259 programmable interrupt controller8259 programmable interrupt controller
8259 programmable interrupt controller
 
8086 pin details
8086 pin details8086 pin details
8086 pin details
 
80286 microprocessor
80286 microprocessor80286 microprocessor
80286 microprocessor
 
IC 8253 - Microprocessor
IC 8253 - Microprocessor IC 8253 - Microprocessor
IC 8253 - Microprocessor
 
Switches and LEDs interface to the 8051 microcontroller
Switches and LEDs interface to the 8051 microcontrollerSwitches and LEDs interface to the 8051 microcontroller
Switches and LEDs interface to the 8051 microcontroller
 
Minimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 MicroprocessorMinimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 Microprocessor
 
8259 Interrupt Controller
8259 Interrupt Controller8259 Interrupt Controller
8259 Interrupt Controller
 
Programmable Timer 8253/8254
Programmable Timer 8253/8254Programmable Timer 8253/8254
Programmable Timer 8253/8254
 
Registers-shift register
Registers-shift registerRegisters-shift register
Registers-shift register
 
INTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORINTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSOR
 
Interrupts in 8051
Interrupts in 8051Interrupts in 8051
Interrupts in 8051
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 complete
 
8051 timer counter
8051 timer counter8051 timer counter
8051 timer counter
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkar
 
Timer
TimerTimer
Timer
 
BCD,GRAY and EXCESS 3 codes
BCD,GRAY and EXCESS 3 codesBCD,GRAY and EXCESS 3 codes
BCD,GRAY and EXCESS 3 codes
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
 
8086 modes
8086 modes8086 modes
8086 modes
 

Similar to 8254 timer - Microprocessor and interfacing

8255.pdf
8255.pdf8255.pdf
8255.pdf
someshdash1
 

Similar to 8254 timer - Microprocessor and interfacing (20)

8254 PIT
8254 PIT8254 PIT
8254 PIT
 
8254.pptx
8254.pptx8254.pptx
8254.pptx
 
unit 2 lect 6 AND 7 8254.pptx
unit 2 lect 6 AND 7 8254.pptxunit 2 lect 6 AND 7 8254.pptx
unit 2 lect 6 AND 7 8254.pptx
 
8253
82538253
8253
 
Interfacing with Timer IC.pptx interfacing with timer ic
Interfacing with Timer IC.pptx interfacing with timer icInterfacing with Timer IC.pptx interfacing with timer ic
Interfacing with Timer IC.pptx interfacing with timer ic
 
Peripheral 8245,16550&8237 dma controller
Peripheral 8245,16550&8237 dma controllerPeripheral 8245,16550&8237 dma controller
Peripheral 8245,16550&8237 dma controller
 
8253ppt
8253ppt8253ppt
8253ppt
 
5.programmable interval timer 8253
5.programmable interval timer 82535.programmable interval timer 8253
5.programmable interval timer 8253
 
8253,8254
8253,8254 8253,8254
8253,8254
 
8255-PPI MPMC text book for engineering.ppt
8255-PPI MPMC text book for engineering.ppt8255-PPI MPMC text book for engineering.ppt
8255-PPI MPMC text book for engineering.ppt
 
8255.pdf
8255.pdf8255.pdf
8255.pdf
 
UNIT 5.pptx
UNIT 5.pptxUNIT 5.pptx
UNIT 5.pptx
 
Microprocessor & Interfacing (Part-2) By Er. Swapnil V. Kaware
Microprocessor & Interfacing (Part-2) By Er. Swapnil V. KawareMicroprocessor & Interfacing (Part-2) By Er. Swapnil V. Kaware
Microprocessor & Interfacing (Part-2) By Er. Swapnil V. Kaware
 
timer counter (1).pptx
timer counter (1).pptxtimer counter (1).pptx
timer counter (1).pptx
 
UNIT 5 Interfacing and Mixed Signal Controller.pptx
UNIT 5 Interfacing and Mixed Signal Controller.pptxUNIT 5 Interfacing and Mixed Signal Controller.pptx
UNIT 5 Interfacing and Mixed Signal Controller.pptx
 
EC8691 - UNIT 5.pdf
EC8691 - UNIT 5.pdfEC8691 - UNIT 5.pdf
EC8691 - UNIT 5.pdf
 
3942936.ppt
3942936.ppt3942936.ppt
3942936.ppt
 
Training Report on embedded Systems and Robotics
Training Report on embedded  Systems and RoboticsTraining Report on embedded  Systems and Robotics
Training Report on embedded Systems and Robotics
 
20IT204-COA- Lecture 17.pptx
20IT204-COA- Lecture 17.pptx20IT204-COA- Lecture 17.pptx
20IT204-COA- Lecture 17.pptx
 
Assembler4
Assembler4Assembler4
Assembler4
 

More from Amitabh Shukla (8)

Network topologies
Network topologiesNetwork topologies
Network topologies
 
Optical receivers
Optical receiversOptical receivers
Optical receivers
 
Analog to Digital Converters
Analog to Digital ConvertersAnalog to Digital Converters
Analog to Digital Converters
 
Solar Cooling
Solar CoolingSolar Cooling
Solar Cooling
 
Programming with 8085-Microprocessor and interfacing
Programming with 8085-Microprocessor and interfacingProgramming with 8085-Microprocessor and interfacing
Programming with 8085-Microprocessor and interfacing
 
Dts i ppt
Dts i pptDts i ppt
Dts i ppt
 
Hydro power plant
Hydro power plantHydro power plant
Hydro power plant
 
Solar water heater
Solar water heaterSolar water heater
Solar water heater
 

Recently uploaded

FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 

Recently uploaded (20)

Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 

8254 timer - Microprocessor and interfacing

  • 2. Features of 8254 Timer It has 3 independent 16 bit down counters. Counters can be programmed in 6 different modes. Counting facility in both BCD and Binary number systems. It has powerful command called READ BACK COMMAND which allows the user to check the count value,programmed mode and current mode and current status of the counter. Operating frequency range is For 8253:- upto 2.6 MHz For 8254:- upto 10 MHz
  • 3.
  • 4. 8254 Functional Description  Figure shows the pin-out of the 8254, a higher-speed version of the 8253, and a diagram of one of the three counters.  Each timer contains:  a CLK input which provides the basic operating frequency to the timer  a gate input pin which controls the timer in some modes  an output (OUT) connection to obtain the output of the timer
  • 6. 8254 Programming  Each counter may be programmed with a count of 1 to FFFFH.  Minimum count is 1 all modes except 2 and 3 with minimum count of 2.  Each counter has a program control word used to select the way the counter operates.  If two bytes are programmed, then the first byte (LSB) stops the count, and the second byte (MSB) starts the counter with the new count.
  • 7.  Mode 0: Interrupt on terminal count - The output becomes a logic 0 when the control word is written - and remains there until N plus the number of programmed counts
  • 8. MODE 1:- HW triggered / programmable one shot. The triggering must be done through the GATE input by sending a 0-to-1 pulse to it. Steps: 1) Load the count register 2) A 0-to-1 pulse must be sent to the GATE input to trigger the count. 3) In Mode 1, after sending the 0-to-1 pulse to GATE, OUT becomes low and stays low for a duration of N*T, then becomes high and stays high until the GATE is triggered again. 4) If during the activation, a retriggered happened, then restart the down counting.
  • 9. Mode 2: Rate Generator (Divide-by-N counter In Mode2, if GATE=1, OUT will be high for N*T, goes low only for one clock pulse, then counter is reloaded automatically,  The cycle is repeated until reprogrammed or G pin set to 0.
  • 10. Mode 3: Square wave rate generator  Mode 3: Generates a continuous square-wave with G set to 1.  If count is even, 50% duty cycle otherwise OUT is high 1 cycle longer
  • 11. Mode 4: Software triggered strobe  In Mode4, if GATE=1, the output will go high when loading the count, it will stay high for duration N*T.  After the count reaches zero, it becomes low for one clock pulse, then goes high again and stays high until a new command word or new count is loaded  To repeat the strobe, the count must be reloaded
  • 12. Mode 5: Hardware triggered strobe  Similar to Mode4, except that the triggering must be done with the GATE input  The count starts only when a 0-to-1 pulse is sent to the GATE input  If GATE retriggered during the counting, it will restart the down counting