<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Kinetis MicrocontrollersのトピックGetting Started with TSI0 on TWR-K70F120M</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Getting-Started-with-TSI0-on-TWR-K70F120M/m-p/368637#M19044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&amp;nbsp; I'm looking for a little more description for how to use this input type in code.&amp;nbsp; I'm also looking for guidelines on settings.&amp;nbsp; I've reviewed the help files, but the help on this topic really only gives the options available. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the pin signal property, I named each channel touchDx where x is the number given on the board.&amp;nbsp; So if I want to poll for what touch pad is touched, do I just do something simple like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(touchD7)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*code here*/&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;switch(TSI0)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case touchD7:&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or are there a few more steps involved?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 Oct 2014 15:32:52 GMT</pubDate>
    <dc:creator>thomasolenik</dc:creator>
    <dc:date>2014-10-05T15:32:52Z</dc:date>
    <item>
      <title>Getting Started with TSI0 on TWR-K70F120M</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Getting-Started-with-TSI0-on-TWR-K70F120M/m-p/368637#M19044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&amp;nbsp; I'm looking for a little more description for how to use this input type in code.&amp;nbsp; I'm also looking for guidelines on settings.&amp;nbsp; I've reviewed the help files, but the help on this topic really only gives the options available. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the pin signal property, I named each channel touchDx where x is the number given on the board.&amp;nbsp; So if I want to poll for what touch pad is touched, do I just do something simple like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(touchD7)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*code here*/&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;switch(TSI0)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case touchD7:&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or are there a few more steps involved?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Oct 2014 15:32:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Getting-Started-with-TSI0-on-TWR-K70F120M/m-p/368637#M19044</guid>
      <dc:creator>thomasolenik</dc:creator>
      <dc:date>2014-10-05T15:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Started with TSI0 on TWR-K70F120M</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Getting-Started-with-TSI0-on-TWR-K70F120M/m-p/368638#M19045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="gmail_default" style="font-family: arial; font-size: large; color: #000099;"&gt;Hi i am not familiar with k70. but have used then i k60 and kl25.&lt;/P&gt;&lt;P class="gmail_default" style="font-family: arial; font-size: large; color: #000099;"&gt;&lt;/P&gt;&lt;P class="gmail_default" style="font-family: arial; font-size: large; color: #000099;"&gt;the peripheral is very simple. all you have to do is enable the clock for the module.&lt;/P&gt;&lt;P class="gmail_default" style="font-family: arial; font-size: large; color: #000099;"&gt;&lt;/P&gt;&lt;P class="gmail_default" style="font-family: arial; font-size: large; color: #000099;"&gt;&lt;/P&gt;&lt;DIV class="gmail_default"&gt;SIM_SCGC5 |= SIM_SCGC5_TSI_MASK; // HABILITA CLOCK &lt;P&gt;&lt;/P&gt;&lt;P class="gmail_default"&gt;&lt;/P&gt;&lt;P class="gmail_default"&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="gmail_default" style="font-family: arial; font-size: large; color: #000099;"&gt;Configure the frequencies and the vth for the oscillator. in this way you can literally read the capacitance of the electrode.&lt;/P&gt;&lt;P class="gmail_default" style="font-family: arial; font-size: large; color: #000099;"&gt;&lt;/P&gt;&lt;P class="gmail_default" style="font-family: arial; font-size: large; color: #000099;"&gt;&lt;/P&gt;&lt;DIV class="gmail_default"&gt;&lt;SPAN&gt; &lt;/SPAN&gt; TSI0_GENCS |= (TSI_GENCS_ESOR_MASK &lt;P&gt;&lt;/P&gt;&lt;P class="gmail_default"&gt;&lt;SPAN&gt; &lt;/SPAN&gt; | TSI_GENCS_MODE(0x00) // SEM DETECÇÃO DE RUIDO &lt;/P&gt;&lt;P class="gmail_default"&gt;&lt;SPAN&gt; &lt;/SPAN&gt; | TSI_GENCS_REFCHRG(5) // 8 micro-amp &lt;/P&gt;&lt;P class="gmail_default"&gt;&lt;SPAN&gt; &lt;/SPAN&gt; | TSI_GENCS_DVOLT(0) // voltage rails &lt;/P&gt;&lt;P class="gmail_default"&gt;&lt;SPAN&gt; &lt;/SPAN&gt; | TSI_GENCS_EXTCHRG(5) // charge/discharge current &lt;/P&gt;&lt;P class="gmail_default"&gt;&lt;SPAN&gt; &lt;/SPAN&gt; | TSI_GENCS_PS(6) // FREQUENCIA DIVIDIDA POR 16 &lt;/P&gt;&lt;P class="gmail_default"&gt;&lt;SPAN&gt; &lt;/SPAN&gt; | TSI_GENCS_NSCN(0) // &lt;/P&gt;&lt;P class="gmail_default"&gt;&lt;SPAN&gt; &lt;/SPAN&gt; // | TSI_GENCS_TSIIEN_MASK //SEM INTERRUPÇÃO &lt;/P&gt;&lt;P class="gmail_default"&gt;&lt;SPAN&gt; &lt;/SPAN&gt; | TSI_GENCS_STPE_MASK &lt;/P&gt;&lt;P class="gmail_default"&gt;&lt;SPAN&gt; &lt;/SPAN&gt; // | TSI_GENCS_STM_MASK // TRIGGER POR SOFTWARE &lt;/P&gt;&lt;P class="gmail_default"&gt;&lt;SPAN&gt; &lt;/SPAN&gt; // 0 = software &lt;/P&gt;&lt;P class="gmail_default"&gt;&lt;SPAN&gt; &lt;/SPAN&gt; ); &lt;/P&gt;&lt;P class="gmail_default"&gt;&lt;SPAN&gt; &lt;/SPAN&gt; TSI0_GENCS |= TSI_GENCS_TSIEN_MASK; // enable TSI &lt;/P&gt;&lt;/DIV&gt;&lt;P class="gmail_default" style="font-family: arial; font-size: large; color: #000099;"&gt;&lt;/P&gt;&lt;P class="gmail_default" style="font-family: arial; font-size: large; color: #000099;"&gt;&lt;/P&gt;&lt;P class="gmail_default" style="font-family: arial; font-size: large; color: #000099;"&gt;then you can start and poll de electrode.&lt;/P&gt;&lt;P class="gmail_default" style="font-family: arial; font-size: large; color: #000099;"&gt;&lt;/P&gt;&lt;P class="gmail_default" style="font-family: arial; font-size: large; color: #000099;"&gt;&lt;/P&gt;&lt;DIV class="gmail_default"&gt;&amp;nbsp; TSI0_DATA = (5 &amp;lt;&amp;lt; TSI_DATA_TSICH_SHIFT); &lt;P&gt;&lt;/P&gt;&lt;P class="gmail_default"&gt;&amp;nbsp; TSI0_DATA |= TSI_DATA_SWTS_MASK; // &lt;/P&gt;&lt;P class="gmail_default"&gt;&amp;nbsp; while(!(TSI0_GENCS &amp;amp; TSI_GENCS_EOSF_MASK)); &lt;/P&gt;&lt;P class="gmail_default"&gt;&amp;nbsp; TSI0_GENCS |= TSI_GENCS_EOSF_MASK; &lt;/P&gt;&lt;P class="gmail_default"&gt;&amp;nbsp; capacitor.eletrodos[2] = (TSI0_DATA &amp;amp; TSI_DATA_TSICNT_MASK);&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 14:34:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Getting-Started-with-TSI0-on-TWR-K70F120M/m-p/368638#M19045</guid>
      <dc:creator>Edrianocarlos</dc:creator>
      <dc:date>2014-10-06T14:34:46Z</dc:date>
    </item>
  </channel>
</rss>

