EasyManuals Logo
Home>Renesas>Computer Hardware>RL78 Series

Renesas RL78 Series User Manual

Renesas RL78 Series
1879 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #805 background imageLoading...
Page #805 background image
RL78/F13, F14 CHAPTER 13 D/A CONVERTER (RL78/F14 Only)
R01UH0368EJ0210 Rev.2.10 773
Dec 10, 2015
13.4 Operations of D/A Converter
13.4.1 Operation in Normal Mode
D/A conversion is performed using write operation to the DACS0 register as the trigger.
The setting method is described below.
<1> Set the DACEN bit of the peripheral enable register 1 (PER1) to 1 to start the supply of the input clock to the
D/A converter.
<2> Use the A/D port configuration register (ADPC) to set the ports to analog pins.
<3> Set the ANO0EN bit of the D/A converter mode register 2 (DAM2) to 1 (analog output enable). When setting
bits 5 and 4 (CVRS1 and CVRS0) in the comparator I/O select register (CMPSEL) to 10B (internal reference
voltage (DAC output) is selected), set the ANO0EN bit in this register to 0 (analog output is disabled).
<4> Set the DAMD0 bit of the D/A converter mode register (DAM) to 0 (normal mode).
<5> Set the analog voltage value to be output to the ANO0 pin to the D/A conversion value setting register 0
(DACS0).
Steps <1> to <5> above constitute the initial settings.
<6> Set the DACE0 bit of the DAM register to 1 (D/A conversion enable).
D/A conversion starts, and then, after the settling time elapses, the analog voltage set in step <5> is output to
the ANO0 pin.
<7> To perform subsequent D/A conversions, write to the DACS0 register.
The previous D/A conversion result is held until the next D/A conversion is performed.
When the DACE0 bit of the DAM register is set to 0 (D/A conversion operation stop), D/A conversion stops.
If the ports are set to digital pins using the ADPC register, the ANO0 pin goes into a high-impedance state when the
PM80 bit of the PM8 register for the port = 1 (input mode), and the ANO0 pin outputs the set value of the P8 register when
the PM80 bit = 0 (output mode).
Cautions 1. Even if 1, 0, and then 1 is set to the DACE0 bit, there is a wait after 1 is set for the last time.
2. If the DACS0 register is rewritten during the settling time, D/A conversion is aborted and
reconversion by using the newly written values starts.

Table of Contents

Other manuals for Renesas RL78 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas RL78 Series and is the answer not in the manual?

Renesas RL78 Series Specifications

General IconGeneral
BrandRenesas
ModelRL78 Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals