![Cmsemicon BAT32G1 9 Series Скачать руководство пользователя страница 528](http://html1.mh-extra.com/html/cmsemicon/bat32g1-9-series/bat32g1-9-series_user-manual_2627609528.webp)
BAT32G1x9 user manual | Chapter 16 D/A converter
528 / 1149
Rev.1.02
16.3.2 The mode register (DAM) of the D/A converter
This is the register that controls the operation of the D/A converter.
Set the DAM registers via the 8-bit memory manipulation instructions. After generating a
reset signal, the value of this register changes to "00H".
Figure 16-3 Format of the mode register (DAM) of a 6-3D/A converter
Address: 40044736H
After reset:
00H R/W
symbol
7
6
DAM
DACEi
Control of the conversion run of the
D/A converter
0
Stop the D/A
conversion.
1
Enable D/A
conversion.
DAMDi
The choice of operating mode for the D/A converter
0
Usually operating mode
1
Real-time output mode
Note i = 0,
1
16.3.3 The D/A conversion value sets register i (DACSi) (i=0, 1).
This is the register that sets the analog voltage value output to the ANO0 pin and the ANO1 pin when
using the D/A converter. The DACSi registers are set via the 8-bit memory operation instructions.
After generating a reset signal, the value of these registers changes to "00H".
Figure 16-4 The D/A conversion value sets the format of register i (DACSi) (i=0, 1).
Address: 40044734H
(DACS0),
40044735H
(DACS1) after reset:
00H R/W
Symbol
7 6 5 4 3 2 1 0
DACSi
Note The analog output voltage (VANOi
) of the
D/A
converter
is as follows:
VANOi=V
DD
(DACSi)/256
When the D/A converter is not in use, in order to reduce unnecessary current consumption, it is
necessary to place the DACEi position "0" (disable output) and set the DACSi register to "00H" to make R-2R
There is no current flowing through the resistor.
5
4
32
1
0
0
0
DACE1
DACE0
0
0
DAMD1
DAMD0
DACSi7
DACSi6
DACSi5
DACSi4
DACSi3
DACSi2
DACSi1
DACSi0