<?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 How write a function which change frequency every 100hz by using sw2 and sw3 buttons? nxps32k144evb in S32K</title>
    <link>https://community.nxp.com/t5/S32K/How-write-a-function-which-change-frequency-every-100hz-by-using/m-p/1368618#M12708</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have program from example application - ftm_pwm_s32k144. I set frequency at 1000HZ in flexTimer. I would like to change frequency every 100HZ by using Sw2 and SW3 buttons. How Can i do it? I defined in my program this buttons and what should I do next? Could you help me, do you have similar code or advice?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mike&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Nov 2021 14:18:28 GMT</pubDate>
    <dc:creator>miketorres</dc:creator>
    <dc:date>2021-11-09T14:18:28Z</dc:date>
    <item>
      <title>How write a function which change frequency every 100hz by using sw2 and sw3 buttons? nxps32k144evb</title>
      <link>https://community.nxp.com/t5/S32K/How-write-a-function-which-change-frequency-every-100hz-by-using/m-p/1368618#M12708</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have program from example application - ftm_pwm_s32k144. I set frequency at 1000HZ in flexTimer. I would like to change frequency every 100HZ by using Sw2 and SW3 buttons. How Can i do it? I defined in my program this buttons and what should I do next? Could you help me, do you have similar code or advice?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mike&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 14:18:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-write-a-function-which-change-frequency-every-100hz-by-using/m-p/1368618#M12708</guid>
      <dc:creator>miketorres</dc:creator>
      <dc:date>2021-11-09T14:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: How write a function which change frequency every 100hz by using sw2 and sw3 buttons? nxps32k144</title>
      <link>https://community.nxp.com/t5/S32K/How-write-a-function-which-change-frequency-every-100hz-by-using/m-p/1368901#M12714</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@miketorres" target="_blank"&gt;Hi@miketorres&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hi, Mike&lt;/P&gt;
&lt;P&gt;I give you a hint.&lt;/P&gt;
&lt;P&gt;1.&lt;STRONG&gt;How to change PWM frequency&lt;/STRONG&gt;?&lt;/P&gt;
&lt;P&gt;please refer to example "ftm_signal_measurement_s32k144 "&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.How to use SW1 or SW2.&lt;/P&gt;
&lt;P&gt;please refer to example "power_mode_switch_s32k144"&lt;/P&gt;
&lt;P&gt;In this example,SW3 was used to wake up the CPU from power mode.&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;/* Interrupt service routine for SW3 */
void ButtonISR(void)
{
    /* Clear button IRQ flag */
    PINS_DRV_ClearPortIntFlagCmd(PORTC);
}&lt;/LI-CODE&gt;
&lt;P&gt;or you just keep reading SW(I/O) status without using interrupt.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;pins_channel_type_t PINS_DRV_ReadPins(const GPIO_Type * const base)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR!&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Jim,&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 03:20:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-write-a-function-which-change-frequency-every-100hz-by-using/m-p/1368901#M12714</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2021-11-10T03:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: How write a function which change frequency every 100hz by using sw2 and sw3 buttons? nxps32k144</title>
      <link>https://community.nxp.com/t5/S32K/How-write-a-function-which-change-frequency-every-100hz-by-using/m-p/1370651#M12757</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what's wrong with this code? Could you help me? Where are mistakes? I don't understand. I would like to this code generate digital square signal - 1000hz frequency. By using sw2 and sw3 buttons I would like to change frequency. If I pushed once for example sw2 button frequency should increase about 100HZ. Could you correct my mistake in this code? I will be very grateful.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 11:50:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-write-a-function-which-change-frequency-every-100hz-by-using/m-p/1370651#M12757</guid>
      <dc:creator>miketorres</dc:creator>
      <dc:date>2021-11-12T11:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: How write a function which change frequency every 100hz by using sw2 and sw3 buttons? nxps32k144</title>
      <link>https://community.nxp.com/t5/S32K/How-write-a-function-which-change-frequency-every-100hz-by-using/m-p/1371004#M12770</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@miketorres" target="_blank"&gt;Hi@miketorres&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I have answered you under your other questions.&lt;/P&gt;
&lt;P&gt;BR!&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Jim,&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 02:56:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-write-a-function-which-change-frequency-every-100hz-by-using/m-p/1371004#M12770</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2021-11-15T02:56:51Z</dc:date>
    </item>
  </channel>
</rss>

