SlideShare a Scribd company logo
1 of 24
8253 / 8254 Timer
• PIT (programmable Interval Timer), used to
bring down the frequency to the desired level
• Three counters inside 8253/8254. Each works
independently and is programmed separately to
divide the input frequency by a number from 1
to 65536
• There are 4 port address needed for a single
8253/8254, given by A0, A1, and CS
CS A1 A0 Select
0 0 0 Counter 0
0 0 1 Counter 1
0 1 0 Counter 2
0 1 1 Control Reg.
Engr 4862 Microprocessors
8253 / 8254 Timer
8254/8253 Programmable
Interval Timer
Engr 4862 Microprocessors
8253 / 8254 Timer
8253 / 8254 Timer
8253 / 8254 Timer
• Each of the three counter has 3 pins associated
– CLK: input clock frequency
• A square wave of 33% duty cycle
• 8253: 0 ~ 2 MHz, 8254: 0 ~ 8 MHz
– OUT: can be square wave, or one shot
– GATE: Enable (high) or disable (low) the counter
• Data Pins: (D0 ~ D7)
– Allow the CPU to access various registers inside the
8253/54 for both read and write operations. RD and
WR are connected to IOR and IOW of control bus.
8253 / 8254 Timer
• Each of the three counters must be programmed
separately
• Control byte must be first written into the
control register. The 8253/54 must be initialized
before use
• The programmer can not only write the value of
the divisor into the 8253/54, but read the content
of the counter at any given time as well
• All counters are down counters.
8253 / 8254 Timer
• To program a given counter to divide the CLK
input frequency, one must send the divisor to
that specific counter’s register.
• Although all three counters share the same
control register, the divisor registers are separate
for each counter
• Example: given the port addresses for 8253/54:
Counter 0: 94H Counter 1: 95H
Counter 2: 96H Control Reg: 97H
8253 / 8254 Timer
• Task1: program counter 0 for binary counter for
mode 3 to divide CLK0 by number 4282 (BCD)
MOV AL, 0011 0111B
OUT 97H, AL
MOV AX, 4282H (BCD needs H)
OUT 94H, AL (Low Byte)
MOV AL, AH
OUT 94H, AL (High Byte)
• OUT0 = CLK0 / 4282
Shape of the 8253/54 Output
• Given CLK = 1.193 MHz, the clock period of
input frequency is 838 ns
• If the number N loaded into the counter is even,
both high and low pulse are the same length,
which is N/2 * 838 ns
• If the number N loaded into the counter is odd,
the high pulse is (N+1)/2 * 838 ns and the low
pulse is (N–1)/2 * 838 ns
•  If N is odd, the high portion of the output
square wave is slightly wider than the low portion
8253/54 Operation Modes
• Mode 0: Interrupt on terminal count
– The output is initially low, and remain low for the
duration of the count if GATE=1. When the terminal
count is reached, the output will go high and remain
high until a new control word or new count number
is loaded
• Width of low pulse = N * T, where T is clock period
– Example: GATE=1 and CLK = 1 MHz
Clock count N = 1000
8253/54 Operation Modes
• Mode 0: Interrupt on terminal count
– If GATE becomes low at the middle of the count, the
count will stop and the output will be low. The count
resumes when the GATE becomes high again  This
in effect adds to the total time the output is low.
• 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
8253/54 Operation Modes
• Mode 1: HW triggered / programmable one shot
– 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
– 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, and the process continues
indefinitely.  Whole period: (N+1) * T
8253/54 Operation Modes
• Mode 3: Square wave rate generator
– Most commonly used
• Mode 4: Software triggered strobe
– Similar to Mode2, except that the counter is not
reloaded automatically
– 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
8253/54 Operation Modes
• 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
8253 / 8254 Timer
8253 / 8254 Timer
Engr 4862 Microprocessors
8253 / 8254 Timer
8253 / 8254 Timer
8253 / 8254 Timer
8253 / 8254 Timer
8253 / 8254 Timer
8253 / 8254 Timer
8253 / 8254 Timer

More Related Content

