English
Language : 

EFM32WG Datasheet, PDF (619/834 Pages) List of Unclassifed Manufacturers – The EFM32WG Wonder Gecko is the ideal choice for demanding 8-, 16-, and 32-bit energy sensitive applications.
...the world's most energy friendly microcontrollers
is clocked by LFACLKLESENSE. This counter has its own prescaler. This prescaling factor is configured in
PCPRESC in TIMCTRL. A new scan sequence is started each time the counter reaches the top value,
PCTOP. The scan frequency is calculated using Equation 25.1 (p. 619) . If SCANMODE is set to
ONESHOT, a single scan will be made when START in CMD is set. To start a new scan on a PRS
event, set SCANMODE to PRS and configure PRS channel in PRSSEL. The PRS start signal needs to
be active for at least one LFACLKLESENSE cycle to make sure LESENSE is able to register it.
Scan frequency
Fscan = LFACLKLESENSE/((1 + PCTOP)*2PCPRESC)
(25.1)
It is possible to interleave additional sensor measurements in between the periodic scans. Issuing a start
command when LESENSE is idle will immediately start a new scan, without disrupting the frequency of
the periodic scans. If the period counter overflows during the interleaved scan, the periodically scheduled
scan will start immediately after the interleaved scan completes.
Figure 25.2. Scan sequence
START
Scan period
CH3 CH5 CH9
START
CH3 CH5 CH9
25.3.3 Sensor timing
For each channel in the scan sequence, the LESENSE interface goes through three phases: Idle phase,
excite phase, and measure phase. The durations of the excite and measure phases are configured in
the CHx_TIMING registers. Timing of the excite phase can be either a number of AUXHFRCO cycles or
a number of LFACLKLESENSE cycles, depending on which one is selected in EXCLK. LESENSE includes
two timers: A low frequency timer, running on LFACLKLESENSE, and a high frequency timer, running on
AUXHFRCO. The low frequency timer can be prescaled by configuring LFPRESC in TIMCTRL, and the
high frequency timer prescaling factor is configured in AUXPRESC in the same register. The duration
of the measure phase is programmed via MEASUREDLY and SAMPLEDLY. The output of the ACMP
will be inactive for MEASUREDLY EXCLK cycles after start of the sensor measurement. Sampling of
the sensor will happen after SAMPLEDLY LFACLKLESENSE, or AUXHFRCO cycles, depending on the
configuration of SAMPLECLK. Figure 25.3 (p. 619) depicts a sensor sequence where excitation and
measure delay is timed using AUXHFRCO and the sample delay is timed using LFACLKLESENSE. The
configurable measure- and sample delays enables LESENSE to easily define exact time windows for
sensor measurements. A start delay can be inserted before sensor measurement begin by configuring
STARTDLY in TIMCTRL. This delay can be used to ensure that the DAC is done and voltages have
stabilized before sensor measurement begins.
Figure 25.3. Timing diagram, short excitation
INIT DAC refresh start
LFACLKLESENSE
St art delay
START
Sam ple delay
Measure delay
SAMPLE
EXCITE
AUXHFRCO
Idle phase
Excit e phase
Measure phase
Idle phase
2013-05-08 - Wonder Gecko Family - d0233_Rev0.50
619
www.energymicro.com