...the world's most energy friendly microcontrollers
2014-07-02 - Tiny Gecko Family - d0034_Rev1.20
424
www.silabs.com
Figure 25.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.
25.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.
25.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 25.2 (p. 424)
DAC Single Ended Output Voltage
V
OUT
= V
DACn_OUTx
- V
SS
= V
ref
x CHxDATA/4095
(25.2)
where CHxDATA is a 12-bit unsigned integer.
25.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 25.3 (p. 424) :
DAC Differential Output Voltage
V
OUT
= V
DACn_OUT1
- V
DACn_OUT0
= V
ref
x CH0DATA/2047
(25.3)
where CH0DATA is a 12-bit signed integer. The common mode voltage is V
DD
/2.
25.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 EFM32TG
Page 543: ......