What's hot

Programmableperipheralinterface 8255 ppt
Programmableperipheralinterface 8255 pptProgrammableperipheralinterface 8255 ppt
Programmableperipheralinterface 8255 pptsharan Kumar
 
3.programmable interrupt controller 8259
3.programmable interrupt controller 82593.programmable interrupt controller 8259
3.programmable interrupt controller 8259MdFazleRabbi18
 
I/O system in intel 80386 microcomputer architecture
I/O system in intel 80386 microcomputer architectureI/O system in intel 80386 microcomputer architecture
I/O system in intel 80386 microcomputer architecturekavitha muneeshwaran
 
8086 modes
8086 modes8086 modes
8086 modesPDFSHARE
 
8254 timer - Microprocessor and interfacing
8254 timer - Microprocessor and interfacing8254 timer - Microprocessor and interfacing
8254 timer - Microprocessor and interfacingAmitabh Shukla
 
Architecture of 80286 microprocessor
Architecture of 80286 microprocessorArchitecture of 80286 microprocessor
Architecture of 80286 microprocessorSyed Ahmed Zaki
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notesDr.YNM
 
IC 8253 - Microprocessor
IC 8253 - Microprocessor IC 8253 - Microprocessor
IC 8253 - Microprocessor Vatsal N Shah
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkarSAQUIB AHMAD
 
8086 in minimum mode
8086 in minimum mode8086 in minimum mode
8086 in minimum modeSridari Iyer
 
8051 microcontroller features
8051 microcontroller features8051 microcontroller features
8051 microcontroller featuresTech_MX
 
5.programmable interval timer 8253
5.programmable interval timer 82535.programmable interval timer 8253
5.programmable interval timer 8253MdFazleRabbi18
 

What's hot (20)

8251 USART
8251 USART8251 USART
8251 USART
 
Programmableperipheralinterface 8255 ppt
Programmableperipheralinterface 8255 pptProgrammableperipheralinterface 8255 ppt
Programmableperipheralinterface 8255 ppt
 
8253ppt
8253ppt8253ppt
8253ppt
 
3.programmable interrupt controller 8259
3.programmable interrupt controller 82593.programmable interrupt controller 8259
3.programmable interrupt controller 8259
 
I/O system in intel 80386 microcomputer architecture
I/O system in intel 80386 microcomputer architectureI/O system in intel 80386 microcomputer architecture
I/O system in intel 80386 microcomputer architecture
 
8086 modes
8086 modes8086 modes
8086 modes
 
Interfacing 8255
Interfacing 8255Interfacing 8255
Interfacing 8255
 
8254 timer - Microprocessor and interfacing
8254 timer - Microprocessor and interfacing8254 timer - Microprocessor and interfacing
8254 timer - Microprocessor and interfacing
 
Architecture of 80286 microprocessor
Architecture of 80286 microprocessorArchitecture of 80286 microprocessor
Architecture of 80286 microprocessor
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notes
 
8155 PPI
8155 PPI8155 PPI
8155 PPI
 
8255 presentaion.ppt
8255 presentaion.ppt8255 presentaion.ppt
8255 presentaion.ppt
 
IC 8253 - Microprocessor
IC 8253 - Microprocessor IC 8253 - Microprocessor
IC 8253 - Microprocessor
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkar
 
Direct Memory Access
Direct Memory AccessDirect Memory Access
Direct Memory Access
 
DMA and DMA controller
DMA and DMA controllerDMA and DMA controller
DMA and DMA controller
 
8086 in minimum mode
8086 in minimum mode8086 in minimum mode
8086 in minimum mode
 
8051 microcontroller features
8051 microcontroller features8051 microcontroller features
8051 microcontroller features
 
5.programmable interval timer 8253
5.programmable interval timer 82535.programmable interval timer 8253
5.programmable interval timer 8253
 
8254 presentation
8254 presentation8254 presentation
8254 presentation
 

Similar to 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 icSunilAcharya37
 
