<?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>topic Re: MKW30Z set-up TSI capacitive touch in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKW30Z-set-up-TSI-capacitive-touch/m-p/630753#M37945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Lucian,&lt;/P&gt;&lt;P&gt;Have you looked into:&lt;/P&gt;&lt;P&gt;c:\Freescale\KSDK_1.3.0\examples\frdmkw40z\driver_examples\tsi\&lt;/P&gt;&lt;P&gt;It is very basic example.&lt;/P&gt;&lt;P&gt;It contains just the TSI init and usage itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Mar 2017 13:56:28 GMT</pubDate>
    <dc:creator>michael_galda</dc:creator>
    <dc:date>2017-03-07T13:56:28Z</dc:date>
    <item>
      <title>MKW30Z set-up TSI capacitive touch</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKW30Z-set-up-TSI-capacitive-touch/m-p/630752#M37944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;KW40Z_Connectivity_Software_1.0.1 (KSDK_1.3.0); IAR 7.50;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'am trying to setup one &lt;STRONG&gt;capacitive button touch&lt;/STRONG&gt; using &lt;STRONG&gt;TSI&lt;/STRONG&gt; engine.&lt;/P&gt;&lt;P&gt;located on &lt;STRONG&gt;TSI0_CH15&lt;/STRONG&gt; on my MKW30Z&lt;/P&gt;&lt;P&gt;39 28 PTC3 DISABLED TSI0_CH15 PTC3/LLWU_P11 RX_SWITCH I2C1_SDA UART0_TX — — DTM_TX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As reference I used:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;frdm_kw40z_demo_1.0&lt;/STRONG&gt;&lt;BR /&gt;frdm_kw40z_demo_1.0\source\sensor_drivers\tsi_sensor\&lt;STRONG&gt; tsi_sensor.h&lt;/STRONG&gt; and&lt;STRONG&gt; tsi_sensor.c&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I modified:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;tsi_sensor_electrode_data_t tsiSensorElectrodeList[] = {&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .channel = 15,&lt;BR /&gt;&amp;nbsp; },&lt;BR /&gt;};&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;change&amp;nbsp; configure_tsi_pins(0);&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;PORT_HAL_SetMuxMode(PORTC,3u,kPortPinDisabled); /* TSIO_CH15 */&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;but it get stuck in &lt;STRONG&gt;TSI_DRV_Measure(0)&lt;/STRONG&gt; after initialization ?&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;tsi_sensor_status_t tsi_sensor_start_single_measurement (void){&lt;BR /&gt;&amp;nbsp; tsi_status_t result;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; /* Start measurements */&lt;BR /&gt;&amp;nbsp; result = TSI_DRV_Measure(0);&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;MKW30Z4_features.h&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;/* @brief TSI module version. */&lt;BR /&gt;#define FSL_FEATURE_TSI_VERSION (4)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I presume that is used fsl_tsi_v4_hal_specific.h, fsl_tsi_v4_driver_specific.c&lt;/P&gt;&lt;P&gt;\KW40Z_Connectivity_Software_1.0.1\KSDK_1.3.0\platform\drivers\src\tsi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some other changes are necessary ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is some relations with TMR or TPM set-up ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Lucian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 11:44:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKW30Z-set-up-TSI-capacitive-touch/m-p/630752#M37944</guid>
      <dc:creator>lucianfiran</dc:creator>
      <dc:date>2017-03-07T11:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: MKW30Z set-up TSI capacitive touch</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKW30Z-set-up-TSI-capacitive-touch/m-p/630753#M37945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Lucian,&lt;/P&gt;&lt;P&gt;Have you looked into:&lt;/P&gt;&lt;P&gt;c:\Freescale\KSDK_1.3.0\examples\frdmkw40z\driver_examples\tsi\&lt;/P&gt;&lt;P&gt;It is very basic example.&lt;/P&gt;&lt;P&gt;It contains just the TSI init and usage itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 13:56:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKW30Z-set-up-TSI-capacitive-touch/m-p/630753#M37945</guid>
      <dc:creator>michael_galda</dc:creator>
      <dc:date>2017-03-07T13:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: MKW30Z set-up TSI capacitive touch</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKW30Z-set-up-TSI-capacitive-touch/m-p/630754#M37946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The example&amp;nbsp;&lt;STRONG&gt;frdm_kw40z_demo_1.0&lt;/STRONG&gt; uses FreeRTOS, while my app uses &lt;STRONG&gt;bare_metal&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I added:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;extern void TSI_DRV_IRQHandler(uint32_t instance);&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;/*!&lt;BR /&gt;&amp;nbsp;* @brief Implementation of TSI0 handler named in startup code.&lt;BR /&gt;&amp;nbsp;*&lt;BR /&gt;&amp;nbsp;* Passes instance to generic TSI IRQ handler.&lt;BR /&gt;&amp;nbsp;*/&lt;BR /&gt;void TSI0_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TSI_DRV_IRQHandler(0);&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and it seems to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Lucian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 07:58:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKW30Z-set-up-TSI-capacitive-touch/m-p/630754#M37946</guid>
      <dc:creator>lucianfiran</dc:creator>
      <dc:date>2017-03-08T07:58:57Z</dc:date>
    </item>
  </channel>
</rss>

