...the world's most energy friendly microcontrollers
2016-04-28 - Giant Gecko Family - d0053_Rev1.20
715
www.silabs.com
Figure 29.2. DAC Bias Programming
BIASPROG
HALFBIAS
Reference
Current
Int ernal
bandgap
reference
DAC out put
buffer
The minimum value of the BIASPROG bit-field of the DACn_BIASPROG register (i.e.
BIASPROG=0b0000) represents the minimum bias current. Similarly BIASPROG=0b1111 represents
the maximum bias current. The bias current defined by the BIASPROG setting can be halved by setting
the HALFBIAS bit of the DACn_BIASPROG register.
The bias current settings should only be changed while both DAC channels are disabled. The electrical
characteristics given in the datasheet require the bias configuration to be set to the default values, where
no other bias values are given.
29.3.4 Mode
The two DAC channels can act as two separate single ended channels or be combined into one
differential channel. This is selected through the DIFF bit in DACn_CTRL.
29.3.4.1 Single Ended Output
When operating in single ended mode, the channel 0 output is on DACn_OUT0 and the channel 1 output
is on DACn_OUT1. The output voltage can be calculated using Equation 29.2 (p. 715)
DAC Single Ended Output Voltage
V
OUT
= V
DACn_OUTx
- V
SS
= V
ref
x CHxDATA/4095
(29.2)
where CHxDATA is a 12-bit unsigned integer.
29.3.4.2 Differential Output
When operating in differential mode, both DAC outputs are used as output for the bipolar voltage. The
differential conversion uses DACn_CH0DATA as source. The positive output is on DACn_OUT1 and
the negative output is on DACn_OUT0. Since the output can be negative, it is expected that the data is
written in 2’s complement form with the MSB of the 12-bit value being the signed bit. The output voltage
can be calculated using Equation 29.3 (p. 715) :
DAC Differential Output Voltage
V
OUT
= V
DACn_OUT1
- V
DACn_OUT0
= V
ref
x CH0DATA/2047
(29.3)
where CH0DATA is a 12-bit signed integer. The common mode voltage is V
DD
/2.
29.3.5 Sine Generation Mode
The DAC contains an automatic sine-generation mode, which is enabled by setting the SINEMODE bit in
DACn_CTRL. In this mode, the DAC data is overridden with a conversion data taken from a sine lookup
Summary of Contents for Giant Gecko EFM32GG
Page 842: ......