![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
semiconductor 4-252 august 1996 82c59a cmos priority interrupt controller features ? 12.5mhz, 8mhz and 5mhz versions available - 12.5mhz operation . . . . . . . . . . . . . . . . . . . 82c59a-12 - 8mhz operation . . . . . . . . . . . . . . . . . . . . . . . 82c59a - 5mhz operation . . . . . . . . . . . . . . . . . . . . . . 82c59a-5 ? high speed, no wait-state operation with 12.5mhz 80c286 and 8mhz 80c86/88 ? pin compatible with nmos 8259a ? 80c86/88/286 and 8080/85/86/88/286 compatible ? eight-level priority controller, expandable to 64 levels ? programmable interrupt modes ? individual request mask capability ? fully static design ? fully ttl compatible ? low power operation - iccsb . . . . . . . . . . . . . . . . . . . . . . . . . 10 m a maximum - iccop . . . . . . . . . . . . . . . . . . . . . 1ma/mhz maximum ? single 5v power supply ? operating temperature ranges - c82c59a . . . . . . . . . . . . . . . . . . . . . . . . .0 o c to +70 o c - i82c59a . . . . . . . . . . . . . . . . . . . . . . . . -40 o c to +85 o c - m82c59a . . . . . . . . . . . . . . . . . . . . . . -55 o c to +125 o c description the harris 82c59a is a high performance cmos priority interrupt controller manufactured using an advanced 2 m m cmos process. the 82c59a is designed to relieve the sys- tem cpu from the task of polling in a multilevel priority system. the high speed and industry standard con?guration of the 82c59a make it compatible with micro- processors such as 80c286, 80286, 80c86/88, 8086/88, 8080/85 and nsc800. the 82c59a can handle up to eight vectored priority inter- rupting sources and is cascadable to 64 without additional circuitry. individual interrupting sources can be masked or prioritized to allow custom system con?guration. two modes of operation make the 82c59a compatible with both 8080/85 and 80c86/88/286 formats. static cmos circuit design ensures low operating power. the harris advanced cmos process results in performance equal to or greater than existing equivalent products at a fraction of the power. ordering information package temperature range 5mhz 8mhz 12.5mhz pkg. no. plastic dip 0 o c to +70 o c cp82c59a-5 cp82c59a cp82c59a-12 e28.6 -40 o c to +85 o c ip82c59a-5 ip82c59a ip82c59a-12 e28.6 plcc 0 o c to +70 o c cs82c59a-5 cs82c59a cs82c59a-12 n28.45 -40 o c to +85 o c is82c59a-5 is82c59a is82c59a-12 n28.45 cerdip 0 o c to +70 o c cd82c59a-5 cd82c59a cd82c59a-12 f28.6 -40 o c to +85 o c id82c59a-5 id82c59a id82c59a-12 f28.6 -55 o c to +125 o c md82c59a-5/b md82c59a/b md82c59a-12/b f28.6 smd# 5962-8501601ya 5962-8501602ya - f28.6 lcc -55 o c to +125 o c mr82c59a-5/b mr82c59a/b mr82c59a-12/b j28.a smd# 5962-85016013A 5962-85016023a - j28.a soic 0 o c to +70 o c cm82c59a-5 cm82c59a cm82c59a-12 m28.3 caution: these devices are sensitive to electrostatic discharge. users should follow proper ic handling procedures. copyright ? harris corporation 1996 file number 2784.2
4-253 functional diagram pinouts 28 lead dip top view 28 lead lcc top view pin description d7 - d0 data bus (bidirectional) rd read input wr write input a0 command select address cs chip select cas 2 - cas 0 cascade lines sp/ en slave program input enable int interrupt output int a interrupt acknowledge input ir0 - ir7 interrupt request inputs cs wr rd d7 d6 d5 d4 d3 d2 d1 d0 cas 0 cas 1 gnd v cc int a ir7 ir6 ir5 ir3 ir1 ir0 int sp/ en cas 2 a0 ir4 ir2 28 27 26 25 24 23 22 21 20 19 18 17 16 15 1 2 3 4 5 6 7 8 9 10 11 12 13 14 23 24 25 22 21 20 19 11 3 2 1 4 14 15 16 17 18 12 13 28 27 26 10 5 6 7 8 9 d7 v cc a0 rd wr cs int a d6 d5 d4 d3 d2 d1 d0 ir7 ir6 ir5 ir4 ir3 ir2 ir1 cas 0 ir0 cas 1 gnd cas 2 sp/ en int priority resolver ir0 ir1 ir2 ir3 ir4 ir5 ir6 ir7 interrupt request reg (irr) interrupt mask reg (imr) control logic internal bus int data bus buffer cascade buffer comparator cas 0 cas 1 cas 2 read/ write logic sp/ en wr rd int a in - service reg (isr) cs d 7 -d 0 a 0 figure 1. 82c59a 4-254 functional description interrupts in microcomputer systems microcomputer system design requires that i/o devices such as keyboards, displays, sensors and other components receive servicing in an ef?cient manner so that large amounts of the total system tasks can be assumed by the microcomputer with little or no effect on throughput. the most common method of servicing such devices is the polled approach. this is where the processor must test each device in sequence and in effect ask each one if it needs servicing. it is easy to see that a large portion of the main program is looping through this continuous polling cycle and that such a method would have a serious, detrimental effect on system throughput, thus, limiting the tasks that could be assumed by the microcomputer and reducing the cost effec- tiveness of using such devices. pin description symbol pin number type description v cc 28 i v cc : the +5v power supply pin. a 0.1 m f capacitor between pins 28 and 14 is recommended for decoupling. gnd 14 i ground cs 1 i chip select: a low on this pin enables rd and wr communications between the cpu and the 82c59a. int a functions are independent of cs. wr 2 i write: a low on this pin when cs is low enables the 82c59a to accept command words from the cpu. rd 3 i read: a low on this pin when cs is low enables the 82c59a to release status onto the data bus for the cpu. d7 - d0 4 - 11 i/o bidirectional data bus: control, status, and interrupt-vector information is transferred via this bus. cas0 - cas2 12, 13, 15 i/o cascade lines: the cas lines form a private 82c59a bus to control a multiple 82c59a struc- ture. these pins are outputs for a master 82c59a and inputs for a slave 82c59a. sp/ en 16 i/o slave program/enable buffer: this is a dual function pin. when in the buffered mode it can be used as an output to control buffer transceivers ( en). when not in the buffered mode it is used as an input to designate a master ( sp = 1) or slave ( sp = 0). int 17 o interrupt: this pin goes high whenever a valid interrupt request is asserted. it is used to inter- rupt the cpu, thus, it is connected to the cpu's interrupt pin. ir0 - ir7 18 - 25 i interrupt requests: asynchronous inputs. an interrupt request is executed by raising an ir input (low to high), and holding it high until it is acknowledged (edge triggered mode), or just by a high level on an ir input (level triggered mode). internal pull-up resistors are implemented on ir0 - 7. int a 26 i interrupt acknowledge: this pin is used to enable 82c59a interrupt-vector data onto the data bus by a sequence of interrupt acknowledge pulses issued by the cpu. a0 27 i address line: this pin acts in conjunction with the cs, wr, and rd pins. it is used by the 82c59a to decipher various command words the cpu writes and status the cpu wishes to read. it is typically connected to the cpu a0 address line (a1 for 80c86/88/286). rom i/o (n) i/o (2) i/o (1) ram cpu cpu - driven multiplexer figure 2. polled method 82c59a 4-255 a more desirable method would be one that would allow the microprocessor to be executing its main program and only stop to service peripheral devices when it is told to do so by the device itself. in effect, the method would provide an external asynchronous input that would inform the processor that it should complete whatever instruction that is currently being executed and fetch a new routine that will service the requesting device. once this servicing is complete, however, the processor would resume exactly where it left off. this is the interrupt-driven method. it is easy to see that sys- tem throughput would drastically increase, and thus, more tasks could be assumed by the microcomputer to further enhance its cost effectiveness. the programmable interrupt controller (plc) functions as an overall manager in an interrupt-driven system. it accepts requests from the peripheral equipment, determines which of the incoming requests is of the highest importance (prior- ity), ascertains whether the incoming request has a higher priority value than the level currently being serviced, and issues an interrupt to the cpu based on this determination. each peripheral device or structure usually has a special program or routine that is associated with its speci?c func- tional or operational requirements; this is referred to as a service routine. the plc, after issuing an interrupt to the cpu, must somehow input information into the cpu that can point the program counter to the service routine associ- ated with the requesting device. this pointer is an address in a vectoring table and will often be referred to, in this docu- ment, as vectoring data. 82c59a functional description the 82c59a is a device speci?cally designed for use in real time, interrupt driven microcomputer systems. it manages eight levels of requests and has built-in features for expand- ability to other 82c59as (up to 64 levels). it is programmed by system software as an i/o peripheral. a selection of prior- ity modes is available to the programmer so that the manner in which the requests are processed by the 82c59a can be con?gured to match system requirements. the priority modes can be changed or recon?gured dynamically at any time during main program operation. this means that the complete interrupt structure can be de?ned as required, based on the total system environment. interrupt request register (irr) and in-service register (isr) the interrupts at the ir input lines are handled by two registers in cascade, the interrupt request register (lrr) and the in- service register (lsr). the irr is used to indicate all the inter- rupt levels which are requesting service, and the isr is used to store all the interrupt levels which are currently being serviced. rom i/o (2) ram cpu int i/o (1) i/o (n) pic figure 3. interrupt method ir0 ir1 ir2 cascade buffer comparator read/ write logic data bus buffer in service reg (isr) priority resolver interrupt mask reg (imr) interrupt request reg (irr) control logic int int a ir3 ir4 ir5 ir6 ir7 cas 0 cas 1 cas 2 rd wr a 0 sp/ en cs d 7 - d 0 internal bus figure 4. 82c59a functional diagram 82c59a 4-256 priority resolver this logic block determines the priorities of the bits set in the lrr. the highest priority is selected and strobed into the cor- responding bit of the lsr during the int a sequence. interrupt mask register (imr) the lmr stores the bits which disable the interrupt lines to be masked. the imr operates on the output of the irr. masking of a higher priority input will not affect the interrupt request lines of lower priority. interrupt (int) this output goes directly to the cpu interrupt input. the voh level on this line is designed to be fully compatible with the 8080, 8085, 8086/88, 80c86/88, 80286, and 80c286 input levels. interrupt acknowledge ( int a) int a pulses will cause the 82c59a to release vectoring information onto the data bus. the format of this data depends on the system mode ( m pm) of the 82c59a. data bus buffer this 3-state, bidirectional 8-bit buffer is used to interface the 82c59a to the system data bus. control words and status information are transferred through the data bus buffer. read/write control logic the function of this block is to accept output commands from the cpu. it contains the initialization command word (lcw) registers and operation command word (ocw) registers which store the various control formats for device operation. this function block also allows the status of the 82c59a to be transferred onto the data bus. chip select ( cs) a low on this input enables the 82c59a. no reading or writing of the device will occur unless the device is selected. write ( wr) a low on this input enables the cpu to write control words (lcws and ocws) to the 82c59a. read ( rd) a low on this input enables the 82c59a to send the status of the interrupt request register (lrr), in-service register (lsr), the interrupt mask register (lmr), or the interrupt level (in the poll mode) onto the data bus. a0 this input signal is used in conjunction with wr and rd sig- nals to write commands into the various command registers, as well as to read the various status registers of the chip. this line can be tied directly to one of the system address lines. the cascade buffer/comparator this function block stores and compares the ids of all 82c59as used in the system. the associated three i/o pins (cas0 - 2) are outputs when the 82c59a is used as a mas- ter and are inputs when the 82c59a is used as a slave. as a master, the 82c59a sends the id of the interrupting slave device onto the cas0 - 2 lines. the slave, thus selected will send its preprogrammed subroutine address onto the data bus during the next one or two consecutive int a pulses. (see section cascading the 82c59a.) interrupt sequence the powerful features of the 82c59a in a microcomputer system are its programmability and the interrupt routine addressing capability. the latter allows direct or indirect jumping to the speci?ed interrupt routine requested without any polling of the interrupting devices. the normal sequence of events during an interrupt depends on the type of cpu being used. these events occur in an 8080/8085 system: 1. one or more of the interrupt request lines (ir0 - ir7) are raised high, setting the corresponding irr bit(s). 2. the 82c59a evaluates those requests in the priority resolver and sends an interrupt (int) to the cpu, if appropriate. 3. the cpu acknowledges the lnt and responds with an int a pulse. 4. upon receiving an lnt a from the cpu group, the highest priority lsr bit is set, and the corresponding lrr bit is reset. the 82c59a will also release a call instruction code (11001101) onto the 8-bit data bus through d0 - d7. 5. this call instruction will initiate two additional int a pulses to be sent to 82c59a from the cpu group. 6. these two int a pulses allow the 82c59a to release its preprogrammed subroutine address onto the data bus. the lower 8-bit address is released at the ?rst int a pulse and the higher 8-bit address is released at the second int a pulse. 7. this completes the 3-byte call instruction released by the 82c59a. in the aeoi mode, the lsr bit is reset at the end of the third int a pulse. otherwise, the lsr bit remains set until an appropriate eoi command is issued at the end of the interrupt sequence. the events occurring in an 80c86/88/286 system are the same until step 4. 4. the 82c59a does not drive the data bus during the ?rst int a pulse. 5. the 80c86/88/286 cpu will initiate a second int a pulse. during this int a pulse, the appropriate isr bit is set and the corresponding bit in the irr is reset. the 82c59a outputs the 8-bit pointer onto the data bus to be read by the cpu. 82c59a 4-257 6. this completes the interrupt cycle. in the aeoi mode, the isr bit is reset at the end of the second int a pulse. oth- erwise, the isr bit remains set until an appropriate eoi command is issued at the end of the interrupt subroutine. if no interrupt request is present at step 4 of either sequence (i.e., the request was too short in duration), the 82c59a will issue an interrupt level 7. if a slave is programmed on ir bit 7, the cas lines remain inactive and vector addresses are output from the master 82cs9a. interrupt sequence outputs 8080, 8085 interrupt response mode this sequence is timed by three int a pulses. during the ?rst lnt a pulse, the call opcode is enabled onto the data bus. first interrupt vector byte data: hex cd during the second int a pulse, the lower address of the appropriate service routine is enabled onto the data bus. when interval = 4 bits, a5 - a7 are programmed, while a0 - a4 are automatically inserted by the 82c59a. when interval = 8, only a6 and a7 are programmed, while a0 - a5 are automatically inserted. during the third int a pulse, the higher address of the appro- priate service routine, which was programmed as byte 2 of the initialization sequence (a8 - a15), is enabled onto the bus. d7 d6 d5 d4 d3 d2 d1 d0 call code 11001101 address bus (16) control bus data bus (8) i/ or i/ o w int int a cascade lines cas 0 cas 1 cas 2 sp/ en cs rd wr int a int d 7 - d 0 a 0 slave program/ enable buffer interrupt requests 82c59a irq irq irq irq irq irq irq irq 7 6 5 4 3 2 1 0 figure 5. 82c59a standard system bus interface content of second interrupt vector byte ir interval = 4 d7 d6 d5 d4 d3 d2 d1 d0 7a7a6a511100 6a7a6a511000 5a7a6a510100 4a7a6a510000 3a7a6a501100 2a7a6a501000 1a7a6a500100 0a7a6a500000 ir interval = 8 d7 d6 ds d4 d3 d2 dl do 7a7a6111000 6a7a6110000 5a7a6101000 4a7a6100000 3a7a6011000 2a7a6010000 1a7a6001000 0a7a6000000 82c59a 4-258 80c86, 8oc88, 80c286 interrupt response mode 80c86/88/286 mode is similar to 8080/85 mode except that only two interrupt acknowledge cycles are issued by the pro- cessor and no call opcode is sent to the processor. the ?rst interrupt acknowledge cycle is similar to that of 8080/85 systems in that the 82c59a uses it to internally freeze the state of the interrupts for priority resolution and, as a master, it issues the interrupt code on the cascade lines. on this ?rst cycle, it does not issue any data to the processor and leaves its data bus buffers disabled. on the second interrupt acknowledge cycle in the 86/88/286 mode, the master (or slave if so programmed) will send a byte of data to the pro- cessor with the acknowledged interrupt code composed as follows (note the state of the adi mode control is ignored and a5 - a11 are unused in the 86/88/286 mode). programming the 82c59a the 82c59a accepts two types of command words gener- ated by the cpu: 1. initialization command words (icws): before normal operation can begin, each 82c59a in the system must be brought to a starting point - by a sequence of 2 to 4 bytes timed by wr pulses. 2. operation command words (ocws): these are the command words which command the 82c59a to operate in various interrupt modes. among these modes are: a. fully nested mode. b. rotating priority mode. c. special mask mode. d. polled mode. the ocws can be written into the 82c59a anytime after ini- tialization. initialization command words (lcws) general whenever a command is issued with a0 = 0 and d4 = 1, this is interpreted as initialization command word 1 (lcw1). lcw1 starts the initialization sequence during which the fol- lowing automatically occur: a. the edge sense circuit is reset, which means that follow- ing initialization, an interrupt request (ir) input must make a low-to-high transition to generate an interrupt. b. the interrupt mask register is cleared. c. lr7 input is assigned priority 7. d. special mask mode is cleared and status read is set to lrr. e. if lc4 = 0, then all functions selected in lcw4 are set to zero. (non-buffered mode (see note), no auto-eoi, 8080/85 system). note: master/slave in icw4 is only used in the buffered mode. initialization command words 1 and 2 (icw1, lcw2) a5 - a15: page starting address of service routines. in an 8080/85 system the 8 request levels will generate calls to 8 locations equally spaced in memory. these can be pro- grammed to be spaced at intervals of 4 or 8 memory loca- tions, thus, the 8 routines will occupy a page of 32 or 64 bytes, respectively. content of third interrupt vector byte d7 d6 d5 d4 d3 d2 d1 d0 a15 a14 a13 a12 a11 a10 a9 a8 content of interrupt vector byte for 80c86/88/286 system mode d7 d6 d5 d4 d3 d2 d1 d0 lr7 t7 t6 t5 t4 t3 1 1 1 lr6 t7 t6 t5 t4 t3 1 1 0 ir5 t7 t6 t5 t4 t3 1 0 1 ir4 t7 t6 t5 t4 t3 1 0 0 ir3 t7 t6 t5 t4 t3 0 1 1 ir2 t7 t6 t5 t4 t3 0 1 0 ir1 t7 t6 t5 t4 t3 0 0 1 ir0 t7 t6 t5 t4 t3 0 0 0 icw1 icw2 in cascade mode icw3 is icw4 needed icw4 ready to accept interrupt requests no (sngl = 1) yes (sngl = 0)) yes (ic4 = 1) no (ic4 = 0) figure 6. 82c59a initialization sequence 82c59a 4-259 d 7 a o d 6 d 5 d 4 d 3 d 2 d 1 d 0 0 a 7 a 6 a 5 ltim 1 adi sngl ic4 icw1 1 = icwr needed 0 = no icw4 needed 1 = single 0 = cascade mode call address interval 1 = interval of 4 0 = interval of 8 1 = level triggered mode 0 = edge triggered mode a 7 - a 5 of interrupt vector address (mcs-80/85 mode only) d 7 a o d 6 d 5 d 4 d 3 d 2 d 1 d 0 1 a 15 a 14 a 13 a 11 a 10 a 9 a 8 a 12 t 7 t 6 t 5 t 4 t 3 icw2 a 15 - a 8 of interrupt vector address (mcs80/85 mode) t 7 - t 3 of interrupt vector address (8086/8088 mode) d 7 a o d 6 d 5 d 4 d 3 d 2 d 1 d 0 1s 7 s 6 s 5 s 3 s 2 s 1 s 0 s 4 icw3 (master device) 1 = ir input has a slave 0 = ir input does not have a slave d 7 a o d 6 d 5 d 4 d 3 d 2 d 1 d 0 1000 0id 2 id 1 id 0 0 icw3 (slave device) slave id (note 1) 01 5 23 4 67 01 1 01 0 01 00 0 11 0 11 00 1 00 1 11 d 7 a 0 d 6 d 5 d 4 d 3 d 2 d 1 d 0 1 0 0 0 buf m/s aeoi m pm sfnm icw4 1 = 8086/8088 mode 0 = mcs-80/85 mode 1 = auto eoi 0 = normal eoi 0 1 11 0 x - non buffered mode - buffered mode slave - buffered mode master 1 = special fully nested moded 0 = not special fully nested mode figure 7. 82c59a initialization command word format note: slave id is equal to the corresponding master ir input. 82c59a 4-260 the address format is 2 bytes long (a0 - a15). when the routine interval is 4, a0 - a4 are automatically inserted by the 82c59a, while a5 - a15 are programmed externally. when the routine interval is 8, a0 - a5 are automatically inserted by the 82c59a while a6 - a15 are programmed externally. the 8-byte interval will maintain compatibility with current software, while the 4-byte interval is best for a compact jump table. in an 80c86/88/286 system, a15 - a11 are inserted in the ?ve most signi?cant bits of the vectoring byte and the 82c59a sets the three least signi?cant bits according to the interrupt level. a10 - a5 are ignored and adi (address inter- val) has no effect. ltlm: if ltlm = 1, then the 82c59a will operate in the level interrupt mode. edge detect logic on the interrupt inputs will be disabled. adi: all address interval. adi = 1 then interval = 4; adi = 0 then interval = 8. sngl: single. means that this is the only 82c59a in the system. if sngl = 1, no icw3 will be issued. ic4: if this bit is set - lcw4 has to be issued. if lcw4 is not needed, set lc4 = 0. initialization command word 3 (icw3) this word is read only when there is more than one 82c59a in the system and cascading is used, in which case sngl = 0. it will load the 8-bit slave register. the functions of this register are: a. in the master mode (either when sp = 1, or in buffered mode when m/s = 1 in lcw4) a 1 is set for each slave in the bit corresponding to the appropriate ir line for the slave. the master then will release byte 1 of the call sequence (for 8080/85 system) and will enable the corre- sponding slave to release bytes 2 and 3 (for 80c86/88/ 286, only byte 2) through the cascade lines. b. in the slave mode (either when sp = 0, or if buf = 1 and m/s = 0 in lcw4), bits 2 - 0 identify the slave. the slave compares its cascade input with these bits and if they are equal, bytes 2 and 3 of the call sequence (or just byte 2 for 80c86/88/286) are released by it on the data bus. note: (the slave address must correspond to the ir line it is con- nected to in the master id). initialization command word 4 (icw4) sfnm: if sfnm = 1, the special fully nested mode is pro- grammed. buf: if buf = 1, the buffered mode is programmed. in buffered mode, sp/ en becomes an enable output and the master/slave determination is by m/s. m/s: if buffered mode is selected: m/s = 1 means the 82c59a is programmed to be a master, m/s = 0 means the 82c59a is programmed to be a slave. if buf = 0, m/s has no function. aeoi: if aeoi = 1, the automatic end of interrupt mode is programmed. m pm: microprocessor mode: m pm = 0 sets the 82c59a for 8080/85 system operation, m pm = 1 sets the 82c59a for 80c86/88/286 system operation. operation command words (ocws) after the initialization command words (lcws) are pro- grammed into the 82c59a, the device is ready to accept interrupt requests at its input lines. however, during the 82c59a operation, a selection of algorithms can command the 82c59a to operate in various modes through the opera- tion command words (ocws). operation control word 1 (ocw1) ocw1 sets and clears the mask bits in the interrupt mask register (lmr) m7 - m0 represent the eight mask bits. m = 1 indicates the channel is masked (inhibited), m = 0 indicates the channel is enabled. operation control word 2 (ocw2) r, sl, eoi - these three bits control the rotate and end of interrupt modes and combinations of the two. a chart of these combinations can be found on the operation com- mand word format. l2, l1, l0 - these bits determine the interrupt level acted upon when the sl bit is active. operation control word 3 (ocw3) esmm - enable special mask mode. when this bit is set to 1 it enables the smm bit to set or reset the special mask mode. when esmn = 0, the smm bit becomes a dont care. smm - special mask mode. if esmm = 1 and smm = 1, the 82c59a will enter special mask mode. if esmm = 1 and smm = 0, the 82c59a will revert to normal mask mode. when esmm = 0, smm has no effect. fully nested mode this mode is entered after initialization unless another mode is programmed. the interrupt requests are ordered in priority from 0 through 7 (0 highest). when an interrupt is acknowl- edged the highest priority request is determined and its vec- tor placed on the bus. additionally, a bit of the interrupt service register (iso - 7) is set. this bit remains set until the microprocessor issues an end of interrupt (eoi) command operation control words (ocws) ad d7 d6 d5 d4 d3 d2 d1 d0 ocw1 1 m7m6 m5m4m3m2m1m0 ocw2 0 r sl eoi 0 0 l2 l1 l0 ocw3 0 0 essm smm 0 1 p rr ris 82c59a 4-261 immediately before returning from the service routine, or if the aeoi (automatic end of interrupt) bit is set, until the trail- ing edge of the last int a. while the is bit is set, all further interrupts of the same or lower priority are inhibited, while higher levels will generate an interrupt (which will be acknowledged only if the microprocessor internal interrupt enable ?ip-?op has been re-enabled through software). after the initialization sequence, iro has the highest priority and ir7 the lowest. priorities can be changed, as will be explained in the rotating priority mode or via the set priority command. d 7 a o d 6 d 5 d 4 d 3 d 2 d 1 d 0 1m 7 m 6 m 5 m 3 m 2 m 1 m 0 m 4 ocw1 interrupt mask 1 = mask set 0 = mask reset d 7 a o d 6 d 5 d 4 d 3 d 2 d 1 d 0 1 r sl eoi 0 l 2 l 1 l 0 0 ocw2 ir level to be 01 5 23 4 67 01 1 01 0 01 00 0 11 0 11 00 1 00 1 11 001 011 101 100 0 1 1 0 0 1 1 10 0 1 0 non speci?c eoi command speci?c eoi command rotate on non speci?c eoi command rotate in automatic eoi mode (set) rotate in automatic eoi mode (clear) rotate on speci?c eoi command set priority command no operation ? ? ? acted upon end of interrupt automatic rotation speci?c rotation ? l 0 - l 2 are used d 7 a o d 6 d 5 d 4 d 3 d 2 d 1 d 0 0 0 esmm smm 1 p rr r1s 0 ocw3 00 11 1 1 0 0 no action read ir reg on next rd pulse read is reg on next rd pulse 1 = poll command 0 = no poll command 00 11 1 1 0 0 no action reset special mask set special mask read register command figure 8. 82c59a operation command word format special mask mode 82c59a 4-262 end of interrupt (eoi) the in-service (is) bit can be reset either automatically fol- lowing the trailing edge of the last in sequence int a pulse (when aeoi bit in lcw1 is set) or by a command word that must be issued to the 82c59a before returning from a ser- vice routine (eoi command). an eoi command must be issued twice if servicing a slave in the cascade mode, once for the master and once for the corresponding slave. there are two forms of eol command: speci?c and non- speci?c. when the 82c59a is operated in modes which pre- serve the fully nested structure, it can determine which is bit to reset on eoi. when a non-speci?c command is issued the 82c59a will automatically reset the highest is bit of those that are set, since in the fully nested mode the highest is level was necessarily the last level acknowledged and serviced. a nonspeci?c eoi can be issued with ocw2 (eol = 1, sl = 0, r = 0). when a mode is used which may disturb the fully nested structure, the 82c59a may no longer be able to determine the last level acknowledged. in this case a speci?c end of interrupt must be issued which includes as part of the com- mand the is level to be reset. a speci?c eol can be issued with ocw2 (eoi = 1, sl = 1, r = 0, and lo - l2 is the binary level of the is bit to be reset). an lrr bit that is masked by an lmr bit will not be cleared by a nonspeci?c eoi if the 82c59a is in the special mask mode. automatic end of interrupt (aeoi) mode if aeoi = 1 in lcw4, then the 82c59a will operate in aeol mode continuously until reprogrammed by lcw4. in this mode the 82c59a will automatically perform a nonspeci?c eoi operation at the trailing edge of the last interrupt acknowledge pulse (third pulse in 8080/85, second in 80c86/88/286). note that from a system standpoint, this mode should be used only when a nested multilevel interrupt structure is not required within a single 82c59a. automatic rotation (equal priority devices) in some applications there are a number of interrupting devices of equal priority. in this mode a device, after being serviced, receives the lowest priority, so a device requesting an interrupt will have to wait, in the worst case until each of 7 other devices are serviced at most once. for example, if the priority and in service status is: before rotate (lr4 the highest priority requiring service) after rotate (lr4 was serviced, all other priorities rotated correspondingly) there are two ways to accomplish automatic rotation using ocw2, the rotation on non-speci?c eoi command (r = 1, sl = 0, eoi = 1) and the rotate in automatic eoi mode which is set by (r = 1, sl = 0, eoi = 0) and cleared by (r = 0, sl = 0, eol = 0). speci?c rotation (speci?c priority) the programmer can change priorities by programming the lowest priority and thus, ?xing all other priorities; i.e., if ir5 is programmed as the lowest priority device, then ir6 will have the highest one. the set priority command is issued in ocw2 where: r = 1, sl = 1, l0 - l2 is the binary priority level code of the lowest priority device. observe that in this mode internal status is updated by soft- ware control during ocw2. however, it is independent of the end of interrupt (eoi) command (also executed by ocw2). priority changes can be executed during an eoi command by using the rotate on speci?c eol command in ocw2 (r = 1, sl = 1, eoi = 1, and lo - l2 = ir level to receive low- est priority). interrupt masks each interrupt request input can be masked individually by the interrupt mask register (imr) programmed through ocw1. each bit in the lmr masks one interrupt channel if it is set (1). bit 0 masks iro, bit 1 masks ir1 and so forth. masking an ir channel does not affect the operation of other channels. special mask mode some applications may require an interrupt service routine to dynamically alter the system priority structure during its execution under software control. for example, the routine may wish to inhibit lower priority requests for a portion of its execution but enable some of them for another portion. the dif?culty here is that if an interrupt request is acknowl- edged and an end of interrupt command did not reset its is bit (i.e., while executing a service routine), the 82c59a would have inhibited all lower priority requests with no easy way for the routine to enable them. that is where the special mask mode comes in. in the spe- cial mask mode, when a mask bit is set in ocw1, it inhibits further interrupts at that level and enables interrupts from all other levels (lower as well as higher) that are not masked. thus, any interrupts may be selectively enabled by loaning the mask register. is7 1s6 is5 is4 1s3 is2 is1 is0 is status 0 1010000 priority status 76543210 lowest highest is7 is6 is5 is4 is3 is2 is1 is0 is status 01000000 priority status 21076543 highest lowest 82c59a 4-263 the special mask mode is set by ocw3 where: essm = 1, smm = 1, and cleared where essm = 1, smm = 0. poll command in this mode, the int output is not used or the microproces- sor internal interrupt enable ?ip ?op is reset, disabling its interrupt input. service to devices is achieved by software using a poll command. the poll command is issued by setting p = 1 in ocw3. the 82c59a treats the next rd pulse to the 82c59a (i.e., rd = 0, cs = 0) as an interrupt acknowledge, sets the appropriate is bit if there is a request, and reads the priority level. inter- rupt is frozen from wr to rd. the word enabled onto the data bus during rd is: w0 - w2: binary code of the highest priority level request- ing service. i: equal to a 1 if there is an interrupt. this mode is useful if there is a routine command common to several levels so that the int a sequence is not needed (saves rom space). another application is to use the poll mode to expand the number of priority levels to more than 64. reading the 82c59a status the input status of several internal registers can be read to update the user information on the system. the following registers can be read via ocw3 (lrr and isr) or ocw1 (lmr). interrupt request register (irr): 8-bit register which con- tains the levels requesting an interrupt to be acknowledged. the highest request level is reset from the lrr when an interrupt is acknowledged. lrr is not affected by lmr. in-service register (isr): 8-bit register which contains the priority levels that are being serviced. the isr is updated when an end of interrupt command is issued. interrupt mask register: 8-bit register which contains the interrupt request lines which are masked. the lrr can be read when, prior to the rd pulse, a read register command is issued with ocw3 (rr = 1, ris = 0). the isr can be read when, prior to the rd pulse, a read register command is issued with ocw3 (rr = 1, ris = 1). there is no need to write an ocw3 before every status read operation, as long as the status read corresponds with the previous one: i.e., the 82c59a remembers whether the lrr or isr has been previously selected by the ocw3. this is not true when poll is used. in the poll mode, the 82c59a d7 d6 d5 d4 d3 d2 d1 d0 1----w2w1w0 edge sense latch ltim bit 0 = edge 1 = level v cc ir 8080/85 mode 80c86/ 88/286 mode int a freeze int a freeze freeze read irr write mask read imr read isr master clear mask latch request latch in - service latch non- masked req clr q set to other priority cells priority resolver control logic set isr clr isr isr bit q d c clr q d cq clr set q notes: 1. master clear active only during icw1. 2. freeze is active during int a and poll sequence only. 3. truth table for d-latch. c d q operation 1 d1 d1 follow 0 x qn-1 hold figure 9. priority cell - simplified logic diagram 82c59a 4-264 treats the rd following a poll write operation as an int a. after initialization, the 82c59a is set to lrr. for reading the lmr, no ocw3 is needed. the output data bus will contain the lmr whenever rd is active and a0 = 1 (ocw1). polling overrides status read when p = 1, rr = 1 in ocw3. edge and level triggered modes this mode is programmed using bit 3 in lcw1. if ltlm = 0, an interrupt request will be recognized by a low to high transition on an ir input. the ir input can remain high without generating another interrupt. if ltim = 1, an interrupt request will be recognized by a high level on an ir input, and there is no need for an edge detection. the interrupt request must be removed before the eoi com- mand is issued or the cpu interrupt is enabled to prevent a second interrupt from occurring. the priority cell diagram shows a conceptual circuit of the level sensitive and edge sensitive input circuitry of the 82c59a. be sure to note that the request latch is a transparent d type latch. in both the edge and level triggered modes the ir inputs must remain high until after the falling edge of the ?rst int a. if the ir input goes low before this time a default lr7 will occur when the cpu acknowledges the interrupt. this can be a useful safeguard for detecting interrupts caused by spu- rious noise glitches on the ir inputs. to implement this fea- ture the lr7 routine is used for clean up simply executing a return instruction, thus, ignoring the interrupt. if lr7 is needed for other purposes a default lr7 can still be detected by reading the isr. a normal lr7 interrupt will set the corre- sponding isr bit, a default ir7 wont. if a default ir7 routine occurs during a normal lr7 routine, however, the isr will remain set. in this case it is necessary to keep track of whether or not the ir7 routine was previously entered. if another lr7 occurs it is a default. in power sensitive applications, it is advisable to place the 82c59a in the edge-triggered mode with the ir lines nor- mally high. this will minimize the current through the internal pull-up resistors on the ir pins. the special fully nested mode this mode will be used in the case of a big system where cascading is used, and the priority has to be conserved within each slave. in this case the special fully nested mode will be programmed to the master (using lcw4). this mode is similar to the normal nested mode with the following exceptions: a. when an interrupt request from a certain slave is in ser- vice, this slave is not locked out from the masters priority logic and further interrupt requests from higher priority irs within the slave will be recognized by the master and will initiate interrupts to the processor. (in the normal nested mode a slave is masked out when its request is in service and no higher requests from the same slave can be serviced. b. when exiting the interrupt service routine the software has to check whether the interrupt serviced was the only one from that slave. this is done by sending a nonspeci?c end of interrupt (eoi) command to the slave and then reading its in-service register and checking for zero. if it is empty, a non-speci?ed eoi can be sent to the master, too. if not, no eoi should be sent. buffered mode when the 82c59a is used in a large system where bus driv- ing buffers are required on the data bus and the cascading mode is used, there exists the problem of enabling buffers the buffered mode will structure the 82c59a to send an enable signal on sp/ en to enable the buffers. in this mode, whenever the 82c59as data bus outputs are enabled, the sp/ en output becomes active. latch arm (note 1) earliest ir can be removed latch arm (note 1) 8080/85 latch arm (note 1) 80c86/88/286 80c86/88/286 8080/85 ir int int a note: 1. edge triggered mode only. figure 10. ir triggering timing requirements 82c59a 4-265 this modi?cation forces the use of software programming to determine whether the 82c59a is a master or a slave. bit 3 in icw4 programs the buffered mode, and bit 2 in lcw4 determines whether it is a master or a slave. cascade mode the 82c59a can be easily interconnected in a system of one master with up to eight slaves to handle up to 64 priority levels. the master controls the slaves through the 3 line cascade bus (cas2 - 0). the cascade bus acts like chip selects to the slaves during the int a sequence. in a cascade con?guration, the slave interrupt outputs (int) are connected to the master interrupt request inputs. when a slave request line is activated and afterwards acknowl- edged, the master will enable the corresponding slave to release the device routine address during bytes 2 and 3 of int a. (byte 2 only for 80c86/88/286). the cascade bus lines are normally low and will contain the slave address code from the leading edge of the ?rst int a pulse to the trailing edge of the last int a pulse. each 82c59a in the system must follow a separate initialization sequence and can be programmed to work in a different mode. an eoi command must be issued twice: once for the master and once for the corresponding slave. chip select decoding is required to activate each 82c59a. note: auto eoi is supported in the slave mode for the 82c59a. the cascade lines of the master 82c59a are activated only for slave inputs, non-slave inputs leave the cascade line inactive (low). therefore, it is necessary to use a slave address of 0 (zero) only after all other addresses are used. figure 11. cascading the 82c59a cs 82c59a slave a cas 0 cas 1 cas 2 int a 0 d 7 - d 0 int a sp/ en 7 5 6 43210 gnd 75 6 43210 cs 82c59a slave b cas 0 cas 1 cas 2 int a 0 d 7 - d 0 int a sp/ en 7 5 6 43210 gnd 75 6 43210 cs master 82c59a cas 0 cas 1 cas 2 int a 0 d 7 - d 0 int a sp/ en 7 5 6 43210 v cc 754210 3 6 int req data bus (8) control bus address bus (16) interrupt requests 82c59a 4-266 absolute maximum ratings thermal information supply voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . +8.0v input, output or i/o voltage . . . . . . . . . . . . gnd-0.5v to v cc +0.5v esd classi?cation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . class i operating conditions operating voltage range . . . . . . . . . . . . . . . . . . . . . +4.5v to +5.5v operating temperature range . . . . . . . . . . . . . . . . -55 o c to +125 o c input low voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 0v to +0.8v thermal resistance (typical) q ja ( o c/w) q jc ( o c/w) cerdip package . . . . . . . . . . . . . . . . 47.0 10 ceramic lcc package . . . . . . . . . . . . 55.0 9.0 plastic dip package . . . . . . . . . . . . . . 55 - plastic lcc package . . . . . . . . . . . . . . 65 - plastic soic package . . . . . . . . . . . . . 75 - storage temperature range . . . . . . . . . . . . . . . . . .-65 o c to +150 o c maximum junction temperature ceramic package . . . . . . . +175 o c maximum junction temperature plastic package. . . . . . . . . +150 o c maximum lead temperature ceramic package . . . . . . . . . . +300 o c (soldering 10s) maximum lead temperature plastic package . . . . . . . . . . . +260 o c (soldering 10s) die characteristics gate count . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1250 gates caution: stresses above those listed in absolute maximum ratings may cause permanent damage to the device. this is a stress only rating and operation of the device at these or any other conditions above those indicated in the operational sections of this speci?cation is not implied. dc electrical speci?cations v cc = +5.0v 10%, t a = 0 o c to +70 o c (c82c59a), t a = -40 o c to +85 o c (i82c59a), t a = -55 o c to +125 o c (m82c59a) symbol parameter min max units test conditions v lh logical one input voltage 2.0 2.2 -v v c82c59a, i82c59a m82c59a v il logical zero input voltage - 0.8 v v oh output high voltage 3.0 vcc -0.4 -v v i oh = -2.5ma l oh = - 100 m a v ol output low voltage - 0.4 v l ol = +2.5ma ii input leakage current -1.0 +1.0 m av in = gnd or v cc , pins 1-3, 26-27 io output leakage current -10.0 +10.0 m av out = gnd or v cc , pins 4-13, 15-16 ilir ir input load current - - -200 10 m a m a v in = 0v v in = v cc lccsb standby power supply current - 10 m av cc = 5.5v, v in = v cc or gnd outputs open, (note 1) iccop operating power supply current - 1 ma/mhz v cc = 5.0v, clk freq = 5mhz, v in = v cc or gnd, outputs open, t a = 25 o c, (note 2) notes: 1. except for ir0 - lr7 where v in = v cc or open. 2. iccop = 1ma/mhz of peripheral read/write cycle time. (ex: 1.0 m s i/o read/write cycle time = 1ma). capacitance t a = +25 o c symbol parameter typ units test conditions cin input capacitance 15 pf freq = 1mhz, all measurements reference to device gnd. cout output capacitance 15 pf ci/o i/o capacitance 15 pf 82c59a 4-267 ac electrical speci?cations v cc = +5.0v 10%, gnd = 0v, t a = 0 o c to +70 o c (c82c59a), t a -40 o c to +85 o c (l82c59a), t a = -55 o c to +125 o c (m82c59a) symbol parameter 82c59a-5 82c59a 82c59a-12 units test conditions min max min max min max timing requirements (1) thrl a0/ cs setup to rd/ int a 10 - 10 - 5 - ns (2) trhax a0/ cs hold after rd/ int a 5-5-0- ns (3) trlrh rd/ lnt a pulse width 235 - 160 - 60 - ns (4) tahwl a0/ cs setup to wr 0 - 000 - ns (5) twhax a0/ cs hold after wr 5-5-0- ns (6) twlwh wr pulse width 165 - 95 - 60 - ns (7) tdvwh data setup to wr 240 - 160 - 70 - ns (8) twhdx data hold after wr 5-5-0- ns (9) tjljh interrupt request width low 100 - 100 - 40 - ns (10) tcvlal cascade setup to second or third int a slave only 55 - 40 - 30 - ns (11) trhrl end of rd to next rd, end of int a within an int a sequence only 160 - 160 - 90 - ns (12) twhwl end of wr to next wr 190 - 190 - 60 - ns (13) tchcl (note 1) end of command to next command not same command type), end of int a sequence to next int a sequence 500 - 400 - 90 - ns timing responses (14) trldv data valid from rd/ int a - 160 - 120 - 40 ns 1 (15) trhdz data float after rd/ int a 5 100 5 85 5 22 ns 2 (16) tjhlh interrupt output delay - 350 - 300 - 90 ns 1 (17) tlalcv cascade valid from first int a (master only) - 565 - 360 - 50 ns 1 (18) trlel enable active from rd or int a - 125 - 100 - 40 ns 1 (19) trheh enable inactive from rd or int a - 60 - 50 - 22 ns 1 (20) tahdv data valid from stable address - 210 - 200 - 60 ns 1 (21) tcvdc cascade valid to valid data - 300 - 200 - 70 ns 1 note: 1. worst case timing for tchcl in an actual microprocessor system is typically greater than the values speci?ed for the 82c59a, (i.e. 8085a = 1.6 m s, 8085a -2 = 1 m s, 80c86 = 1 m s, 80c286 -10 = 131ns, 80c286 -12 = 98ns). 82c59a 4-268 ac test circuit ac testing input, output waveform test condition definition table test condition v 1 r 1 r 2 c 1 1 1.7v 523 w open 100pf 2v cc 1.8k w 1.8k w 50pf v 1 r 1 r 2 c 1 (note) output from device under test test point note: includes stray and jig capacitance. timing waveforms figure 12. write input v ih +0.4v v il - 0.4v 1.5v v oh output v ol 1.5v note: ac testing: all input signals must switch between v il - 0.4v and v ih + 0.4v. input rise and fall times are driven at 1ns/v. wr cs address bus a 0 data bus (7) tdvwh (8) twhdx (4) tahwl (5) twhax (6) twlwh 82c59a 4-269 figure 13. read/ int a figure 14. other timing notes: 1. interrupt request (ir) must remain high until leading edge of ?rst int a. 2. during first int a the data bus is not active in 80c86/88/286 mode. 3. 80c86/88/286. 4. 8080/8085 mode. figure 15. int a sequence timing waveforms (continued) rd/ int a en cs address bus data bus (20) tahdv (14) trldv (1) tahrl (18) trlel (3) trlrh (19) trheh (2) trhax (15) trhdz a 0 (11) trhrl (12) twhwl (13) tchcl rd int a wr rd int a wr rd int a wr ir (9) tjljh int int a see note 1 db cas 0 - 2 tcvial (10) see note 2 (17) tialcv (21) tcvdv (10) tcvial see note 3 see note 4 (16) tjhih 82c59a 4-270 burn-in circuits md82c59a cerdip mr82c59a ceramic lcc r1 r1 r1 r1 r1 r1 r1 r1 r1 r1 r1 r3 r3 v cc r1 r2 r2 r2 r2 r2 r2 r3 r3 r1 r2 r2 28 27 26 25 24 23 22 21 20 19 18 17 16 15 1 2 3 4 5 6 7 8 9 10 11 12 13 14 c1 int a ir7 ir6 ir5 ir3 ir1 ir0 a sp/ en cas 2 a0 ir4 ir2 wr rd d7 d6 d4 d2 d1 d0 cas 0 cas 1 gnd d5 d3 gnd v cc a r3 r3 23 24 25 22 21 20 19 11 3 2 1 4 14 15 16 17 18 12 13 28 27 26 10 5 6 7 8 9 cas0 cas1 gnd cas2 sp/ en ir0 v cc /2 r2 r2 r2 r2 r2 r2 r2 ir6 ir5 ir4 ir1 ir7 ir3 ir2 r1 r1 r1 r1 r1 r1 r1 d5 d4 d3 d0 d6 d2 d1 r1 r1 r1 r1 r4 r2 r1 r1 r1 r1 r1 r1 d7 rd wr gnd a0 int a v cc c1 notes: 1. v cc = 5.5v 0.5v. 2. v ih = 4.5v 10%. 3. v il = -0.2v to 0.4v. 4. gnd = 0v. 5. r1 = 47k w 5%. 6. r2 = 510 w 5%. 7. r3 = 10 w 5%. 8. r4 = 1.2k w 5%. 9. c1 = 0.01 m f min. 10. f0 = 100khz 10%. 11. f1 = f0/2, f2 = f1/2, ...f8 = f7/2. 82c59a 4-271 all harris semiconductor products are manufactured, assembled and tested under iso9000 quality systems certi?cation. harris semiconductor products are sold by description only. harris semiconductor reserves the right to make changes in circuit design and/or speci?cations at any time without notice. accordingly, the reader is cautioned to verify that data sheets are current before placing orders. information furnished by harris is believed to be accurate and reliable. however, no responsibility is assumed by harris or its subsidiaries for its use; nor for any infringements of patents or other rights of third parties which may result from its use. no license is granted by implication or otherwise under any patent or patent rights of harris or its subsidiaries. sales of?ce headquarters for general information regarding harris semiconductor and its products, call 1-800-4-harris north america harris semiconductor p. o. box 883, mail stop 53-210 melbourne, fl 32902 tel: 1-800-442-7747 (407) 729-4984 fax: (407) 729-5321 europe harris semiconductor mercure center 100, rue de la fusee 1130 brussels, belgium tel: (32) 2.724.2111 fax: (32) 2.724.22.05 asia harris semiconductor pte ltd. no. 1 tannery road cencon 1, #09-01 singapore 1334 tel: (65) 748-4200 fax: (65) 748-0400 semiconductor die characteristics die dimensions: 143 x 130 x 19 1mils metallization: type: si-al-cu thickness: metal 1: 8k ? 0.75k ? metal 2: 12k ? 1.0k ? glassivation: type: nitrox thickness: 108k ? 3.0k ? metallization mask layout 82c59a d7 rd wr cs v cc inta cas0 cas1 gnd cas2 sp/ en int d0 d1 d2 d3 d4 d5 ir1 ir2 ir3 ir4 ir5 ir6 a0 d6 ir0 ir7 82c59a |
Price & Availability of 5962-85016013A
![]() |
|
|
All Rights Reserved © IC-ON-LINE 2003 - 2022 |
[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy] |
Mirror Sites : [www.datasheet.hk]
[www.maxim4u.com] [www.ic-on-line.cn]
[www.ic-on-line.com] [www.ic-on-line.net]
[www.alldatasheet.com.cn]
[www.gdcy.com]
[www.gdcy.net] |