8254 Programmable Interval Timer by vijay
8254 Programmable Interval Timer by vijay8254 Programmable Interval Timer by vijay
8254 Programmable Interval Timer by vijayVijay Kumar
 
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.pptxDrVikasMahor
 
Timer
TimerTimer
TimerAisu
 
KLEA( ENERGY ANALYZER ) & ECRAS ( MULTIMETER ) -KLEMSAN ELECTRIC ELECTRONIC
KLEA( ENERGY ANALYZER ) & ECRAS ( MULTIMETER ) -KLEMSAN ELECTRIC ELECTRONICKLEA( ENERGY ANALYZER ) & ECRAS ( MULTIMETER ) -KLEMSAN ELECTRIC ELECTRONIC
KLEA( ENERGY ANALYZER ) & ECRAS ( MULTIMETER ) -KLEMSAN ELECTRIC ELECTRONICdanto .
 
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.pptkhushiduppala
 
timer counter (1).pptx
timer counter (1).pptxtimer counter (1).pptx
timer counter (1).pptxSujalKumar73
 
GPIO In Arm cortex-m4 tiva-c
GPIO In Arm cortex-m4 tiva-cGPIO In Arm cortex-m4 tiva-c
GPIO In Arm cortex-m4 tiva-cZakaria Gomaa
 
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.pptxGowrishankar C
 
8051 microcontroller and it’s interface
8051 microcontroller and it’s interface8051 microcontroller and it’s interface
8051 microcontroller and it’s interfaceAbhishek Choksi
 

Similar to 8253 (20)

8254 PIT
8254 PIT8254 PIT
8254 PIT
 
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
 
8254 Programmable Interval Timer by vijay
8254 Programmable Interval Timer by vijay8254 Programmable Interval Timer by vijay
8254 Programmable Interval Timer by vijay
 
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
 
8254.pptx
8254.pptx8254.pptx
8254.pptx
 
Timer
TimerTimer
Timer
 
8051e
8051e8051e
8051e
 
8155 Basic Concepts
8155 Basic Concepts8155 Basic Concepts
8155 Basic Concepts
 
8253,8254
8253,8254 8253,8254
8253,8254
 
3942936.ppt
3942936.ppt3942936.ppt
3942936.ppt
 
8255.pdf
8255.pdf8255.pdf
8255.pdf
 
KLEA( ENERGY ANALYZER ) & ECRAS ( MULTIMETER ) -KLEMSAN ELECTRIC ELECTRONIC
KLEA( ENERGY ANALYZER ) & ECRAS ( MULTIMETER ) -KLEMSAN ELECTRIC ELECTRONICKLEA( ENERGY ANALYZER ) & ECRAS ( MULTIMETER ) -KLEMSAN ELECTRIC ELECTRONIC
KLEA( ENERGY ANALYZER ) & ECRAS ( MULTIMETER ) -KLEMSAN ELECTRIC ELECTRONIC
 
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
 
8254-timer.ppt
8254-timer.ppt8254-timer.ppt
8254-timer.ppt
 
timer counter (1).pptx
timer counter (1).pptxtimer counter (1).pptx
timer counter (1).pptx
 
UNIT 5.pptx
UNIT 5.pptxUNIT 5.pptx
UNIT 5.pptx
 
GPIO In Arm cortex-m4 tiva-c
GPIO In Arm cortex-m4 tiva-cGPIO In Arm cortex-m4 tiva-c
GPIO In Arm cortex-m4 tiva-c
 
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
 
8051 microcontroller and it’s interface
8051 microcontroller and it’s interface8051 microcontroller and it’s interface
8051 microcontroller and it’s interface
 
Peripheral 8245,16550&8237 dma controller
Peripheral 8245,16550&8237 dma controllerPeripheral 8245,16550&8237 dma controller
Peripheral 8245,16550&8237 dma controller
 

More from kpkarthi2001

IOT_Embedded_Systems_industrail applications.ppt
IOT_Embedded_Systems_industrail applications.pptIOT_Embedded_Systems_industrail applications.ppt
IOT_Embedded_Systems_industrail applications.pptkpkarthi2001
 
