RL78/G1P
CHAPTER 10 D/A CONVERTER
R01UH0895EJ0100 Rev.1.00
301
Nov 29, 2019
10.3 Configuration of A/D Converter
The D/A converter uses the following registers.
A/D port configuration register (ADPC)
Peripheral enable register 1 (PER1)
D/A converter mode register (DAM)
D/A conversion value setting registers 0, 1 (DACS0, DACS1)
Port mode register 2 (PM2)
10.3.1 A/D port configuration register (ADPC)
This register switches the ANI0/P20 to ANI7/P27 pins to either analog input or port digital I/O.
The ADPC register can be set by an 8-bit memory manipulation instruction.
Reset signal generation clears this register to 00H.
Figure 10-2. 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 ADPC7
Note
ADPC6
Note
ADPC5
Note
ADPC4
Note
ADPC3 ADPC2 ADPC1 ADPC0
ADPCn
Analog I/O (A)/digital I/O (D) selection of P2n/ANI2n
0
Analog I/O (A) (default)
1
Digital I/O (D)
Note
32-pin products only
Cautions 1. Set a channel to be used for D/A conversion in the input mode by using port mode register 2
(PM2).
2. Do not set the pin that is set by the ADPC register as digital I/O to D/A conversion operation
enable by using the D/A converter mode register (DAM).