RL78/G1P
CHAPTER 9 A/D CONVERTER
R01UH0895EJ0100 Rev.1.00
259
Nov 29, 2019
Figure 9-7. Format of A/D Converter Mode Register 2 (ADM2) (2/2)
Address: F0010H After reset: 00H R/W
Symbol
7 6 5 4
<3>
<2>
1
<0>
ADM2 ADREFP1 ADREFP0 ADREFM
0
ADRCK
AWC
0
ADTYP
ADREFM
Selection of the
side reference voltage source of the A/D converter
0
Supplied from V
SS
1
Supplied from P21/AV
REFM
/ANI1
ADRCK
Checking the upper limit and lower limit conversion result values
0
The interrupt signal (INTAD) is output when the ADLL register
the ADCR register
the ADUL register
(Area 1).
1
The interrupt signal (INTAD) is output when the ADCR register < the ADLL register (Area 2) or the ADUL
register < the ADCR register (Area 3).
Figure 9-8 shows the generation range of the interrupt signal (INTAD) for Area 1 to Area 3.
AWC
Specification of the SNOOZE mode
0
Do not use the SNOOZE mode function.
1
Use the SNOOZE mode function.
When there is a hardware trigger signal in the STOP mode, the STOP mode is exited, and A/D conversion is performed
without operating the CPU (the SNOOZE mode).
The SNOOZE mode function can only be specified when the high-speed on-chip oscillator clock is selected for the
CPU/peripheral hardware clock (f
CLK
). If any other clock is selected, specifying this mode is prohibited.
Using the SNOOZE mode function in the software trigger mode or hardware trigger no-wait mode is prohibited.
Using the SNOOZE mode function in the sequential conversion mode is prohibited.
When using the SNOOZE mode function, specify a hardware trigger interval of at least “shift time to SNOOZE
mode
Note
+ conversion start time + A/D power supply stabilization wait time + A/D conversion time +2 f
CLK
clock”
Even when using the SNOOZE function, set AWC bit to 0 in normal operation mode and change it to 1 just before
shifting to STOP mode.
Also, be sure to change the AWC bit to 0 after returning from STOP mode to normal operation mode.
If the AWC bit is left set to 1, A/D conversion will not start normally in spite of the subsequent SNOOZE or normal
operation mode.
ADTYP
Selection of the A/D conversion resolution
0 12-bit
resolution
1 8-bit
resolution
Note
Refer to “Transition time from STOP mode to SNOOZE mode” in
16.3.3 SNOOZE mode
Caution Only rewrite the value of the ADM2 register while conversion operation is stopped (ADCS = 0, ADCE
= 0).