User manual
...the world's most energy friendly microcontrollers
2012-04-24 - Giant Gecko Family - d0053_Rev0.96 630
www.energymicro.com
Table 25.4. LESENSE decoder configuration
Register NEXTSTATE COMP MASK CHAIN
ST0_TCONFA 8 0b1000 0b0111 1
ST0_TCONFB 2 0b0001 0b1000 -
ST1_TCONFA 6 0b0010 0b1000 0
ST1_TCONFB 6 0b0010 0b1000 -
ST2_TCONFA 8 0b1000 0b0111 1
ST2_TCONFB 4 0b0011 0b1000 -
ST3_TCONFA 0 0b0000 0b1000 0
ST3_TCONFB 0 0b0000 0b1000 -
ST4_TCONFA 8 0b1000 0b0111 1
ST4_TCONFB 6 0b0010 0b1000 -
ST5_TCONFA 2 0b0001 0b1000 0
ST5_TCONFB 2 0b0001 0b1000 -
ST6_TCONFA 8 0b1000 0b0111 1
ST6_TCONFB 0 0b0000 0b1000 -
ST7_TCONFA 4 0b0011 0b1000 0
ST7_TCONFB 4 0b0011 0b1000 -
2. To initialize the decoder, run one scan, and read the present sensor status from SENSORSTATE.
Then write the index of this state to DECSTATE.
3. Write to START in CMD to start scanning of sensors and decoding.