Skip to main content
Knowledgebase
Home
Renesas Singapore - Knowledgebase

Please explain how to use the C language to enable multiple interrupts?

Latest Updated:02/27/2012

Question:

Please explain how to use the C language to enable multiple interrupts?

Answer:

When declaring interrupt handling functions (#pragma INTERRUPT), code which enables multiplex interrupts immediately after going into interrupt can be outputted by adding "/E".The sample code is shown below:

#pragma INTERRUPT /E  i_func
void i_func(){
}

For more details, please refer to the "M3T-NC30WA C compiler user’s manual".

Suitable Products
R8C/1x
R8C/2x
R8C/3x
R8C/Lx
R8C/Mx
M16C/62A
M16C/62A(M16C/62T)
M16C/62M
M16C/62N
M16C/62N(M3062GF8NFP, M3062GF8NGP)
M16C/62P
M16C/63
M16C/64A
M16C/64C
M16C/65
M16C/65C
M16C/6C
M16C/6N4, M16C/6N5
M16C/6NK, M16C/6NL, M16C/6NM, M16C/6NN
M16C/5L, M16C/56
M16C/5LD, M16C/56D
M16C/5M, M16C/57
M16C/30P
M16C/29
M16C/28
M16C/26A
M16C/1N