Operation In Scan Mode; Figure 14-10: Example Of Scan Mode (A/D Trigger Scan) Operation (Ani2-Ani5) - NEC V850E/CA1 ATOMIC Preliminary User's Manual

32-/16-bit single-chip microcontroller
Table of Contents

Advertisement

14.6.2 Operation in scan mode

The pins from the first analog input pin through the last analog input pin, specified in the ADSCM0 reg-
ister, are sequentially selected and A/D converted. The A/D conversion result is stored in the ADCRm
register corresponding to the analog input (m = 0 to 11). When conversion stops through the last analog
input pin, an A/D conversion interrupt (INTAD) is generated, which terminates A/D conversion
(CS bit of ADSCM0 register = 0).
To restart A/D conversion, set the CE bit of the ADSCM0 register. This is optimal for an application that
regularly monitors multiple analog inputs.
Notes:
1. n =
SANI [3:0] = 0 to 10
2. m = ANIS [3:0] = 1 to 11
Caution: Always set SANI[3:0] < ANIS[3:0]
Exception: When bits SANI[3:0] = ANIS[3:0] = 0, just the analog input ANI0 is
scanned.

Figure 14-10: Example of Scan Mode (A/D Trigger Scan) Operation (ANI2-ANI5)

ADSCM0
(1) CE bit of ADSCM0 = 1 (Enabled)
(2) A/D conversion of ANI2
(3) Store conversion result in ADCR2
(4) A/D conversion of ANI3
(5) Store conversion result in ADCR3
Chapter 14 A/D Converter
Analog input
Note 1
ANIn
:
Note 2
ANIm
ANI0
ANI1
ANI2
ANI3
ANI4
ANI5
:
ANI11
Preliminary User's Manual U14913EE1V0UM00
A/D conversion result register
ADCRn
:
ADCRm
A/D converter
(6) A/D conversion of ANI4
(7) Store conversion result in ADCR4
(8) A/D conversion of ANI5
(9) Store conversion result in ADCR5
(10) Generate INTAD interrupt
ADCR0
ADCR1
ADCR2
ADCR3
ADCR4
ADCR5
:
ADCR11
505

Advertisement

Table of Contents
loading

Table of Contents