EasyManuals Logo

Renesas RL78/G1H User Manual

Renesas RL78/G1H
941 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 #747 background imageLoading...
Page #747 background image
RL78/G1H CHAPTER 19 INTERRUPT FUNCTIONS
R01UH0575EJ0120 Rev. 1.20 Page 729 of 920
Dec 22, 2016
The AX, BC, DE, and HL registers are used for DIVHU/DIVWU. Use these registers by stacking them for
interrupt servicing.
Caution When executing DIVHU and DIVWU instructions during the interrupt processing, execute
them in the interrupt disabled (DI) state.
Excepting the instruction execution in RAM area, when NOP instruction is added right after
DIVHU and DIVWU instructions in the assembly language source, DIVHU and DIVWU
instructions can be executed even in the interrupt enabled state.
For the following compilers, when DIVHU and DIVWU instructions are output at building, NOP
instruction is automatically inserted right after the output.
• CA78K0R (compiler product manufactured by Renesas Electronics Corporation) V1.71 or
later: C language source and assembly language source
• EWRL78 (compiler product manufactured by IAR Systems): C language source of Service
pack 1.40.6 or later
• GNURL78 (compiler manufactured by KPIT Technologies Ltd.): C language source of 1.40.6
or later
MOVW AX, #8081H
MOVW BC, #8080H
MOVW DE, #0002H
MOVW HL, #0000H
DIVWU
MOVW !addr16, AX
MOVW AX, BC
MOVW !addr16, AX
MOVW AX, DE
MOVW !addr16, AX
MOVW AX, HL
MOVW !addr16, AX
PUSH AX
PUSH BC
PUSH DE
PUSH HL
DIVWU
POP HL
POP DE
POP BC
POP AX
RETI
Interrupt1
PUSH AX
PUSH BC
PUSH DE
PUSH HL
DIVWU
POP HL
POP DE
POP BC
POP AX
RETI
Interrupt2

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Renesas RL78/G1H Specifications

General IconGeneral
BrandRenesas
ModelRL78/G1H
CategoryMicrocontrollers
LanguageEnglish

Related product manuals