| Electronic Components Datasheet Search |
|
NSC800 Datasheet(PDF) 24 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
NSC800 Datasheet(HTML) 24 Page - National Semiconductor (TI) |
|
24 / 76 page ![]() 90 Timing and Control (Continued) so that the complete state of the CPU just prior to the non- maskable interrupt may be restored The method of restor- ing the status of IFF1 is through the execution of a Return Non-Maskable Interrupt (RETN) instruction Since this in- struction indicates that the non-maskable interrupt service routine is completed the contents of IFF2 are now copied back into IFF1 so that the status of IFF1 just prior to the acceptance of the non-maskable interrupt will be automati- cally restored Figure 19 depicts the status of the flip flops during a sample series of interrupt instructions Interrupt Control Register The interrupt control register (ICR) is a 4-bit write only register that provides the program- mer with a second level of maskable control over the four maskable interrupt inputs The ICR is internal to the NSC800 CPU but is addressed through the IO space at IO address port X’BB Each bit in the register controls a mask bit dedicated to each maskable interrupt RSTA RSTB RSTC and INTR For an interrupt request to be accepted on any of these inputs the corre- sponding mask bit in the ICR must be set (e 1) and IFF1 and IFF2 must be set This provides the programmer with control over individual interrupt inputs rather than just a sys- tem wide enable or disable TLC5171 – 26 Bit Name Function 0 IEI Interrupt Enable for INTR 1 IEC Interrupt Enable for RSTC 2 IEB Interrupt Enable for RSTB 3 IEA Interrupt Enable for RSTA For example In order to enable RSTB CPU interrupts must be enabled and IEB must be set At reset IEI bit is set and other mask bits IEA IEB IEC are cleared This maintains the software compatibility between NSC800 and Z80A Execution of an IO block move instruction will not affect the state of the interrupt control bits The only two instruc- tions that will modify this write only register are OUT (C) r and OUT (N) A Operation IFF1 IFF2 Comment Initialize 0 0 Interrupt Disabled EI 1 1 Interrupt Enabled after next instruction INTR 0 0 Interrupt Disable and INTR Being Serviced EI 1 1 Interrupt Enabled after next instruction RET 1 1 Interrupt Enabled NMI 0 1 Interrupt Disabled RETN 1 1 Interrupt Enabled INTR 0 0 Interrupt Disabled NMI 0 0 Interrupt Disabled and NMI Being Serviced RETN 0 0 Interrupt Disabled and INTR Being Serviced EI 1 1 Interrupt Enabled after next instruction RET 1 1 Interrupt Enabled FIGURE 19 IFF1 and IFF2 States Immediately after the Operation has been Completed 24 |
|
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 |