II-102
EPSON
S1C88348/317/316/308 TECHNICAL SOFTWARE
17 INTERRUPT (EXCEPTION) PROCESSING
Flowchart
(1) Interrupt level setting and enables interrupt
main
BR
← 0FFH (BR area = 0FFxxH)
Single chip mode, CE3–CE0 disabled
SPP
← page 0
Sets normal mode (OSC3 oscillation off)
SP
← 0F800H (S1C88316)
IRQ3: programmable timer, Kxx input
IRQ2: serial interface
IRQ1: stopwatch timer, clock timer
Enables IRQ1–IRQ3 interrupts
(BR setting)
System controller setting
Stack page setting
Operating mode setting
Stack pointer setting
Crears internal RAM
Crears display memory
Initializes peripheral circuit
Interrupt priority
level setting
Enables all interrupts
Crears I1 and I0 flags
user_program
(2) Zero division exception processing
zero_div
Zero division
rete
(3) Watchdog timer (NMI) interrupt processing
watchdog
NMI
Register evacuation
Watchdog timer
interrupt processing
Register return
rete
(4) Interrupt processing for peripheral circuit
xxx_intr
Register evacuation
Interrupt processing routine
Clears interrupt factor flag
Register return
rete
xxx_intr
pt1_intr
pt0_intr
k1x_intr
k0h_intr
k0l_intr
serr_intr
srv_intr
str_intr
sw100_intr
sw10_intr
sw1_intr
rtm32_intr
rtm8_intr
rtm2_intr
rtm1_intr
Interrupt factor flag
FPT1
FPT0
FK1
FK0H
FK0L
FSERR
FSREC
FSTRA
FSW100
FSW10
FSW1
FTM32
FTM8
FTM2
FTM1
Programmable timer 0
Programmable timer 1
K10 and K11 input port
K07–K04 input port
K03–K00 input port
Serial interface error
Serial interface receiving
Serial interface transmitting
Stopwatch timer 100 Hz
Stopwatch timer 10 Hz
Stopwatch timer 1 Hz
Clock timer 32 Hz
Clock timer 8 Hz
Clock timer 2 Hz
Clock timer 1 Hz
Note:
Internal RAM addresses and capacity of the
S1C88308 are as follows:
S1C88308: 00F000H–00F0FFH (256 bytes)
Memory map is different depending on the
model and bus mode to be used.
The S1C88308 does not have a bus authority
release function, K11 terminal or R51 terminal.