C2S-Cat_I-Proposal-template_Institution_Startup-MSME_Details.pptx
C2S-Cat_I-Proposal-template_Institution_Startup-MSME_Details.pptxC2S-Cat_I-Proposal-template_Institution_Startup-MSME_Details.pptx
C2S-Cat_I-Proposal-template_Institution_Startup-MSME_Details.pptxkpkarthi2001
 
LIGHTNING_FLASH_Real_Time_Forecast_03032023_00UTC.pptx
LIGHTNING_FLASH_Real_Time_Forecast_03032023_00UTC.pptxLIGHTNING_FLASH_Real_Time_Forecast_03032023_00UTC.pptx
LIGHTNING_FLASH_Real_Time_Forecast_03032023_00UTC.pptxkpkarthi2001
 
Cyclone Predication using Machine Learing
Cyclone Predication using Machine LearingCyclone Predication using Machine Learing
Cyclone Predication using Machine Learingkpkarthi2001
 
MICROPROCESSORS AND ITS APPLICATIONS UNIT-I.ppt
MICROPROCESSORS AND ITS APPLICATIONS UNIT-I.pptMICROPROCESSORS AND ITS APPLICATIONS UNIT-I.ppt
MICROPROCESSORS AND ITS APPLICATIONS UNIT-I.pptkpkarthi2001
 
GB Dean(III) - 27.04.23 ppt.pptx
GB Dean(III)  - 27.04.23 ppt.pptxGB Dean(III)  - 27.04.23 ppt.pptx
GB Dean(III) - 27.04.23 ppt.pptxkpkarthi2001
 
DDI0029G_7TDMI_R3_trm.pdf
DDI0029G_7TDMI_R3_trm.pdfDDI0029G_7TDMI_R3_trm.pdf
DDI0029G_7TDMI_R3_trm.pdfkpkarthi2001
 
registration-customers.pdf
registration-customers.pdfregistration-customers.pdf
registration-customers.pdfkpkarthi2001
 

More from kpkarthi2001 (9)

IOT_Embedded_Systems_industrail applications.ppt
IOT_Embedded_Systems_industrail applications.pptIOT_Embedded_Systems_industrail applications.ppt
IOT_Embedded_Systems_industrail applications.ppt
 
C2S-Cat_I-Proposal-template_Institution_Startup-MSME_Details.pptx
C2S-Cat_I-Proposal-template_Institution_Startup-MSME_Details.pptxC2S-Cat_I-Proposal-template_Institution_Startup-MSME_Details.pptx
C2S-Cat_I-Proposal-template_Institution_Startup-MSME_Details.pptx
 
LIGHTNING_FLASH_Real_Time_Forecast_03032023_00UTC.pptx
LIGHTNING_FLASH_Real_Time_Forecast_03032023_00UTC.pptxLIGHTNING_FLASH_Real_Time_Forecast_03032023_00UTC.pptx
LIGHTNING_FLASH_Real_Time_Forecast_03032023_00UTC.pptx
 
Cyclone Predication using Machine Learing
Cyclone Predication using Machine LearingCyclone Predication using Machine Learing
Cyclone Predication using Machine Learing
 
figure.ppt
figure.pptfigure.ppt
figure.ppt
 
MICROPROCESSORS AND ITS APPLICATIONS UNIT-I.ppt
MICROPROCESSORS AND ITS APPLICATIONS UNIT-I.pptMICROPROCESSORS AND ITS APPLICATIONS UNIT-I.ppt
MICROPROCESSORS AND ITS APPLICATIONS UNIT-I.ppt
 
GB Dean(III) - 27.04.23 ppt.pptx
GB Dean(III)  - 27.04.23 ppt.pptxGB Dean(III)  - 27.04.23 ppt.pptx
GB Dean(III) - 27.04.23 ppt.pptx
 
DDI0029G_7TDMI_R3_trm.pdf
DDI0029G_7TDMI_R3_trm.pdfDDI0029G_7TDMI_R3_trm.pdf
DDI0029G_7TDMI_R3_trm.pdf
 
