<?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>FreeMASTERのトピックS32K144 Touch Pads without FreeMASTER function</title>
    <link>https://community.nxp.com/t5/FreeMASTER/S32K144-Touch-Pads-without-FreeMASTER-function/m-p/978727#M30</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;SPAN style="color: #000000; background-color: #fdfdfd;"&gt;I am trying to implement touch function using S32K144 EVB.&lt;/SPAN&gt;&lt;BR style="color: #000000; background-color: #fdfdfd;" /&gt;&lt;SPAN style="color: #000000; background-color: #fdfdfd;"&gt;I have an example file for implementing touch functions, but I have a question.&lt;/SPAN&gt;&lt;BR style="color: #000000; background-color: #fdfdfd;" /&gt;&lt;SPAN style="color: #000000; background-color: #fdfdfd;"&gt;Annotating FMSTR_Poll(); from Main(); does not properly realize the touch function.&lt;/SPAN&gt;&lt;BR style="color: #000000; background-color: #fdfdfd;" /&gt;&lt;SPAN style="color: #000000; background-color: #fdfdfd;"&gt;FMSTR_Poll() is a function of the FreeMASTER, so I don't know how it affects the implementation of the touch function.&lt;/SPAN&gt;&lt;BR style="color: #000000; background-color: #fdfdfd;" /&gt;&lt;SPAN style="color: #000000; background-color: #fdfdfd;"&gt;I tried to analyze the FMSTR_Poll() function but failed to get the correct answer.&lt;/SPAN&gt;&lt;BR style="color: #000000; background-color: #fdfdfd;" /&gt;&lt;SPAN style="color: #000000; background-color: #fdfdfd;"&gt;How can I implement touch function without a FreeMASTER?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #fdfdfd;"&gt;&lt;SPAN&gt;Src is as follows.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #fdfdfd;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/****************************************************************************//*!&lt;BR /&gt;*&lt;BR /&gt;* @file main.c&lt;BR /&gt;*&lt;BR /&gt;* @version 1.0.0.0&lt;BR /&gt;*&lt;BR /&gt;* @date January-2017&lt;BR /&gt;*&lt;BR /&gt;* @brief Touch sense main for S32K144EVB Q100&lt;BR /&gt;*&lt;BR /&gt;*******************************************************************************/&lt;/P&gt;&lt;P&gt;/*******************************************************************************&lt;BR /&gt;* Includes&lt;BR /&gt;*******************************************************************************/&lt;BR /&gt;#include "S32K144.h"&lt;BR /&gt;#include "main.h"&lt;BR /&gt;#include "scg.h"&lt;BR /&gt;#include "timer.h"&lt;BR /&gt;#include "adc.h"&lt;BR /&gt;#include "pcc.h"&lt;BR /&gt;#include "lpuart.h"&lt;BR /&gt;#include "freemaster.h"&lt;BR /&gt;#include "ets.h"&lt;BR /&gt;#include "power_mode.h"&lt;/P&gt;&lt;P&gt;/*******************************************************************************&lt;BR /&gt;* Variables&lt;BR /&gt;******************************************************************************/&lt;BR /&gt;extern uint8_t electrodeTouchQualified[NUMBER_OF_ELECTRODES];&lt;BR /&gt;uint8_t clockMode;&lt;/P&gt;&lt;P&gt;// Low power mode&lt;BR /&gt;extern uint8_t lowPowerModeCtrl, lowPowerModeEnable;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/*****************************************************************************&lt;BR /&gt;*&lt;BR /&gt;* Function: void NVIC_Init(void)&lt;BR /&gt;*&lt;BR /&gt;* Description: Init NVIC&lt;BR /&gt;*&lt;BR /&gt;*****************************************************************************/&lt;BR /&gt;void NVIC_Init(void)&lt;BR /&gt;{&lt;BR /&gt; // Enable LPTMR0 interrupts in NVIC&lt;BR /&gt; NVIC_IRQ_ENABLE(LPTMR0_IRQn);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/*****************************************************************************&lt;BR /&gt;*&lt;BR /&gt;* Function: void GPIO_Init(void)&lt;BR /&gt;*&lt;BR /&gt;* Description: Init GPIO&lt;BR /&gt;*&lt;BR /&gt;*****************************************************************************/&lt;BR /&gt;void GPIO_Init(void)&lt;BR /&gt;{&lt;BR /&gt;#ifdef DEBUG_ELECTRODE_SENSE&lt;BR /&gt; // Configure as GPIO pin&lt;BR /&gt; DES_PORT-&amp;gt;PCR[DES_PIN] = PORT_PCR_MUX(1);&lt;BR /&gt; // Drive GPIO high&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;(DES_GPIO)-&amp;gt;PSOR,DES_PIN) = 1;&lt;BR /&gt; // Configure as an output&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;(DES_GPIO)-&amp;gt;PDDR,DES_PIN) = 1;&lt;/P&gt;&lt;P&gt;#endif&lt;BR /&gt; &lt;BR /&gt;#ifdef DEBUG_ALGORITHM &lt;BR /&gt; // Configure as GPIO pin&lt;BR /&gt; DA_PORT-&amp;gt;PCR[DA_PIN] = PORT_PCR_MUX(1);&lt;BR /&gt; // Drive GPIO high&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;DA_GPIO-&amp;gt;PSOR,DA_PIN) = 1;&lt;BR /&gt; // Configure as an output&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;DA_GPIO-&amp;gt;PDDR,DA_PIN) = 1;&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#if(LOW_POWER_MODE == LPM_DISABLE)&lt;BR /&gt; // LPUART1 pins&lt;BR /&gt; // PTC6, UART1_RX&lt;BR /&gt; PORTC-&amp;gt;PCR[6] = PORT_PCR_MUX(0x2);&lt;BR /&gt; // PTC7, UART1_TX&lt;BR /&gt; PORTC-&amp;gt;PCR[7] = PORT_PCR_MUX(0x2);&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;// PTD0, RGB LED BLUE&lt;BR /&gt; // PTD0 GPIO pin&lt;BR /&gt; PORTD-&amp;gt;PCR[0] = 0x01000140;&lt;BR /&gt; // Turn OFF LED&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;PTD-&amp;gt;PSOR,0) = 1;&lt;BR /&gt; // PTD0 configured as output&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;PTD-&amp;gt;PDDR,0) = 1;&lt;BR /&gt; &lt;BR /&gt; // PTD15, RGB LED RED&lt;BR /&gt; // PTD15 GPIO pin&lt;BR /&gt; PORTD-&amp;gt;PCR[15] = PORT_PCR_MUX(1); &lt;BR /&gt; // Turn OFF LED&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;PTD-&amp;gt;PSOR,15) = 1;&lt;BR /&gt; // PTD15 configured as output&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;PTD-&amp;gt;PDDR,15) = 1;&lt;BR /&gt; &lt;BR /&gt; // PTD16, RGB LED GREEN&lt;BR /&gt; // PTD16 GPIO pin&lt;BR /&gt; PORTD-&amp;gt;PCR[16] = PORT_PCR_MUX(1); &lt;BR /&gt; // Turn OFF LED&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;PTD-&amp;gt;PSOR,16) = 1;&lt;BR /&gt; // PTD16 configured as output&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;PTD-&amp;gt;PDDR,16) = 1;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/*****************************************************************************&lt;BR /&gt;*&lt;BR /&gt;* Function: void RGBLED_Ctrl(void)&lt;BR /&gt;*&lt;BR /&gt;* Description: Display touch event &lt;BR /&gt;*&lt;BR /&gt;*****************************************************************************/&lt;BR /&gt;void RGBLED_Ctrl(void)&lt;BR /&gt;{&lt;BR /&gt;#ifdef ELEC0&lt;BR /&gt; // Electrode 0, RED LED&lt;BR /&gt; if (electrodeTouchQualified[0] == 1)&lt;BR /&gt; {&lt;BR /&gt; // Turn ON LED&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;PTD-&amp;gt;PCOR,15) = 1;&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; // Turn OFF LED&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;PTD-&amp;gt;PSOR,15) = 1;&lt;BR /&gt; }&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;#ifdef ELEC1&lt;BR /&gt; // Electrode 1, GREEN LED&lt;BR /&gt; if (electrodeTouchQualified[1] == 1)&lt;BR /&gt; {&lt;BR /&gt; // Turn ON LED&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;PTD-&amp;gt;PCOR,16) = 1;&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; // Turn OFF LED&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;PTD-&amp;gt;PSOR,16) = 1;&lt;BR /&gt; }&lt;BR /&gt;#endif&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/*****************************************************************************&lt;BR /&gt;*&lt;BR /&gt;* Function: void main(void)&lt;BR /&gt;*&lt;BR /&gt;* Description: Main routine&lt;BR /&gt;*&lt;BR /&gt;*****************************************************************************/&lt;BR /&gt;void main(void)&lt;BR /&gt;{ &lt;BR /&gt; // Set clock mode&lt;BR /&gt; clockMode = RUN_FIRC;&lt;/P&gt;&lt;P&gt;// System clock generator init&lt;BR /&gt; SCG_Init(clockMode);&lt;BR /&gt; &lt;BR /&gt; // Peripheral clock enable&lt;BR /&gt; PCC_Init(clockMode);&lt;/P&gt;&lt;P&gt;// Flash and enable I/D cache and write buffer&lt;BR /&gt; LMEM-&amp;gt;PCCCR = LMEM_PCCCR_GO_MASK | LMEM_PCCCR_INVW1_MASK | \&lt;BR /&gt; LMEM_PCCCR_INVW0_MASK | LMEM_PCCCR_ENCACHE_MASK;&lt;/P&gt;&lt;P&gt;// Wake-up timer init&lt;BR /&gt; LPTMR0_Init(LPTMR_ELEC_CAL);&lt;/P&gt;&lt;P&gt;// ADC0 init (sample time, samples number to average)&lt;BR /&gt; ADC0_Init(2, 0, clockMode);&lt;BR /&gt; &lt;BR /&gt; // GPIO init&lt;BR /&gt; GPIO_Init();&lt;BR /&gt; &lt;BR /&gt; // Low power mode control disabled&lt;BR /&gt; lowPowerModeCtrl = OFF;&lt;/P&gt;&lt;P&gt;#if(LOW_POWER_MODE == LPM_DISABLE)&lt;BR /&gt; // Init FreeMASTER UART1&lt;BR /&gt; LPUART1_Init(clockMode);&lt;/P&gt;&lt;P&gt;// Init FreeMASTER, poll driven&lt;BR /&gt; FMSTR_Init();&lt;/P&gt;&lt;P&gt;// Disable low power mode&lt;BR /&gt; lowPowerModeEnable = NO;&lt;BR /&gt;#else&lt;BR /&gt; // Enable low power mode&lt;BR /&gt; lowPowerModeEnable = YES;&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;// Init electrode touch sense&lt;BR /&gt; electrodeTouchSenseInit();&lt;BR /&gt; &lt;BR /&gt; // Init NVIC&lt;BR /&gt; NVIC_Init();&lt;/P&gt;&lt;P&gt;// Enable interrupts &lt;BR /&gt; EnableInterrupts;&lt;/P&gt;&lt;P&gt;// Loop forever&lt;BR /&gt; while(1)&lt;BR /&gt; { &lt;BR /&gt; // Control RGB LED&lt;BR /&gt; RGBLED_Ctrl();&lt;/P&gt;&lt;P&gt;// Enable FreeMASTER poll, when low power mode disabled&lt;BR /&gt; if (lowPowerModeEnable == NO)&lt;BR /&gt; {&lt;BR /&gt; FMSTR_Poll();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;// Run low power mode?&lt;BR /&gt; if ((lowPowerModeCtrl == ON) &amp;amp;&amp;amp; (lowPowerModeEnable == YES))&lt;BR /&gt; {&lt;BR /&gt; // S32K144EVB Q100 board&lt;BR /&gt; // RUN_FIRC mode typ. 20mA&lt;BR /&gt; // VLPS static mode typ. 30uA&lt;BR /&gt; // Average current 60uA, (cycling from RUN to VLPS, LPTMR 25ms period, compiler optimized none -O3)&lt;BR /&gt; Run_to_VLPS();&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jan 2020 06:32:42 GMT</pubDate>
    <dc:creator>alstlr926</dc:creator>
    <dc:date>2020-01-08T06:32:42Z</dc:date>
    <item>
      <title>S32K144 Touch Pads without FreeMASTER function</title>
      <link>https://community.nxp.com/t5/FreeMASTER/S32K144-Touch-Pads-without-FreeMASTER-function/m-p/978727#M30</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;SPAN style="color: #000000; background-color: #fdfdfd;"&gt;I am trying to implement touch function using S32K144 EVB.&lt;/SPAN&gt;&lt;BR style="color: #000000; background-color: #fdfdfd;" /&gt;&lt;SPAN style="color: #000000; background-color: #fdfdfd;"&gt;I have an example file for implementing touch functions, but I have a question.&lt;/SPAN&gt;&lt;BR style="color: #000000; background-color: #fdfdfd;" /&gt;&lt;SPAN style="color: #000000; background-color: #fdfdfd;"&gt;Annotating FMSTR_Poll(); from Main(); does not properly realize the touch function.&lt;/SPAN&gt;&lt;BR style="color: #000000; background-color: #fdfdfd;" /&gt;&lt;SPAN style="color: #000000; background-color: #fdfdfd;"&gt;FMSTR_Poll() is a function of the FreeMASTER, so I don't know how it affects the implementation of the touch function.&lt;/SPAN&gt;&lt;BR style="color: #000000; background-color: #fdfdfd;" /&gt;&lt;SPAN style="color: #000000; background-color: #fdfdfd;"&gt;I tried to analyze the FMSTR_Poll() function but failed to get the correct answer.&lt;/SPAN&gt;&lt;BR style="color: #000000; background-color: #fdfdfd;" /&gt;&lt;SPAN style="color: #000000; background-color: #fdfdfd;"&gt;How can I implement touch function without a FreeMASTER?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #fdfdfd;"&gt;&lt;SPAN&gt;Src is as follows.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #fdfdfd;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/****************************************************************************//*!&lt;BR /&gt;*&lt;BR /&gt;* @file main.c&lt;BR /&gt;*&lt;BR /&gt;* @version 1.0.0.0&lt;BR /&gt;*&lt;BR /&gt;* @date January-2017&lt;BR /&gt;*&lt;BR /&gt;* @brief Touch sense main for S32K144EVB Q100&lt;BR /&gt;*&lt;BR /&gt;*******************************************************************************/&lt;/P&gt;&lt;P&gt;/*******************************************************************************&lt;BR /&gt;* Includes&lt;BR /&gt;*******************************************************************************/&lt;BR /&gt;#include "S32K144.h"&lt;BR /&gt;#include "main.h"&lt;BR /&gt;#include "scg.h"&lt;BR /&gt;#include "timer.h"&lt;BR /&gt;#include "adc.h"&lt;BR /&gt;#include "pcc.h"&lt;BR /&gt;#include "lpuart.h"&lt;BR /&gt;#include "freemaster.h"&lt;BR /&gt;#include "ets.h"&lt;BR /&gt;#include "power_mode.h"&lt;/P&gt;&lt;P&gt;/*******************************************************************************&lt;BR /&gt;* Variables&lt;BR /&gt;******************************************************************************/&lt;BR /&gt;extern uint8_t electrodeTouchQualified[NUMBER_OF_ELECTRODES];&lt;BR /&gt;uint8_t clockMode;&lt;/P&gt;&lt;P&gt;// Low power mode&lt;BR /&gt;extern uint8_t lowPowerModeCtrl, lowPowerModeEnable;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/*****************************************************************************&lt;BR /&gt;*&lt;BR /&gt;* Function: void NVIC_Init(void)&lt;BR /&gt;*&lt;BR /&gt;* Description: Init NVIC&lt;BR /&gt;*&lt;BR /&gt;*****************************************************************************/&lt;BR /&gt;void NVIC_Init(void)&lt;BR /&gt;{&lt;BR /&gt; // Enable LPTMR0 interrupts in NVIC&lt;BR /&gt; NVIC_IRQ_ENABLE(LPTMR0_IRQn);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/*****************************************************************************&lt;BR /&gt;*&lt;BR /&gt;* Function: void GPIO_Init(void)&lt;BR /&gt;*&lt;BR /&gt;* Description: Init GPIO&lt;BR /&gt;*&lt;BR /&gt;*****************************************************************************/&lt;BR /&gt;void GPIO_Init(void)&lt;BR /&gt;{&lt;BR /&gt;#ifdef DEBUG_ELECTRODE_SENSE&lt;BR /&gt; // Configure as GPIO pin&lt;BR /&gt; DES_PORT-&amp;gt;PCR[DES_PIN] = PORT_PCR_MUX(1);&lt;BR /&gt; // Drive GPIO high&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;(DES_GPIO)-&amp;gt;PSOR,DES_PIN) = 1;&lt;BR /&gt; // Configure as an output&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;(DES_GPIO)-&amp;gt;PDDR,DES_PIN) = 1;&lt;/P&gt;&lt;P&gt;#endif&lt;BR /&gt; &lt;BR /&gt;#ifdef DEBUG_ALGORITHM &lt;BR /&gt; // Configure as GPIO pin&lt;BR /&gt; DA_PORT-&amp;gt;PCR[DA_PIN] = PORT_PCR_MUX(1);&lt;BR /&gt; // Drive GPIO high&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;DA_GPIO-&amp;gt;PSOR,DA_PIN) = 1;&lt;BR /&gt; // Configure as an output&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;DA_GPIO-&amp;gt;PDDR,DA_PIN) = 1;&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#if(LOW_POWER_MODE == LPM_DISABLE)&lt;BR /&gt; // LPUART1 pins&lt;BR /&gt; // PTC6, UART1_RX&lt;BR /&gt; PORTC-&amp;gt;PCR[6] = PORT_PCR_MUX(0x2);&lt;BR /&gt; // PTC7, UART1_TX&lt;BR /&gt; PORTC-&amp;gt;PCR[7] = PORT_PCR_MUX(0x2);&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;// PTD0, RGB LED BLUE&lt;BR /&gt; // PTD0 GPIO pin&lt;BR /&gt; PORTD-&amp;gt;PCR[0] = 0x01000140;&lt;BR /&gt; // Turn OFF LED&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;PTD-&amp;gt;PSOR,0) = 1;&lt;BR /&gt; // PTD0 configured as output&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;PTD-&amp;gt;PDDR,0) = 1;&lt;BR /&gt; &lt;BR /&gt; // PTD15, RGB LED RED&lt;BR /&gt; // PTD15 GPIO pin&lt;BR /&gt; PORTD-&amp;gt;PCR[15] = PORT_PCR_MUX(1); &lt;BR /&gt; // Turn OFF LED&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;PTD-&amp;gt;PSOR,15) = 1;&lt;BR /&gt; // PTD15 configured as output&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;PTD-&amp;gt;PDDR,15) = 1;&lt;BR /&gt; &lt;BR /&gt; // PTD16, RGB LED GREEN&lt;BR /&gt; // PTD16 GPIO pin&lt;BR /&gt; PORTD-&amp;gt;PCR[16] = PORT_PCR_MUX(1); &lt;BR /&gt; // Turn OFF LED&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;PTD-&amp;gt;PSOR,16) = 1;&lt;BR /&gt; // PTD16 configured as output&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;PTD-&amp;gt;PDDR,16) = 1;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/*****************************************************************************&lt;BR /&gt;*&lt;BR /&gt;* Function: void RGBLED_Ctrl(void)&lt;BR /&gt;*&lt;BR /&gt;* Description: Display touch event &lt;BR /&gt;*&lt;BR /&gt;*****************************************************************************/&lt;BR /&gt;void RGBLED_Ctrl(void)&lt;BR /&gt;{&lt;BR /&gt;#ifdef ELEC0&lt;BR /&gt; // Electrode 0, RED LED&lt;BR /&gt; if (electrodeTouchQualified[0] == 1)&lt;BR /&gt; {&lt;BR /&gt; // Turn ON LED&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;PTD-&amp;gt;PCOR,15) = 1;&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; // Turn OFF LED&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;PTD-&amp;gt;PSOR,15) = 1;&lt;BR /&gt; }&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;#ifdef ELEC1&lt;BR /&gt; // Electrode 1, GREEN LED&lt;BR /&gt; if (electrodeTouchQualified[1] == 1)&lt;BR /&gt; {&lt;BR /&gt; // Turn ON LED&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;PTD-&amp;gt;PCOR,16) = 1;&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; // Turn OFF LED&lt;BR /&gt; BITBAND_ACCESS32(&amp;amp;PTD-&amp;gt;PSOR,16) = 1;&lt;BR /&gt; }&lt;BR /&gt;#endif&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/*****************************************************************************&lt;BR /&gt;*&lt;BR /&gt;* Function: void main(void)&lt;BR /&gt;*&lt;BR /&gt;* Description: Main routine&lt;BR /&gt;*&lt;BR /&gt;*****************************************************************************/&lt;BR /&gt;void main(void)&lt;BR /&gt;{ &lt;BR /&gt; // Set clock mode&lt;BR /&gt; clockMode = RUN_FIRC;&lt;/P&gt;&lt;P&gt;// System clock generator init&lt;BR /&gt; SCG_Init(clockMode);&lt;BR /&gt; &lt;BR /&gt; // Peripheral clock enable&lt;BR /&gt; PCC_Init(clockMode);&lt;/P&gt;&lt;P&gt;// Flash and enable I/D cache and write buffer&lt;BR /&gt; LMEM-&amp;gt;PCCCR = LMEM_PCCCR_GO_MASK | LMEM_PCCCR_INVW1_MASK | \&lt;BR /&gt; LMEM_PCCCR_INVW0_MASK | LMEM_PCCCR_ENCACHE_MASK;&lt;/P&gt;&lt;P&gt;// Wake-up timer init&lt;BR /&gt; LPTMR0_Init(LPTMR_ELEC_CAL);&lt;/P&gt;&lt;P&gt;// ADC0 init (sample time, samples number to average)&lt;BR /&gt; ADC0_Init(2, 0, clockMode);&lt;BR /&gt; &lt;BR /&gt; // GPIO init&lt;BR /&gt; GPIO_Init();&lt;BR /&gt; &lt;BR /&gt; // Low power mode control disabled&lt;BR /&gt; lowPowerModeCtrl = OFF;&lt;/P&gt;&lt;P&gt;#if(LOW_POWER_MODE == LPM_DISABLE)&lt;BR /&gt; // Init FreeMASTER UART1&lt;BR /&gt; LPUART1_Init(clockMode);&lt;/P&gt;&lt;P&gt;// Init FreeMASTER, poll driven&lt;BR /&gt; FMSTR_Init();&lt;/P&gt;&lt;P&gt;// Disable low power mode&lt;BR /&gt; lowPowerModeEnable = NO;&lt;BR /&gt;#else&lt;BR /&gt; // Enable low power mode&lt;BR /&gt; lowPowerModeEnable = YES;&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;// Init electrode touch sense&lt;BR /&gt; electrodeTouchSenseInit();&lt;BR /&gt; &lt;BR /&gt; // Init NVIC&lt;BR /&gt; NVIC_Init();&lt;/P&gt;&lt;P&gt;// Enable interrupts &lt;BR /&gt; EnableInterrupts;&lt;/P&gt;&lt;P&gt;// Loop forever&lt;BR /&gt; while(1)&lt;BR /&gt; { &lt;BR /&gt; // Control RGB LED&lt;BR /&gt; RGBLED_Ctrl();&lt;/P&gt;&lt;P&gt;// Enable FreeMASTER poll, when low power mode disabled&lt;BR /&gt; if (lowPowerModeEnable == NO)&lt;BR /&gt; {&lt;BR /&gt; FMSTR_Poll();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;// Run low power mode?&lt;BR /&gt; if ((lowPowerModeCtrl == ON) &amp;amp;&amp;amp; (lowPowerModeEnable == YES))&lt;BR /&gt; {&lt;BR /&gt; // S32K144EVB Q100 board&lt;BR /&gt; // RUN_FIRC mode typ. 20mA&lt;BR /&gt; // VLPS static mode typ. 30uA&lt;BR /&gt; // Average current 60uA, (cycling from RUN to VLPS, LPTMR 25ms period, compiler optimized none -O3)&lt;BR /&gt; Run_to_VLPS();&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2020 06:32:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/S32K144-Touch-Pads-without-FreeMASTER-function/m-p/978727#M30</guid>
      <dc:creator>alstlr926</dc:creator>
      <dc:date>2020-01-08T06:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 Touch Pads without FreeMASTER function</title>
      <link>https://community.nxp.com/t5/FreeMASTER/S32K144-Touch-Pads-without-FreeMASTER-function/m-p/978728#M31</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/alstlr926@naver.com"&gt;alstlr926@naver.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late reply. In case you are interested in the touch-sense functionality only (without FreeMASTER), I would recommend checking the SDK examples first.&amp;nbsp;File&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 14px;"&gt;→New&lt;SPAN&gt;→S32DS Project from Example:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 14px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/98742iD94CC52474A5C772/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note this&amp;nbsp;space is meant for FreeMASTER issues, in case you&amp;nbsp;have platform or SDK specific issues you can address them in the corresponding spaces: &lt;A _jive_internal="true" href="https://community.nxp.com/community/s32/s32k"&gt;S32K&lt;/A&gt; or &lt;A _jive_internal="true" href="https://community.nxp.com/community/s32/s32sdk"&gt;S32 SDK&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagards,&lt;/P&gt;&lt;P&gt;Iulian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2020 13:30:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/S32K144-Touch-Pads-without-FreeMASTER-function/m-p/978728#M31</guid>
      <dc:creator>iulian_stan</dc:creator>
      <dc:date>2020-02-26T13:30:55Z</dc:date>
    </item>
  </channel>
</rss>

