Dac Channel Buffer Calibration - ST STM32G0 1 Series Reference Manual

Table of Contents

Advertisement

RM0444
x
MODE
[2:0]
Mode
1
0
0
1
0
1
Sample and
hold mode
1
1
0
1
1
1
16.4.12

DAC channel buffer calibration

The transfer function for an N-bit digital-to-analog converter (DAC) is:
Where V
scale voltage, and V
Due to output buffer characteristics, the voltage offset may differ from part-to-part and
introduce an absolute offset error on the analog output. To compensate the V
is required by a trimming technique.
The calibration is only valid when the DAC channelx is operating with buffer enabled
(MODEx[2:0] = 000b or 001b or 100b or 101b). if applied in other modes when the buffer is
off, it has no effect. During the calibration:
The buffer output is disconnected from the pin internal/external connections and put in
tristate mode (HiZ).
The buffer acts as a comparator to sense the middle-code value 0x800 and compare it
to VREF+/2 signal through an internal bridge, then toggle its output signal to 0 or 1
depending on the comparison result (CAL_FLAGx bit).
Two calibration techniques are provided:
Factory trimming (default setting)
The DAC buffer offset is factory trimmed. The default value of OTRIMx[4:0] bits in
DAC_CCR register is the factory trimming value and it is loaded once DAC digital
interface is reset.
User trimming
The user trimming can be done when the operating conditions differs from nominal
factory trimming conditions and in particular when V
values change and can be done at any point during application by software.
Note:
Refer to the datasheet for more details of the Nominal factory trimming conditions
In addition, when V
the calibration is required.
The steps to perform a user trimming calibration are as below:
Table 84. Channel output modes summary (continued)
Buffer
Connected to external pin
Enabled
Connected to external pin and to on chip peripherals (such as
comparators)
Connected to external pin and to on chip peripherals (such as
comparators)
Disabled
Connected to on chip peripherals (such as comparators)
V
out
is the analog output, D is the digital input, G is the gain, V
OUT
is the offset voltage. For an ideal DAC channel, G = 1 and V
os
is removed (example the device enters in STANDBY or VBAT modes)
DD
Output connections
D 2 N 1
(
(
)
×
×
=
G
V
RM0444 Rev 5
Digital-to-analog converter (DAC)
)
+
V
ref
OS
is the nominal full-
ref
voltage, temperature, VREF+
DDA
= 0.
os
, a calibration
os
417/1390
441

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32G0 1 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents

Save PDF