![Cmsemicon BAT32G1 9 Series Скачать руководство пользователя страница 531](http://html1.mh-extra.com/html/cmsemicon/bat32g1-9-series/bat32g1-9-series_user-manual_2627609531.webp)
BAT32G1x9 user manual | Chapter 16 D/A converter
531 / 1149
Rev.1.02
16.4.2 Operation of real-time output mode
Each channel of the D/A converter is triggered by the event signal of eventC and
the D/A conversion is performed.
The setup method is as follows:
①
Take the DACEN position "1" of the PER1 register (peripheral allow register 1) and start providing
the input clock to the D/A converter.
②
Set the port to the analog pin through the PMC register (port mode control register).
③
Place the DAMDi position of the DAM register (the mode register of the D/A converter) "0"
(usually mode).
④
Sets the analog voltage value of the ANOi pin output to the DACSi register (D/A conversion value
setting register i).
⑤
Place the DACEi position of the DAM register "1" (allow D/A conversion).
Start the D/A conversion and output the analog voltage set (3) to the ANOi pin after the settling
time has elapsed.
⑥
The trigger signal for the real-time output mode is set by the event output target selection register n
(ELSELRn, n=00~2 1).
⑦
Place the DAM Registers at THE DAMDi position "1" (real-time output mode).
⑧
Start the run of the event
occurrence source.
The above (1) ~ (8) is the
initial setting.
⑨
Thereafter, by generating a trigger signal for the real-time output mode, the D/A conversion begins,
and after a settling time has elapsed, the analog voltage set by (4) is output to the ANOi pin.
Before performing the next D/A conversion, which generates a trigger signal for real-time output
mode, set the analog voltage value of the ANOi pin output to the DACSi registers.
The analog voltage value of the ANOi pin output must be set to the DACSi registers before the next D/A
conversion, which generates a trigger signal for real-time output mode.
If the DACEi position of the DAM register is "0" (stops the D/A conversion), the D/A conversion is stopped.
Note 1
Even if the
value of the
DACEi
bit is set to
"1"
"0"
"1"
, the DACSi
will be set after the settling time after
the
last
"1" The analog voltage of the register setting is output to the
ANOi
pin.
2. The interval between generation of trigger signals for the same channel real-time output mode must be greater
than the settling time. If a trigger signal for the real-time output mode is generated during the settled time, the
D/A
conversion is aborted and the conversion restarts.
3. The generation interval of the trigger signal for the same channel real-time output mode must be greater than
3
f
CLK
clocks. If the
start trigger is generated continuously at intervals
of less than or equal to
3
f
CLK
clocks, the
D/A
conversion is performed only when the
first
trigger is generated.