English
Language : 

EFM32WG Datasheet, PDF (707/834 Pages) List of Unclassifed Manufacturers – The EFM32WG Wonder Gecko is the ideal choice for demanding 8-, 16-, and 32-bit energy sensitive applications.
Figure 29.2. DAC Bias Programming
Re f e r e n c e
Cu r r e n t
BIASPROG
HALFBIAS
...the world's most energy friendly microcontrollers
In t er n al
bandgap
reference
DAC output
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. 707)
DAC Single Ended Output Voltage
VOUT = VDACn_OUTx - VSS= Vref 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. 707) :
DAC Differential Output Voltage
VOUT = VDACn_OUT1 - VDACn_OUT0= Vref x CH0DATA/2047
(29.3)
where CH0DATA is a 12-bit signed integer. The common mode voltage is VDD/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
2013-05-08 - Wonder Gecko Family - d0233_Rev0.50
707
www.energymicro.com