AnsweredAssumed Answered

Change Mode in GENCS (TSI) problem

Question asked by Michael David Gotesdyner on Sep 2, 2014
Latest reply on Sep 30, 2014 by jeremyzhou

Hi,

I'm working with kinetis KL05Z32

I'm trying to change the mode in GENCS register (TSI), but it stays 0.

here is the code(CW10.3):

// clear register relevant bits

  TSI0_GENCS &= ~(uint32_t)(TSI_GENCS_MODE_MASK|

       TSI_GENCS_DVOLT_MASK |

       TSI_GENCS_EXTCHRG_MASK |

       TSI_GENCS_TSIEN_MASK);

 

TSI0_GENCS |= (TSI_GENCS_MODE(0x4)| // noise sensing single                    

       TSI_GENCS_DVOLT(3) | // DVpm = 1.350V (DVOLT<1:0>,EXTCHRG<2:1> = 1110b)

       TSI_GENCS_EXTCHRG(4)); 

 

Please help.

Outcomes