Interrupt Vector - Epson S1C63003 Technical Manual

Cmos 4-bit single chip microcontroller
Table of Contents

Advertisement

6 inTeRRuPT COnTROlleR
6.4

interrupt Vector

When an interrupt request is input to the CPU, the CPU begins interrupt processing. After the program being executed
is terminated, the interrupt processing is executed in the following order.
1. The content of the flag register is evacuated, then the I flag is reset.
2. The address data (value of program counter) of the program to be executed next is saved in the stack area
(RAM).
3. The interrupt request causes the value of the interrupt vector (0100H–010FH) to be set in the program counter.
4. The program at the specified address is executed (execution of interrupt handler routine by software).
Table 6.4.1 shows the correspondence of interrupt requests and interrupt vectors.
Interrupt vector
0100H
0101H
0102H
0103H
0104H
0105H
0106H
0107H
0108H
0109H
010AH
010BH
010CH
010DH
010EH
010FH
The four low-order bits of the program counter are indirectly addressed through the interrupt request.
Note: The interrupt handler routine must be located within the range from "Interrupt vector address
(100H–10FH)" -7FH to +80H. If it is difficult, make a relay point within that range as the destination
of the vector jump and branch the program to the interrupt handler from there.
Example:
;******************************************************************************
;**
interrupt vector area
;******************************************************************************
.org
0x0100
JR
INT_DUMMY
JR
INT_RFC
JR
INT_DUMMY
JR
INT_DUMMY
JR
INT_DUMMY
JR
INT_DUMMY
JR
INT_DUMMY
JR
INT_DUMMY
JR
INT_DUMMY
JR
INT_DUMMY
JR
INT_DUMMY
JR
INT_DUMMY
JR
INT_DUMMY
JR
INT_DUMMY
JR
INT_DUMMY
JR
INT_DUMMY
;******************************************************************************
;**
subinterrupt vector area
;******************************************************************************
.org
0x120
INT_RFC:
6-4
Table 6.
4.1 Interrupt request and interrupt vectors
Interrupt factor
Watchdog timer
R/F converter
Programmable timer 0
Programmable timer 1
Programmable timer 2
Programmable timer 3
Reserved
Reserved
Reserved
Reserved
Serial interface
Key input interrupt <P0>
Key input interrupt <P1>
Stopwatch timer
Clock timer (128 Hz, 64 Hz, 32 Hz, 16 Hz)*
Clock timer (8 Hz, 4 Hz, 2 Hz, 1 Hz)*
* The S1C63003 supports 32 Hz, 8 Hz, 2 Hz, and 1 Hz interrupts only.
**
;WATCH DOG TIMER INTERRUPT VECTOR(0x100)
;RFC INTERRUPT VECTOR(0x101)
;PTIMER0 INTERRUPT VECTOR(0x102)
;PTIMER1 INTERRUPT VECTOR(0x103)
;PTIMER2 INTERRUPT VECTOR(0x104)
;PTIMER3 INTERRUPT VECTOR(0x105)
;Reserved
;Reserved
;Reserved
;Reserved
;SIF INTERRUPT VECTOR(0x10A)
;P0x PORT INTERRUPT VECTOR(0x10B)
;P1x PORT INTERRUPT VECTOR(0x10C)
;STOPWATCH INTERRUPT VECTOR(0x10D)
;CLOCK TIMER1 INTERRUPT VECTOR(0x10E)
;CLOCK TIMER2 INTERRUPT VECTOR(0x10F)
**
Seiko epson Corporation
S1C63xxx
016
008
004
003
S1C63003/004/008/016 TeChniCal Manual
Priority
High
Low
(Rev. 1.1)

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c63004S1c63008S1c63016

Table of Contents