AnsweredAssumed Answered

Getting Started with TSI0 on TWR-K70F120M

Question asked by Thomas Olenik on Oct 5, 2014
Latest reply on Oct 6, 2014 by Edriano Araujo

I'm just getting started with the TWR-K70F120M and am have a little trouble finding much information on how to use the touch electrodes on the board. From the schematic I can see that they are connected to TSI0 channels 5, 7, 8, 9.  I'm looking for a little more description for how to use this input type in code.  I'm also looking for guidelines on settings.  I've reviewed the help files, but the help on this topic really only gives the options available.

 

For the pin signal property, I named each channel touchDx where x is the number given on the board.  So if I want to poll for what touch pad is touched, do I just do something simple like:

 

if(touchD7)

{

     /*code here*/

}

 

Or

 

switch(TSI0)

{

     case touchD7:

}

 

Or are there a few more steps involved?

Outcomes