registration-customers.pdf
registration-customers.pdfregistration-customers.pdf
registration-customers.pdf
 

Recently uploaded

result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 

Recently uploaded (20)

result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 

8253

  • 1. 8253 / 8254 Timer • PIT (programmable Interval Timer), used to bring down the frequency to the desired level • Three counters inside 8253/8254. Each works independently and is programmed separately to divide the input frequency by a number from 1 to 65536 • There are 4 port address needed for a single 8253/8254, given by A0, A1, and CS CS A1 A0 Select 0 0 0 Counter 0 0 0 1 Counter 1 0 1 0 Counter 2 0 1 1 Control Reg.
  • 5. 8253 / 8254 Timer
  • 6. 8253 / 8254 Timer • Each of the three counter has 3 pins associated – CLK: input clock frequency • A square wave of 33% duty cycle • 8253: 0 ~ 2 MHz, 8254: 0 ~ 8 MHz – OUT: can be square wave, or one shot – GATE: Enable (high) or disable (low) the counter • Data Pins: (D0 ~ D7) – Allow the CPU to access various registers inside the 8253/54 for both read and write operations. RD and WR are connected to IOR and IOW of control bus.
  • 7. 8253 / 8254 Timer • Each of the three counters must be programmed separately • Control byte must be first written into the control register. The 8253/54 must be initialized before use • The programmer can not only write the value of the divisor into the 8253/54, but read the content of the counter at any given time as well • All counters are down counters.
  • 8. 8253 / 8254 Timer • To program a given counter to divide the CLK input frequency, one must send the divisor to that specific counter’s register. • Although all three counters share the same control register, the divisor registers are separate for each counter • Example: given the port addresses for 8253/54: Counter 0: 94H Counter 1: 95H Counter 2: 96H Control Reg: 97H
  • 9. 8253 / 8254 Timer • Task1: program counter 0 for binary counter for mode 3 to divide CLK0 by number 4282 (BCD) MOV AL, 0011 0111B OUT 97H, AL MOV AX, 4282H (BCD needs H) OUT 94H, AL (Low Byte) MOV AL, AH OUT 94H, AL (High Byte) • OUT0 = CLK0 / 4282
  • 10. Shape of the 8253/54 Output • Given CLK = 1.193 MHz, the clock period of input frequency is 838 ns • If the number N loaded into the counter is even, both high and low pulse are the same length, which is N/2 * 838 ns • If the number N loaded into the counter is odd, the high pulse is (N+1)/2 * 838 ns and the low pulse is (N–1)/2 * 838 ns •  If N is odd, the high portion of the output square wave is slightly wider than the low portion
  • 11. 8253/54 Operation Modes • Mode 0: Interrupt on terminal count – The output is initially low, and remain low for the duration of the count if GATE=1. When the terminal count is reached, the output will go high and remain high until a new control word or new count number is loaded • Width of low pulse = N * T, where T is clock period – Example: GATE=1 and CLK = 1 MHz Clock count N = 1000
  • 12. 8253/54 Operation Modes • Mode 0: Interrupt on terminal count – If GATE becomes low at the middle of the count, the count will stop and the output will be low. The count resumes when the GATE becomes high again  This in effect adds to the total time the output is low. • 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
  • 13. 8253/54 Operation Modes • Mode 1: HW triggered / programmable one shot – 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 – 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, and the process continues indefinitely.  Whole period: (N+1) * T
  • 14. 8253/54 Operation Modes • Mode 3: Square wave rate generator – Most commonly used • Mode 4: Software triggered strobe – Similar to Mode2, except that the counter is not reloaded automatically – 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
  • 15. 8253/54 Operation Modes • 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
  • 16. 8253 / 8254 Timer
  • 17. 8253 / 8254 Timer
  • 19. 8253 / 8254 Timer
  • 20. 8253 / 8254 Timer
  • 21. 8253 / 8254 Timer
  • 22. 8253 / 8254 Timer
  • 23. 8253 / 8254 Timer
  • 24. 8253 / 8254 Timer