MP 8253,54 Timer Slides
MP 8253,54 Timer Slides
A 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
OUT: can be square wave, or one shot GATE: Enable (high) or disable (low) the counter
Example:
8259
8259 is Programmable Interrupt Controller (PIC) It is a tool for managing the interrupt requests.
Pin description
8-bit bi-directional data bus, one address line is needed,
PIC has two control registers to be programmed, you can think of them as two output ports or two memory location.
The direction of data flow is controlled by RD and WR. CS is as usual connected to the output of the address decoder. Interrupt requests are output on INT which is connected to the INTR of the processor. Int. acknowledgment is received by INTA. IR0-IR7 allow 8 separate interrupt requests to be inputted to the PIC. sp/en=1 for master , sp/en=0 for slave. CAS0-3 inputs/outputs are used when more than one PIC to cascaded.
FIGURE 9-4
Block diagram and pin definitions for the 8259A Programmable Interrupt Controller (PIC). (Courtesy of Intel Corporation.)
John Uffenbeck
Copyright 2002 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.
OPERATION
PIC is to be initialized and programmed to control its operation. The operation in simple words:
when an interrupt occurs , the PIC determines the highest priority, activates the processor via its INTR input, and sends the type number onto the data bus when the processor acknowledges the interrupt.
Priority:
What is used in PC is fully nested mode. That is the lowest numbered IRQ input has highest priority. Lower priority interrupts will not be forwarded to the processor until the higher priority interrupts have been serviced.
John Uffenbeck
Copyright 2002 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.
FIGURE 9-13 8259A operation control word format. (Courtesy of Intel Corporation.)
John Uffenbeck
Copyright 2002 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights reserved.