Setting Method - NEC V850ES/KE1+ User Manual

32-bit single-chip microcontrollers
Table of Contents

Advertisement

13.5.5 Setting method

The following describes how to set registers.
(1) When using the A/D converter for A/D conversion
<1> Set (1) the ADM.ADCS2 bit.
<2> Select the channel and conversion time by setting the ADS.ADS2 to ADS.ADS0 bits and the
ADM.ADHS1, ADM.ADHS0, and ADM.FR2 to ADM.FR0 bits.
<3> Set (1) the ADM.ADCS bit.
<4> Transfer the A/D conversion data to the ADCR register.
<5> An interrupt request signal (INTAD) is generated.
<Changing the channel>
<6> Change the channel by setting the ADS2 to ADS0 bits.
<7> Transfer the A/D conversion data to the ADCR register.
<8> The INTAD signal is generated.
<Ending A/D conversion>
<9> Clear (0) the ADCS bit.
<10> Clear (0) the ADCS2 bit.
Cautions 1. The time taken from <1> to <3> must be 1
mode) or longer.
2. Steps <1> and <2> may be reversed.
3. Step <1> may be omitted. However, if omitted, do not use the first conversion result
after <3>.
4. The time taken from <4> to <7> is different from the conversion time set by the ADHS1,
ADHS0, and FR2 to FR0 bits.
The time taken for <6> and <7> is the conversion time set by the ADHS1, ADHS0, and
FR2 to FR0 bits.
CHAPTER 13 A/D CONVERTER
User's Manual U16896EJ2V0UD
μ
s (high-speed mode) or 14
μ
s (normal
383

Advertisement

Table of Contents
loading

This manual is also suitable for:

?pd70f3302?pd703302?pd70f3302y?pd703302y

Table of Contents