Renesas g1a Answering Machine User Manual


  Open as PDF
of 1004
 
RL78/G1A CHAPTER 4 PORT FUNCTIONS
R01UH0305EJ0200 Rev.2.00 111
Jul 04, 2013
4.3.7 A/D port configuration register (ADPC)
This register switches the P20/ANI0 to P27/ANI7, and P150/ANI8 to P154/ANI12 pins to digital I/O of port or analog
input of A/D converter.
The ADPC register can be set by an 8-bit memory manipulation instruction.
Reset signal generation sets this register to 00H.
Figure 4-7. Format of A/D Port Configuration Register (ADPC)
Address: F0076H After reset: 00H R/W
Symbol 7 6 5 4 3 2 1 0
ADPC 0 0 0 0 ADPC3 ADPC2 ADPC1 ADPC0
Analog input (A)/digital I/O (D) switching
ADPC3
ADPC2
ADPC1
ADPC0
ANI12/P154
ANI11/P153
ANI10/P152
ANI9/P151
ANI8/P150
ANI7/P27
ANI6/P26
ANI5/P25
ANI4/P24
ANI3/P23
ANI2/P22
ANI1/P21
ANI0/P20
0 0 0 0 A A A A A A A A A A A A A
0 0 0 1 D D D D D D D D D D D D D
0 0 1 0 D D D D D D D D D D D D A
0 0 1 1 D D D D D D D D D D D A A
0 1 0 0 D D D D D D D D D D A A A
0 1 0 1 D D D D D D D D D A A A A
0 1 1 0 D D D D D D D D A A A A A
0 1 1 1 D D D D D D D A A A A A A
1 0 0 0 D D D D D D A A A A A A A
1 0 0 1 D D D D D A A A A A A A A
1 0 1 0 D D D D A A A A A A A A A
1 0 1 1 D D D A A A A A A A A A A
1 1 0 0 D D A A A A A A A A A A A
1 1 0 1 D A A A A A A A A A A A A
1 1 1 0 A A A A A A A A A A A A A
1 1 1 1 A A A A A A A A A A A A A
Cautions 1. Set the port to analog input by ADPC register to the input mode by using port mode registers 2,
15 (PM2, PM15).
2. Do not set the pin set by the ADPC register as digital I/O by the analog input channel
specification register (ADS).
3. When using AV
REFP and AVREFM, set ANI0 and ANI1 to analog input and set the port mode
register to the input mode.
<R>