Renesas RL78/G1P Hardware User Manual page 309

16-bit single-chip microcontroller
Hide thumbs Also See for RL78/G1P:
Table of Contents

Advertisement

RL78/G1P
(1) If an interrupt is generated after A/D conversion ends
If the A/D conversion result value is inside the range of values specified by the A/D conversion result comparison
function (which is set up by using the ADRCK bit and ADUL/ADLL register), the A/D conversion end interrupt request
signal (INTAD) is generated.
 While in the select mode
When A/D conversion ends and an A/D conversion end interrupt request signal (INTAD) is generated, the A/D
converter returns to normal operation mode from SNOOZE mode. At this time, be sure to clear bit 2 (AWC = 0:
SNOOZE mode release) of the A/D converter mode register 2 (ADM2). If the AWC bit is left set to 1, A/D
conversion will not start normally in the subsequent SNOOZE or normal operation mode.
 While in the scan mode
If even one A/D conversion end interrupt request signal (INTAD) is generated during A/D conversion of the four
channels, the clock request signal remains at the high level, and the A/D converter switches from the SNOOZE
mode to the normal operation mode. At this time, be sure to clear bit 2 (AWC = 0: SNOOZE mode release) of A/D
converter mode register 2 (ADM2) to 0. If the AWC bit is left set to 1, A/D conversion will not start normally in the
subsequent SNOOZE or normal operation mode.
Figure 9-35. Operation Example When Interrupt Is Generated After A/D Conversion Ends (While in Scan Mode)
Hardware
trigger input
Clock request signal
(internal signal)
ADCS
Conversion
channels
Interrupt signal
(INTAD)
R01UH0895EJ0100 Rev.1.00
Nov 29, 2019
Channel
1
Channel
2
Channel
3
An interrupt is generated
when conversion on one
of the channels ends.
CHAPTER 9 A/D CONVERTER
The clock request signal
remains at the high level.
Channel
4
AWC is cleared to 0.
290

Advertisement

Table of Contents
loading

Table of Contents