247
Chapter 5 Interrupt
5.1.2 Software Interrupts
Software interrupts are generated by some instruction that generates an interrupt request when ex-
ecuted. Software interrupts are nonmaskable interrupts.
●
Undefined-instruction interrupt
This interrupt occurs when the UND instruction is executed.
●
Overflow interrupt
This interrupt occurs if the INTO instruction is executed when the O flag is 1 (arithmetic result is overflow).
The following lists the instructions that cause the O flag to change:
ABS, ADC, ADCF, ADD, CMP, DIV, DIVU, DIVX, NEG, RMPA, SBB, SHA, SUB
●
BRK interrupt
This interrupt occurs when the BRK instruction is executed.
●
INT instruction interrupt
This interrupt occurs when the INT instruction is executed. The software interrupt numbers which can be
specified by INT instcution are 0 to 63. Note that software interrupt numbers 4 to 31 are assigned to
peripheral function interrupts. This means that by executing the INT instruction, you can execute the
same interrupt routine as used in peripheral function interrupts.
For software interrupt numbers 0 to 31, the U flag is saved when the INT instruction is executed and the
U flag is cleared to 0 to choose the interrupt stack pointer (ISP) before executing the interrupt sequence.
The previous U flag before the interrupt occurred is restored when control returns from the interrupt
routine. For software interrupt numbers 32 to 63, when the instruction is executed, U flag does not
change but uses selected SP at the time.
5.1 Outline of Interrupt
Remarks
Interrupt generated by the UND instruction.
Interrupt generated by the INTO instruction.
Executed beginning from address indicated by vector in
variable vector table if 0FFE7
16
address contents are
FF
16
.
Can be controlled by an interrupt enable bit.
Do not use this interrupt.
Note 1: This is dedicated interrupt for development support tools. Do not use this interrupt.
Vector table addresses
Address (L) to address (H)
Interrupt source
(Reserved)
(Reserved)
Reset
Address match
Undefined instruction
Overflow
BRK instruction
Single step (Note 1)
Watchdog timer•Oscil-
lation stop detection
0FFDC
16
to 0FFDF
16
0FFE0
16
to 0FFE3
16
0FFE4
16
to 0FFE7
16
0FFE8
16
to 0FFEB
16
0FFEC
16
to 0FFEF
16
0FFF0
16
to 0FFF3
16
0FFF4
16
to 0FFF7
16
0FFF8
16
to 0FFFB
16
0FFFC
16
to 0FFFF
16
Table 5.1.1 Interrupt Source (Nonmaskable) and Fixed Vector Table
Содержание R8C/Tiny Series
Страница 50: ...Chapter 3 Functions 3 1 Guide to This Chapter 3 2 Functions...
Страница 151: ...134 Chapter 3 Functions 3 2 Functions Blank for page layout...
Страница 152: ...Chapter 4 Instruction Code Number of Cycles 4 1 Guide to This Chapter 4 2 Instruction Code Number of Cycles...
Страница 278: ...Chapter 6 Calculation Number of Cycles 6 1 Instruction queue buffer...
Страница 287: ...Glossary 1 Glossary Technical terms used in this software manual are explained below They are good in this manual only...
Страница 291: ...Symbol 1 Table of symbols Symbols used in this software manual are explained below They are good in this manual only...
Страница 295: ...REVISION HISTORY R8C Tiny Series SOFTWARE MANUAL Rev Date Description Page Summary B 1 1 00 Jun 19 03 First Edition...
Страница 297: ...R8C Tiny Series Software Manual 2 6 2 Ote machi Chiyoda ku Tokyo 100 0004 Japan...