RL78/G1P
CHAPTER 10 D/A CONVERTER
R01UH0895EJ0100 Rev.1.00
303
Nov 29, 2019
10.3.3 D/A converter mode register (DAM)
This register controls the operation of the D/A converter.
The DAM register can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation clears this register to 00H.
Figure 10-4. Format of D/A Converter Mode Register (DAM)
Address: FFF5CH After reset: 00H R/W
Symbol
7 6 <5>
<4> 3 2 1 0
DAM
DACE1 DACE0
DAMD1 DAMD0
DACEi
D/A conversion operation control
0
Stops D/A conversion operation
1
Enables D/A conversion operation
DAMDi
D/A converter operation mode selection
0
Normal mode
1
Real-time output mode
Remark
i = 0, 1
10.3.4 D/A conversion value setting register i (DACSi) (i = 0, 1)
This register is used to set the analog voltage value to be output to the ANO0 and ANO1 pins when the D/A converter
is used.
The DACSi register can be read by a 16-bit memory manipulation instruction.
Reset signal generation clears this register to 00H.
Figure 10-5. Format of D/A Conversion Value Setting Register i (DACSi) (i = 0, 1)
Address: FFF58H, FFF59H (DACS0), FFF5AH, FFF5BH (DACS1) After reset: 0000H R/W
Symbol 15
14
13
12
11
10 9 8 7 6 5 4 3 2 1 0
DACSi
DAC
Si9
DAC
Si8
DAC
Si7
DAC
Si6
DAC
Si5
DAC
Si4
DAC
Si3
DAC
Si2
DAC
Si1
DAC
Si0
Remark
The relation between the resolution and analog output voltage (VANOi) of the D/A converter are as follows.
VANOi = Reference voltage for D/A converter × (DACSi)/1024
When the D/A converter is not used, set the DACEi bit to 0 (output disable) and set the DACSi register to 00H to
prevent current from flowing into the R-2R resistor ladder to reduce unnecessary current consumption.