| Electronic Components Datasheet Search |
|
CS5535 Datasheet(PDF) 108 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
CS5535 Datasheet(HTML) 108 Page - National Semiconductor (TI) |
|
108 / 555 page ![]() www.national.com 108 Revision 0.8 PIC Functional Description (Continued) Automatic Rotation Mode In cases where a number of IRQs have equal priority, the device that has been serviced, will receive the lowest prior- ity. So now that device, if requesting another interrupt, must wait until the other seven devices have been serviced. There are two ways to accomplish automatic rotation using OCW2: • Rotation on the non-specific EOI command (R = 1, SL = 0, EOI = 1). • Rotation in automatic EOI mode, which is set by (R = 1, SL = 0, EOI = 0) and cleared by (R = 0, SL = 0, EOI = 0). Specific Rotation Mode Priorities can be changed by programming the bottom pri- ority, which fixes all other priorities. For example, if IR5 is programmed as the bottom priority device, then IR6 will have the highest priority. The command is issued to OCW2 (R = 1, SL = 1, and L0-L2 is the binary priority level code of the bottom priority device). Special Mask Mode In this mode, when a mask bit is set in OCW1, it inhibits fur- ther interrupts at that level and enables interrupts from all other levels (lower as well as higher) that are not masked. The special mask mode is set (SSMM = 1, SMM = 1) and cleared (SSMM = 1, SMM = 0) by OCW3. 4.8.4 PIC Subsystem Operation From reset, the PIC subsystem comes up in legacy mode. The “Primary” mapper and mask inputs connect directly to LPIC and all other interrupt sources are masked off. While there are a number of different ways to use the PIC Subsystem, the discussions that follow assume a mix of “level” and “edge” interrupt inputs. The first discussion assumes the OS schedules the “work” of the interrupt ser- vice after a brief interrupt service routine. The second dis- cussion assumes the OS performs the “work” real-time in the interrupt service routine. Assume the mapper and masks have been established as desired. “Level” interrupts can be shared, but “edge” inter- rupts cannot. This means an XPIC “level” output can be driven by up to four mapper and masks inputs. Further, this means an XPIC “edge” output can only be driven by one mapper and mask input. Assume all edge interrupts generate a low-to-high edge to indicate an interrupt. Assume active low interrupts are inverted outside the PIC subsystem as needed; that is, all MM inputs are active high. An external PCI bus uses active low interrupts that can be shared in an open-collector wired “OR” fashion. This is OK. On-chip, the interrupt sense is inverted. Lastly, note that for the edge interrupts the edge must remain high until the interrupt acknowledge action. Assume LPIC is initialized as follows: ;Set Initialization Command Words (ICWs) ;All values are in hex ;PIC #1 (Master) out 20, 11 ; ICW1 - Edge, Master, ICW4 needed out 21, 8 ; ICW2 - Interrupt vector table offset is 8 out 21, 4 ; ICW3 - Master level 2 out 21, 1 ; ICW4 - Master, 8086 mode out 21, ff ; mask all IRQs ;PIC #2 (Slave) out a0, 11 ; ICW1 - Edge, Slave ICW4 needed out a1, 70 ; ICW2 - Interrupt vector table offset 70 out a1, 2 ; ICW3 - Slave Level 2 out a1, 1 ; ICW4 - Slave, 8086 mode out a1, ff ; mask all IRQs ;Use Operation Control Words (OCWs) during interrupt service Thus, the LPIC 8259As all start in edge mode. This is fol- lowed by writes to the individual edge level registers at 4D0h (interrupts 0-7) and 4D1h (interrupts 8-15) to estab- lish level mode for all level inputs. Note that IRQ0 and IRQ2 can not be put in level mode. Writing 0FFh to 4D0h will read back 0FAh. Scheduled Interrupts Approach The following set of events would be typical. Assume the processor has maskable interrupts enabled: 1) One or more interrupts are generated in the system. These set the associated bits in the LPIC Interrupt Request Register (IRR). 2) The maskable interrupt signal (INTR) is asserted by the LPIC and interrupts the processor. INTR is an active high level. 3) The processor generates an interrupt acknowledge bus cycle that flows through the GeodeLink system as a single BIZZARO packet. When it reaches the Diverse Logic, it is converted to the two cycle interrupt acknowledge sequence expected by the LPIC. 4) The acknowledge operation returns an interrupt vector to the processor that is used to call the appropriate interrupt service routine. Processor interrupts are now disabled at the processor. 5) The acknowledge operation also selects the highest priority interrupt from the IRR and uses it to set one bit in the LPIC Interrupt Service Register (ISR). Each acknowledge operation always sets a single ISR bit. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |