메인 콘텐츠로 건너뛰기
Knowledgebase
Home
Renesas Korea

How to define interrupt functions when using the re linking function?

Latest Updated:12/01/2014

Question:

I am using the CA78K0R compiler for RL78 and 78K0R products. How do I define interrupt functions when using the relinking function?
Interrupt functions are defined in the boot area and the flash area.

Answer:

Specify both #pragma interrupt and the code for the body of the interrupt function in the area to which the interrupt function will be allocated.
Therefore, if you wish to define an interrupt function in the boot area, specify #pragma interrupt and the interrupt function body in the boot area only. When defining an interrupt function in the flash area, do not place any code in the boot area, but specify #pragma interrupt and the body of the interrupt function in the flash area only.
Suitable Products
C Compiler Package for RL78 and 78K Families
Compiler for RL78 Family and 78K0R [CA78K0R]
Compiler for 78K0R [CC78K0R]
Assembler Package for 78K0R [RA78K0R]