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

Accessing 4-byte and 8-byte Variables and Interrupts_CC-RL

Last Updated:02/07/2018

Question:

I am using RL78 Compiler CC-RL.
Is there any possibility of an interrupt during access to 4-byte variables or 8-byte variables?

Answer:

The instruction set of RL78 Family does not contain an instruction that accesses 4-byte and 8-byte data at one time.
Therefore, if accessing 4-byte and 8-byte data is required, CC-RL outputs a code that uses multiple instructions.
Because multiple instructions are used, an interrupt might be generated during access.
If you want to prohibit interrupt during access, use the embedded function _DI.
Suitable Products
CS+ (formerly CubeSuite+)
e² studio
C Compiler Package for RL78 Family
  • 이 기사가 도움이 되셨나요?