EasyManuals Logo

Renesas RL78 Series User Manual

Renesas RL78 Series
1879 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1544 background imageLoading...
Page #1544 background image
RL78/F13, F14 CHAPTER 21 INTERRUPT FUNCTIONS
R01UH0368EJ0210 Rev.2.10 1512
Dec 10, 2015
21.4.4 Interrupt servicing during division instruction
The RL78/F13 and RL78/F14 handle interrupts during the DIVHU/DIVWU instruction in order to enhance the interrupt
response when a division instruction is executed.
When an interrupt is generated while the DIVHU/DIVWU instruction is executed, the instruction is suspended
After the instruction is suspended, the PC indicates the next instruction after DIVHU/DIVWU
An interrupt is generated by the next instruction
PC-3 is saved in the stack memory to execute the DIVHU/DIVWU instruction again
Table 21-6. Normal Interrupt Processing and Interrupt Processing while Executing Division Instructions
Normal interrupt Interrupts while Executing
DIVHU/DIVWU Instruction
(SP-1) PSW (SP-1) PSW
(SP-2) (PC)S (SP-2) (PC-3)S
(SP-3) (PC)H (SP-3) (PC-3)H
(SP-4) (PC)L (SP-4) (PC-3)L
PCS 0000 PCS 0000
PCH (Vector) PCH (Vector)
PCL (Vector) PCL (Vector)
SP SP-4 SP SP-4
IE 0 IE 0
Caution Disable interrupts when executing the DIVHU or DIVWU instruction in an interrupt servicing routine.
Alternatively, unless they are executed in the RAM area, note that execution of a DIVHU or DIVWU
instruction is possible even with interrupts enabled as long as a NOP instruction is added immediately
after the DIVHU or DIVWU instruction in the assembly language source code. The following compilers
automatically add a NOP instruction immediately after any DIVHU or DIVWU instruction output during
the build process.
- V. 1.71 and later versions of the CA78K0R (Renesas Electronics compiler), for both C and
assembly language source code
- Service pack 1.40.6 and later versions of the EWRL78 (IAR compiler), for C language source code
- GNURL78 (KPIT compiler), for C language source code
The AX, BC, DE, and HL registers are used for DIVHU/DIVWU. For the interrupt processing, save these registers in the
stack memory.
<R>

Table of Contents

Other manuals for Renesas RL78 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas RL78 Series and is the answer not in the manual?

Renesas RL78 Series Specifications

General IconGeneral
CoreRL78
CPU Clock SpeedUp to 32 MHz
Flash MemoryUp to 512 KB
RAMUp to 32 KB
Operating Voltage1.6 V to 5.5 V
Low Power ModesHALT, STOP, SNOOZE
CPU Architecture16-bit
Temperature Range-40°C to +85°C
PackageLQFP
Timers16-bit timers
Communication InterfacesUART, I2C, LIN
A/D Converter12-bit

Related product manuals