A/D Converter Input Select Register Format - NEC PD78052 User Manual

Pd78054 series; pd78054y series 8-bit single-chip microcontrollers
Table of Contents

Advertisement

(2) A/D converter input select register (ADIS)
This register determines whether the ANI0/P10 to ANI7/P17 pins should be used for analog input channels
or ports. Pins other than those selected as analog input can be used as input/output ports.
ADIS is set with an 8-bit memory manipulation instruction.
RESET input sets ADIS to 00H.
Cautions 1. Set the analog input channel in the following order.
(1) Set the number of analog input channels with ADIS.
(2) Using A/D converter mode register (ADM), select one channel to undergo A/D
conversion from among the channels set for analog input with ADIS.
2. No internal pull-up resistor can be used to the channels set for analog input with ADIS,
irrespective of the value of bit 1 (PUO1) of the pull-up resistor option register L (PUOL).
Figure 14-4. A/D Converter Input Select Register Format
7
6
5
4
Symbol
0
0
0
0
ADIS
CHAPTER 14 A/D CONVERTER
3
2
1
0
ADIS3
ADIS2 ADIS1 ADIS0
ADIS3
0
0
0
0
0
0
0
0
1
After
Address
R/W
Reset
FF84H
00H
R/W
ADIS2
ADIS1
ADIS0
Number of Analog Input Channel Selection
0
0
No analog input channel (P10-P17)
0
0
0
1
1 channel (ANI0, P11-P17)
0
1
0
2 channel (ANI0, ANI1, P12-P17)
0
1
1
3 channel (ANI0-ANI2, P13-P17)
1
0
0
4 channel (ANI0-ANI3, P14-P17)
1
0
1
5 channel (ANI0-ANI4, P15-P17)
1
1
0
6 channel (ANI0-ANI5, P16, P17)
1
1
1
7 channel (ANI0-ANI6, P17)
0
0
0
8 channel (ANI0-ANI7)
Other than above
Setting prohibited
271

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents