Download Epson S1C6200A Specifications
Transcript
CHAPTER 6: PERIPHERAL CIRCUITS (Interrupt) ; SERK1: ; : ; DO THE INPUT K1 INTERRUPT ; SERVICE ROUTINE HERE ; : RET ; SERSIO: ; : ; DO THE SIO INTERRUPT ; SERVICE ROUTINE HERE ; : RET ; SERPT: ; : ; DO THE PROGRAMMABLE TIMER INTERRUPT ; SERVICE ROUTINE HERE ; : RET ; Programming notes (1) The interrupt factor flag is set when the interrupt conditions are established, regardless of the setting of the interrupt mask register. (2) Read the interrupt factor flag in the DI status (interrupt flag = "0"). Reading of interrupt factor flag is available at EI, but be careful in the following cases. If the interrupt mask register value corresponding to the interrupt factor flags to be read is set to "1", an interrupt request will be generated by the interrupt factor flags set timing, or an interrupt request will not be generated. Be very careful when interrupt factor flags are in the same address. (3) Be sure that writing to the interrupt mask register is done with the interrupt in the DI status (interrupt flag = "0"). Writing to the interrupt mask register while in the EI status (interrupt flag = "1") may cause malfunction. (4) When multiple interrupts simultaneously occur, the high priority vector address is set to the program counter. S1C62740 TECHNICAL SOFTWARE EPSON II-75