...the world's most energy friendly microcontrollers
2016-04-28 - Giant Gecko Family - d0053_Rev1.20
633
www.silabs.com
Figure 25.9. Circular result buffer
BUF0_DATA
BUF1_DATA
BUF2_DATA
BUF3_DATA
BUF12_DATA
BUF13_DATA
BUF14_DATA
BUF15_DATA
BUFDATA
PTR_RD
LESENSE
PTR_WR
CH3 result
CH5 result
CH9 result
SCANRES
CH3 result
CH5 result
CH9 result
SCANRES
The right hand side of Figure 25.9 (p. 633) illustrates how the result buffer would be filled when
channels 3,5, and 9 are enabled and have STRSAMPLE in CHx_EVAL set, in addition to STRSCANRES
in CTRL. The measurement result from the three channels will be sequentially written during the scan,
while SCANRES is written to the result buffer upon scan completion.
25.3.8 DAC interface
LESENSE is able to drive the DAC for generation of accurate reference voltages. DAC channels
0 and 1 are individually configured in the PERCTRL register. The conversion mode can be set
to either continuous, sample/hold or sample/off. For further details about these modes, refer to
Section 29.3.1 (p. 713) . Both DAC channels are refreshed prior to each sensor measurement, as
depicted in Figure 25.3 (p. 626) . The conversion data is either taken from the data registers in
the EFM32GG DAC interface (DAC0_CH0DATA and DAC0_CH1DATA) or from the ACMPTHRES bit-
field in the CHx_INTERACT register for the active LESENSE channel. DAC data used is configured in
DACCHxDATA in PERCTRL.
The DAC interface runs on AUXHFRCO and will enable this when it is needed. The DACPRESC bit-field
in PERCTRL is used to prescale the AUXHFRCO to achieve wanted clock frequency for the LESENSE
DAC interface. The frequency should not exceed 500kHz, i.e. DACPRESC has to be set to at least 1.
The prescaler may also be used to tune how long the DAC should drive its outputs in sample/off mode.
Bias configuration, calibration and reference selection is done in the EFM32GG DAC module and
LESENSE will not override these configurations. If a bandgap reference is selected for the DAC, the
DACREF bit in PERCTRL should be set to BANDGAP.
LESENSE has the possibility to control switches that connect the DAC outputs to the pins associated
with ACMP0_CH0-3 and ACMP1_CH12-15. This makes LESENSE able to excite sensors with output
from the DAC channels.
The DAC may be chosen as reference to the analog comparators for accurate reference generation. If
the DAC is configured in continuous or sample/hold mode this does not require any external components.
If sample/off mode is used, an external capacitor is needed to keep the voltage in between samples.
To connect the input from the DAC to the ACMP to this external capacitor, connect the capacitor to the
DAC pin for the given channel and set OPAxSHORT in DAC_OPACTRL.
Note
The DAC mode should not be altered while DACACTIVE in STATUS is set
25.3.9 ACMP interface
The ACMPs are used to measure the sensors, and have to be configured according to the application
in order for LESENSE to work properly. Depending on the configuration in the ACMP0MODE and
Summary of Contents for Giant Gecko EFM32GG
Page 842: ......