
S1C8F626 TECHNICAL MANUAL
EPSON
9
3 CPU
For each vector address and the address after it, the
start address of the exception processing routine is
written into the subordinate and super ordinate
sequence. When an exception processing factor is
generated, the exception processing routine is
executed starting from the recorded address.
When multiple exception processing factors are
generated at the same time, execution starts with
the highest priority item.
The priority sequence shown in Table 3.3.1 assumes
that the interrupt priority levels are all the same.
The interrupt priority levels can be set by software
in each system. (See Section 5.14, "Interrupt and
Standby Status".)
Note: For exception processing other than reset,
SC (system condition flag) and PC (program
counter) are evacuated to the stack and
branches to the exception processing
routines. Consequently, when returning to
the main routine from exception processing
routines, please use the RETE instruction.
See the "S1C88 Core CPU Manual" for information
on CPU operations when an exception processing
factor is generated.
3.4 CC (Customized Condition Flag)
The S1C8F626 does not use the customized condi-
tion flag (CC) in the core CPU. Accordingly, it
cannot be used as a branching condition for the
conditional branching instruction (JRS, CARS).
3.5 CPU Mode
The CPU allows software to select its operating
mode from two types shown below according to
the programming area size.
■ Minimum mode
The program area is configured within 64K
bytes in Bank 0 + any one-bank. However, the
bank to be used must be specified in the CB
register and cannot be changed after an
initialization. This mode does not push the CB
register contents onto the stack when a
subroutine is called. It makes it possible to
economize on stack area usage. This mode is
suitable for small- to mid-scale program
memory and large-scale data memory systems.
■ Maximum mode
The program area can be configured exceeding
64K bytes. However the CB register must be
setup when the program exceeds a bank
boundary every 64K bytes. This mode pushes
the CB register contents when a subroutine is
called. This mode is suitable for large-scale
program and data memory systems.
3.3 Exception Processing Vectors
000000H–000051H in the program area of the
S1C8F626 is assigned as exception processing
vectors. Furthermore, from 000054H to 0000FFH,
software interrupt vectors are assignable to any two
bytes which begin with an even address.
Table 3.3.1 lists the vector addresses and the
exception processing factors to which they corre-
spond.
Table 3.3.1 Exception processing vector table
Vector
address
000000H
000002H
000004H
000006H
000008H
00000AH
00000CH
00000EH
000010H
000012H
000014H
000016H
000018H
00001AH
00001CH
00001EH
000020H
000022H
000024H
000026H
000028H
00002AH
00002CH
00002EH
000030H
000032H
000034H
000036H
000038H
00003AH
00003CH
00003EH
000040H
000042H
000044H
000046H
000048H
00004AH
00004CH
00004EH
000050H
000052H
000054H
:
0000FEH
Priority
High
↑
↓
Low
No
priority
rating
Exception processing factor
Reset
Zero division
Watchdog timer (NMI)
K07 input interrupt
K06 input interrupt
K05 input interrupt
K04 input interrupt
K03 input interrupt
K02 input interrupt
K01 input interrupt
K00 input interrupt
PTM 0 underflow interrupt
PTM 0 compare match interrupt
PTM 1 underflow interrupt
PTM 1 compare match interrupt
PTM 2 underflow interrupt
PTM 2 compare match interrupt
PTM 3 underflow interrupt
PTM 3 compare match interrupt
System reserved (cannot be used)
Serial I/F 0 error interrupt
Serial I/F 0 receiving complete interrupt
Serial I/F 0 transmitting complete interrupt
Stopwatch timer 100 Hz interrupt
Stopwatch timer 10 Hz interrupt
Stopwatch timer 1 Hz interrupt
Clock timer 32 Hz interrupt
Clock timer 8 Hz interrupt
Clock timer 2 Hz interrupt
Clock timer 1 Hz interrupt
PTM 4 underflow interrupt
PTM 4 compare match interrupt
PTM 5 underflow interrupt
PTM 5 compare match interrupt
PTM 6 underflow interrupt
PTM 6 compare match interrupt
PTM 7 underflow interrupt
PTM 7 compare match interrupt
Serial I/F 1 error interrupt
Serial I/F 1 receiving complete interrupt
Serial I/F 1 transmitting complete interrupt
System reserved (cannot be used)
Software interrupt