RL78/I1D
Operation state switching IAR
R01AN3597EJ0100 Rev.1.00
Page 39 of 42
Jan. 31, 2017
4.7.22.
12-bit interval timer interrupt processing
Figure 4.26 shows the flowchart of the 12-bit interval timer interrupt processing.
r_it_interrupt
P6.0(LED0): Turning off
P6.1(LED1): Turning on
return
Variable
state
g_flash_mode
P6.0(LED0): Turning on
P6.1(LED1): Turning off
P6.0(LED0): blinking (high speed)
P6.1(LED1): Turning off
P6.0(LED0): Turning on
P6.1(LED1): Turning on
P6.0(LED0): Blinking (low speed)
P6.1(LED1): Turning off
P6.0(LED0): Blinking (super high speed)
P6.1(LED1): Blinking (super high speed)
_00_FLASHMODE_LV
(LV mode)
_01_FLASHMODE_LS_0
(LS normal mode)
_02_FLASHMODE_LS_1
(LS low consumption mode)
_04_FLASHMODE_HS
(HS mode)
_08_FLASHMODE_LP
(LP mode)
_10_FLASHMODE_HS_ERROR
(HS error mode)
Blinking (low speed) : Off
On or On
Off in 400ms interval.
Blinking (high speed) : Off
On or On
Off in 200ms interval.
Blinking (super high speed): Off
On or On
Off in 100ms interval.
default:
Figure 4.26
12-bit interval timer interrupt processing