<?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のトピックRe: PORTB2 GPIO effect on PORTA1 SPWM Output</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PORTB2-GPIO-effect-on-PORTA1-SPWM-Output/m-p/1478273#M63418</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/57959"&gt;@Robin_Shen&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your response. Having some debug print statements in the ISR was causing problems with the SPWM generation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rashmitha&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jun 2022 15:19:07 GMT</pubDate>
    <dc:creator>Rashmitha_Nair</dc:creator>
    <dc:date>2022-06-22T15:19:07Z</dc:date>
    <item>
      <title>PORTB2 GPIO effect on PORTA1 SPWM Output</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PORTB2-GPIO-effect-on-PORTA1-SPWM-Output/m-p/1476116#M63389</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a project that generates SPWM Output on FTM0 CH6 and CH7 using sine samples from DMA.&lt;/P&gt;&lt;P&gt;Currently, I have a GPIO button that controls output ON &amp;amp; output OFF.&lt;/P&gt;&lt;P&gt;I would like this output to detect the GPIO BUTTON press and then check for the rising edge of a 16kHz signal received on GPIO Pin PTB2 from another board (Master).&lt;/P&gt;&lt;P&gt;The problem is that when I add the PTB2 initialization in boards/pin_mux.c as below&lt;/P&gt;&lt;LI-CODE lang="c"&gt;    /* PORTB2 (pin 55) is configured as PTB2 */
    PORT_SetPinMux(BOARD_PWM_SYCNH_TRG_PORT, BOARD_PWM_SYCNH_TRG_PIN, kPORT_MuxAsGpio);

    /* Interrupt configuration on PORTB2 (pin 55): Interrupt on rising edge */
    PORT_SetPinInterruptConfig(BOARD_PWM_SYCNH_TRG_PORT, BOARD_PWM_SYCNH_TRG_PIN, kPORT_InterruptRisingEdge);

    PORTB-&amp;gt;PCR[2] = ((PORTB-&amp;gt;PCR[2] &amp;amp;
                      /* Mask bits to zero which are setting */
                      (~(PORT_PCR_PE_MASK | PORT_PCR_PFE_MASK | PORT_PCR_ISF_MASK)))

                     /* Pull Enable: Internal pullup or pulldown resistor is enabled on the corresponding pin. */
                     | (uint32_t)(PORT_PCR_PE_MASK)

                     /* Passive Filter Enable: Passive input filter is disabled on the corresponding pin. */
                     | PORT_PCR_PFE(kPORT_PassiveFilterDisable));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then when I connect the 16khz wire on PTB2 of slave, irrespective of the presence of ISR for PTB2, the PWM output is OFF. And there is no response to the GPIO button that is used for ON and OFF of SPWM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some coupling between PTB2 and PTA1 ?&lt;/P&gt;&lt;P&gt;Could you suggest some other way to implement the sync scheme that I mentioned above (detect button press &amp;amp; detect rising edge then turn ON output)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Rashmitha&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 16:33:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PORTB2-GPIO-effect-on-PORTA1-SPWM-Output/m-p/1476116#M63389</guid>
      <dc:creator>Rashmitha_Nair</dc:creator>
      <dc:date>2022-06-17T16:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: PORTB2 GPIO effect on PORTA1 SPWM Output</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PORTB2-GPIO-effect-on-PORTA1-SPWM-Output/m-p/1476370#M63396</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Rashmitha_Nair,&lt;/P&gt;
&lt;P&gt;Did you enable the interrupt and Interrupt service function? You can refer the&amp;nbsp;frdmk64f_gpio_input_interrupt SDK example.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EnableIRQ PORTA_IRQHandler.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/183828i7A9A87F21FF35DC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="EnableIRQ PORTA_IRQHandler.png" alt="EnableIRQ PORTA_IRQHandler.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;During debug, please check the&amp;nbsp;&lt;STRONG style="font-family: inherit;"&gt;Figure&amp;nbsp;11.5.&amp;nbsp;Debug controls and Debug Call Stack&lt;/STRONG&gt;&lt;/P&gt;
&lt;DIV class="chapter"&gt;
&lt;DIV class="section"&gt;
&lt;DIV class="section"&gt;
&lt;DIV class="figure"&gt;
&lt;P class="title"&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MCUX_Debug_controls.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/183829i7AEB7786840C00A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="MCUX_Debug_controls.jpg" alt="MCUX_Debug_controls.jpg" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&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;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Jun 2022 01:59:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PORTB2-GPIO-effect-on-PORTA1-SPWM-Output/m-p/1476370#M63396</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2022-06-20T01:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: PORTB2 GPIO effect on PORTA1 SPWM Output</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PORTB2-GPIO-effect-on-PORTA1-SPWM-Output/m-p/1478273#M63418</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/57959"&gt;@Robin_Shen&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your response. Having some debug print statements in the ISR was causing problems with the SPWM generation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rashmitha&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 15:19:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PORTB2-GPIO-effect-on-PORTA1-SPWM-Output/m-p/1478273#M63418</guid>
      <dc:creator>Rashmitha_Nair</dc:creator>
      <dc:date>2022-06-22T15:19:07Z</dc:date>
    </item>
  </channel>
</rss>

