Operation; Figure 21.2 D/A Converter Operation Example - Renesas H8S/2158 User Manual

16-bit single-chip microcomputer h8s family/h8s/2100 series
Table of Contents

Advertisement

Section 21 D/A Converter
21.4

Operation

The D/A converter incorporates two channels of the D/A circuits and can be converted
individually.
When the DAOE bit in DACR is set to 1, D/A conversion is enabled and conversion results are
output.
An example of D/A conversion of channel 0 is shown below. The operation timing is shown in
figure 21.2.
1. Write conversion data to DADR0.
2. When the DAOE0 bit in DACR is set to 1, D/A conversion starts. After the interval of t
conversion results are output from the analog output pin DA0. The conversion results are
output continuously until DADR0 is modified or the DAOE0 bit is cleared to 0. The output
value is calculated by the following formula:
DADR0 contents/256
3. Conversion starts immediately after DADR0 is modified. After the interval of t
conversion results are output.
4. When the DAOE bit is cleared to 0, analog output is disabled.
DADR0
write cycle
φ
Address
DADR0
DAOE0
DA 0
High impedance state
Legend:
t
: D/A conversion time
DCONV
Rev. 3.00 Jan 25, 2006 page 694 of 872
REJ09B0286-0300
×
AV
DACR
write cycle
Conversion data (1)
t
DCONV

Figure 21.2 D/A Converter Operation Example

ref
DADR0
write cycle
Conversion result (1)
,
DCONV
DACR
write cycle
Conversion data (2)
Conversion
result (2)
t
DCONV
,
DCONV

Advertisement

Table of Contents
loading

Table of Contents