RL78/I1D
Operation state switching IAR
R01AN3597EJ0100 Rev.1.00
Page 41 of 42
Jan. 31, 2017
5. Power supply current measurement of the flash operating modes
The application note, there is a power supply current measurement mode. Please enable “#define
_CURRENT_EVALUATION_MODE_” (r_cg_userdefine.h).
Power supply current measurement mode operates only the main system clock. All peripheral functions is stoped.
Power supply current measurement mode can measure the HALT mode.
The operation of the power supply current measurement mode
RL78/I1D operation state is switched by a button is pressed (INTP0 interrupt generation).
Wait for the button press (INTP0 interrupt generation) in HALT mode.
All peripheral functions other than the main system clock is stopped.
Table 5.1 is describe the details and transition of power supply current measurement mode.
Table 5.1
Details and transition of power supply current measurement mode
Transition state
State
Operation clock
Range of operation
voltage
Status of the next
transition
0
(after reset)
LV mode
HOCO: 4MHz
1.6V~3.6V
1
1
LV mode
MOCO: 4MHz
1.8V~3.6V
2
2
LS mode
(low consumption setting)
MOCO: 4MHz
1.8V~3.6V
3
3
LS mode
(Normal setting)
HOCO: 8MHz
1.8V~3.6V
4 or
4-Error
4
HS mode
HOCO: 16MHz
2.4V~3.6V
5
4-Error
LS mode
(Normal setting)
HOCO: 8MHz
1.8V~3.6V
5
5
LS mode
(Normal setting)
HOCO: 8MHz
1.8V~3.6V
6
6
LP mode
MOCO: 1MHz
1.8V~3.6V
7
7
LS mode
(Normal setting)
HOCO: 8MHz
1.8V~3.6V
0
Hardware configuration of the power supply current measurement mode
Power supply current measurement mode sets the digital input/output pin to the low-level output(P40/TOOL0 pin
input setting). For this reason, please digital input/output pin is open.
If LED1 and LED2 are connected, because the current flows to the P60 pin and P61 pin, please check the power
supply current by subtracting the amount of current.