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

Are there any instructions when I change interrupt priority level?

Latest Updated:10/10/2006

Question:

Are there any instructions for when I change the interrupt priority level?

Answer:

Because the interrupt request bit(IR)and interrupt priority level selection bits(ILVL0-ILVL2) are assigned to the same address, when you change the interrupt priority level with the MOV instruction, the interrupt request bit may be cleared to "0". To avoid clearing the interrupt request bit, use the following instructions to change the interrupt priority level to "0":

AND, OR, BCLR, BSET

In addition, make sure you modify the interrupt control register at a location where the interrupt request for that register will not generate. If there is a possibility of an interrupt request being generated, disable the interrupt before making any modifications. For more datails, please refer to the "Hardware Manual" .
Suitable Products
R8C/18
R8C/19
R8C/1A
R8C/1B
R8C/20
R8C/21
R8C/22
R8C/23
R8C/24
R8C/25
R8C/26
R8C/27
R8C/28
R8C/29
R8C/2A
R8C/2B
R8C/2C
R8C/2D
R8C/2E
R8C/2F
R8C/2G
R8C/2H
R8C/2J
R8C/2K
R8C/2L
R8C/32C
R8C/33C
R8C/34C
R8C/35C
R8C/36C
R8C/38C
R8C/3GC
R8C/3JC
R8C/32D
R8C/33D
R8C/35D
R8C/3GD
R8C/33T
R8C/38A
R8C/L35C
R8C/L36C
R8C/L38C
R8C/L3AC
  • 이 기사가 도움이 되셨나요?