Datasheet

Section 17 D/A Converter
Rev.6.00 Mar. 18, 2009 Page 685 of 980
REJ09B0050-0600
Table 17.2 Control of D/A Conversion
Bit 5
DAE
Bit 7
DAOE3
Bit 6
DAOE2
Description
0 0 0 D/A conversion disabled
1 Channel 2 D/A conversion enabled, channel3 D/A conversion
disabled
1 0 Channel 3 D/A conversion enabled, channel2 D/A conversion
disabled
1 Channel 2 and 3 D/A conversions enabled
1 0 0 D/A conversion disabled
1 Channel 2 and 3 D/A conversions enabled
1 0
1
17.4 Operation
The D/A converter includes D/A conversion circuits for two channels, each of which can operate
independently.
When DAOE bit in DACR23 is set to 1, D/A conversion is enabled and the conversion result is
output.
The operation example concerns D/A conversion on channel 2. Figure 17.2 shows the timing of
this operation.
[1] Write the conversion data to DADR2.
[2] Set the DAOE0 bit in DACR23 to 1. D/A conversion is started. The conversion result is output
from the analog output pin DA2 after the conversion time t
DCONV
has elapsed. The conversion
result is continued to output until DADR0 is written to again or the DAOE0 bit is cleared to 0.
The output value is expressed by the following formula:
DADRcontents
256
× Vref
[3] If DADR2 is written to again, the conversion is immediately started. The conversion result is
output after the conversion time t
DCONV
has elapsed.
[4] If the DAOE0 bit is cleared to 0, analog output is disabled.