![Cmsemicon BAT32G1 9 Series Скачать руководство пользователя страница 533](http://html1.mh-extra.com/html/cmsemicon/bat32g1-9-series/bat32g1-9-series_user-manual_2627609533.webp)
BAT32G1x9 user manual | Chapter 16 D/A converter
533 / 1149
Rev.1.02
16.5 Considerations when using D/A converters
Considerations when using D/A converters are as follows.
(1) When the port is set to an analog pin through the PMC register (port mode control register), the
input/output function of the digital ports with the AN0 pin and anO1 pin multiplexing does not work. If
you read the P2 register while setting the port to the analog pin via the ADPC register, the value of "0"
is read in input mode and the setting value of P2 is read in output mode. In addition, output data is not
output to pins even if set to digital output mode.
(2) In sleep mode and deep sleep mode, the D/A converter continues to run. To reduce power
consumption, the DACEi bit must be cleared to "0" and the WFI instructions must be executed after
stopping the D/A conversion.
Note i = 0,
1
(3) When stopping the real-time output mode, including when it changes to normal mode, you need to
follow these steps:
•
Wait at least 3 clocks after stopping the trigger output source, then place the DACEi bit and the
DAMDi position "0".
•
Place the DACEN position of the PER1 register "0" (stop) after placing the DACEi bit and the
DAMDi position "0" DAC)
。
If the DACEN position is "0", all registers inside the DAC are cleared.
Therefore, when running again, each SFR needs to be set.
(4) When D/A conversion is allowed, A/D conversion cannot be performed on analog input
pins that are multiplexed with the AN0 pin and the ANO1 pin.
(5) In real-time output mode, the value of the DACSi register must be set before generating a
trigger signal for real-time output mode.
The setting value of the DACSi register cannot be changed while the trigger signal is active.
(6) Because the output impedance of the D/A converter is high, it is not possible to draw current from
the ANO0 and ANO1 pins. With low input impedance to the load, a tracking amplifier must be inserted
between the load and the AN0 pins and the ANO1 pins. In addition, it is important to minimize the
routing between the tracking amplifier and the load (due to the high output impedance).
If the wiring is too long, it is necessary to process the grounding graph and so on around the wiring.
(7) If you want to enter deep sleep mode when the real-time output mode is active, you must disable
event links for EVENTC before entering deep sleep mode.