Silicon Laboratories EFR32xG14 Wireless Gecko Reference Manual page 950

Table of Contents

Advertisement

28.3.16.3 LESENSE Decoder 1
The example below illustrates how the LESENSE module can be used for decoding using three sensors
x x
Figure 28.18 FSM Example 1 on page
1. Configure the channels to be used, be sure to set DECODE in CHx_EVAL.
2. Set PRSCNT to enable generation of count waveforms on PRS. Also configure a PCNT to listen to the PRS channels and count
accordingly.
3. Configure the following in STx_TCONFA and STx_TCONFB:
a. Set MASK = 0b1000 in STx_TCONFA and STx_TCONFB for all used states. This enables three sensors to be evaluated by
the decoder.
b. Configure the remaining bit fields in STx_TCONFA and STx_TCONFB as described in
ration for FSM Example 1 on page
4. To initialize the decoder, run one scan, and read the present sensor status from SENSORSTATE. Then write the index of this state
to DECSTATE.
5. Write to START in CMD to start scanning of sensors and decoding.
Register
TCONFA_
NEXTSTATE
ST0
1
ST1
2
ST2
3
ST3
4
ST4
5
ST5
6
ST6
7
ST7
0
silabs.com | Building a more connected world.
001
011
0
1
x
000
001
000 100
101
111
7
6
101
100
Figure 28.18. FSM Example 1
950, configure the following LESENSE registers:
950.
Table 28.3. LESENSE Decoder Configuration for FSM Example 1
TCONFA_COMP TCONFA_
PRSACT
0b001
UP
0b011
UP
0b010
UP
0b110
UP
0b111
UP
0b101
UP
0b100
UP
0b000
UP
LESENSE - Low Energy Sensor Interface
010
2
3
011
State Index
010 110
110
5
4
111
TCONFB_
NEXTSTATE
7
0
1
2
3
4
5
6
Reference Manual
Sensor value
Table 28.3 LESENSE Decoder Configu-
TCONFB_COMP TCONFB_
PRSACT
0b100
DOWN
0b000
DOWN
0b001
DOWN
0b011
DOWN
0b010
DOWN
0b110
DOWN
0b111
DOWN
0b101
DOWN
Rev. 1.1 | 950

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the EFR32xG14 Wireless Gecko and is the answer not in the manual?

Table of Contents