English
Language : 

EFM32WG Datasheet, PDF (623/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
Upon a state transition, LESENSE can generate a pulse on one or more of the decoder PRS channels.
Which channel to generate a pulse on is configured in the PRSACT bit field. If PRSCNT in DECCTRL
is set, count signals will be generated on decoder PRS channels 0 and 1 according to the PRSACT
configuration. In this mode, channel 0 will pulse each time a count event occurs while channel 1 indicates
the count direction, 1 being up and 0 being down. The count direction will be kept at its previous state
in between count events. The EFM32WG pulse counter may be used to keep track of events based on
these PRS outputs.
If SETIF is set, the DECODER interrupt flag will be set when the transition occurs. If INTMAP in
DECCTRL and SETIF is set, a transition from state x will set the CHx interrupt flag in addition to the
DECODER flag.
Setting CHAIN in STx_TCONFA enables the decoder to evaluate more than two possible transitions for
each state. If none of the transitions defined in STx_TCONFA or STx_TCONFB matches, the decoder
will jump to the next descriptor pair and evaluate the transitions defined there. The decoder uses two
LFACLKLESENSE cycles for each descriptor pair to be evaluated. If ERRCHK in CTRL is set, the decoder
will check that the sensor state has not changed if none of the defined transitions match. The DECERR
interrupt flag will be set if none of the transitions match and the sensor state has changed. Figure 25.7 (p.
623) illustrates state transitions. The "Generate PRS signals and set interrupt flag" blocks will perform
actions according to the configuration in STx_TCONFA and STx_TCONFB.
Figure 25.7. Decoder state transition evaluation
STATEi
STi_TCONF
Generat e PRS
signals and set
interrupt flag
Y
SENSORSTATE & ~ MASKAi
COMPAi & ~ MASKAi
=
N
NEXTSTATEAi
Generat e PRS
signals and set
interrupt flag
Y
SENSORSTATE & ~ MASKBi
COMPBi & ~ MASKBi
=
N
NEXTSTATEBi
Y
CHAINi = 1
N
STi+ 1_TCONF
Generat e PRS
signals and set
interrupt flag
Y
SENSORSTATE & ~ MASKAi+ 1
COMPAi+ 1 & ~ MASKAi+ 1
=N
NEXTSTATEAi+ 1
Generat e PRS
signals and set
interrupt flag
Y
SENSORSTATE & ~ MASKBi+ 1
COMPBi+ 1 & ~ MASKBi+ 1
=N
NEXTSTATEBi+ 1
Y
SENSORSTATE changed
ERRCHK= 1
&&
N
Set DECERR
interrupt flag
Y
CHAINi+ 1 = 1
N
2013-05-08 - Wonder Gecko Family - d0233_Rev0.50
623
www.energymicro.com