28.3.16.2 LC Sensor
Figure 28.16 LC Sensor Setup on page 948
below illustrates how the EFR32 can be set up to monitor four LC sensors.
ACMP0_CH0
ACMP0_CH1
ACMP0_CH2
DAC0_OUT0
X
X
X
X
ACMP0_CH3
Figure 28.16. LC Sensor Setup
LESENSE can be used to excite and measure the damping factor in LC sensor oscillations. To measure the damping factor, the ACMP
can be used to generate a high output each time the sensor voltage exceeds a certain level. These pulses are counted using an asyn-
chronous counter and compared with the threshold in COMPTHRES in the CHx_EVAL register. If the number of pulses exceeds the
threshold level, the sensor is said to be active, otherwise it is inactive.
Figure 28.17 LC Sensor Oscillations on page 948
how the output pulses from the ACMP correspond to damping of the oscillations. The results from sensor evaluation can automatically
be fed into the decoder in order to keep track of rotations.
-0,05
0,45
0,95
1,45
1,95
2,45
2,95
0
10
20
30
40
50
60
70
80
90
100
LC sensor
ACMP output
ACMP threshold
-0,05
0,45
0,95
1,45
1,95
2,45
2,95
0
10
20
30
40
50
60
70
80
90
100
LC sensor
ACMP output
ACMP threshold
Figure 28.17. LC Sensor Oscillations
The following steps show how to configure LESENSE to scan through the four LC sensors 100 times per second.
1. Assuming LFACLK
LESENSE
is 32kHz, set PCPRESC to 3 and PCTOP to 39 in CTRL. This will set the LESENSE scan frequency to
100Hz.
2. Enable the VDAC and configure it to produce a voltage of Vdd/2.
Reference Manual
LESENSE - Low Energy Sensor Interface
silabs.com
| Building a more connected world.
Rev. 1.1 | 948