RL78/F13, F14 CHAPTER 13 D/A CONVERTER (RL78/F14 Only)
R01UH0368EJ0210 Rev.2.10 767
Dec 10, 2015
Cautions 1. Set a channel to be used for D/A conversion to the input mode by using port mode register 8 (PM8).
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).
13.3.2 Peripheral Enable Register 1 (PER1)
The PER1 register enables or disables clock supply to each peripheral hardware unit. Clock supply to a hardware unit
that is not used is stopped in order to reduce the power consumption and noise.
When the D/A converter is used, be sure to set bit 7 (DACEN) of this register to 1.
Set the PER1 register by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation clears this register to 00H.
Figure 13-3. Format of Peripheral Enable Register 1 (PER1)
Address: F007AH After reset: 00H
Symbol <7> <6> <5> <4> <3> 2 1 <0>
PER1
DACEN
Note
TRGEN
CMPEN
Note
TRD0EN DTCEN 0 0 TRJ0EN
DACEN
Note
Control of D/A converter input clock R/W
0 Stops input clock supply.
• SFR used by the D/A converter cannot be written to.
• The D/A converter is in the reset state.
R/W
1 Supplies input clock.
• SFR used by the D/A converter can be read/written to.
Note Only for RL78/F14.
Cautions 1. When setting the D/A converter, be sure to set the DACEN bit to 1 first. If DACEN = 0,
writing to a control register of the D/A converter is ignored, and all read values are
default values (except for port mode register 8 (PM8), port register 8 (P8), A/D port
configuration register (ADPC), and D/A converter mode register 2 (DAM2)).
2. Be sure to clear the following bits to 0.
RL78/F13: bits 1, 2, 5, 6, and 7
RL78/F14: bits 1, 2, and 6