<?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 Software Development KitのトピックFRDM-K64Z - PWM output using PTA0 (J2_2)</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64Z-PWM-output-using-PTA0-J2-2/m-p/605582#M6239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 1em 0px;"&gt;I’m reproducing PWM example provided by Freescale (NXP).&lt;/P&gt;&lt;P style="margin: 1em 0px;"&gt;“&lt;SPAN style="font-size: 11pt;"&gt;PWM (FTM) example in Kinetis Design Studio with FDRM-K64F “, paper written by Paul Garate and Augusto Panecatl .&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 1em 0px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;I want to redirect PWM output from PTD5 to PTA0 using the same channel #5.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Using PTA0 (J2_2) FTM0_Ch5 the program fails executing ”PORTA-&amp;gt;PCR [0] = PORT_PCR_MUX (3);” (line #15) instruction.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;SDA debugger is also disconnected for some reason.&lt;/P&gt;&lt;P style="margin: 1em 0px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;When I change PWM to &lt;SPAN style="text-decoration: underline;"&gt;PTC1 (J1_5)&lt;/SPAN&gt; FTM0_Ch0 or &lt;SPAN style="text-decoration: underline;"&gt;PTA1 (J1_8)&lt;/SPAN&gt; FTM0_Ch6 the same program runs fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 1em 0px;"&gt;But when I try to use PTA0 (J2_2) FTM0_Ch5 the program fails executing” PORTA-&amp;gt;PCR [0] = PORT_PCR_MUX (3);” (line #15) instruction. SDA debugger is disconnected for some reason.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;In the same program by changing to output to PTA1 (and channel #6) everything is working fine.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;For the reference I’m attaching my bare source code that’s run on KDS3.2 and KSDK v2.0.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338788"&gt;main.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 20 Nov 2016 21:36:23 GMT</pubDate>
    <dc:creator>shauldorf</dc:creator>
    <dc:date>2016-11-20T21:36:23Z</dc:date>
    <item>
      <title>FRDM-K64Z - PWM output using PTA0 (J2_2)</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64Z-PWM-output-using-PTA0-J2-2/m-p/605582#M6239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 1em 0px;"&gt;I’m reproducing PWM example provided by Freescale (NXP).&lt;/P&gt;&lt;P style="margin: 1em 0px;"&gt;“&lt;SPAN style="font-size: 11pt;"&gt;PWM (FTM) example in Kinetis Design Studio with FDRM-K64F “, paper written by Paul Garate and Augusto Panecatl .&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 1em 0px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;I want to redirect PWM output from PTD5 to PTA0 using the same channel #5.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Using PTA0 (J2_2) FTM0_Ch5 the program fails executing ”PORTA-&amp;gt;PCR [0] = PORT_PCR_MUX (3);” (line #15) instruction.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;SDA debugger is also disconnected for some reason.&lt;/P&gt;&lt;P style="margin: 1em 0px;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;When I change PWM to &lt;SPAN style="text-decoration: underline;"&gt;PTC1 (J1_5)&lt;/SPAN&gt; FTM0_Ch0 or &lt;SPAN style="text-decoration: underline;"&gt;PTA1 (J1_8)&lt;/SPAN&gt; FTM0_Ch6 the same program runs fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 1em 0px;"&gt;But when I try to use PTA0 (J2_2) FTM0_Ch5 the program fails executing” PORTA-&amp;gt;PCR [0] = PORT_PCR_MUX (3);” (line #15) instruction. SDA debugger is disconnected for some reason.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;In the same program by changing to output to PTA1 (and channel #6) everything is working fine.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;For the reference I’m attaching my bare source code that’s run on KDS3.2 and KSDK v2.0.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338788"&gt;main.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Nov 2016 21:36:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64Z-PWM-output-using-PTA0-J2-2/m-p/605582#M6239</guid>
      <dc:creator>shauldorf</dc:creator>
      <dc:date>2016-11-20T21:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64Z - PWM output using PTA0 (J2_2)</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64Z-PWM-output-using-PTA0-J2-2/m-p/605583#M6240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shaul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Several of the PTA pins are used by the SWD debug interface on the K64F chip.&amp;nbsp; You can't use them for another function and use the debug interface at the same time. Additional pins are used if the JTAG interafce is used.&lt;/P&gt;&lt;P&gt;The usual way of using these pins in an application would be a load &amp;amp; go setup i.e. load a program and execute without debug function.&lt;/P&gt;&lt;P&gt;Sometimes using them for another function can make re-programming the chip difficult so it is best to avoid using them during development.&lt;/P&gt;&lt;P&gt;It is really an error on the FRDM board that PTA is brought out to the headers as it is not very practical to use for development.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PTA0= SWD_CLK&lt;/P&gt;&lt;P&gt;PTA3=SWD_DIO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Nov 2016 22:08:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64Z-PWM-output-using-PTA0-J2-2/m-p/605583#M6240</guid>
      <dc:creator>pgo</dc:creator>
      <dc:date>2016-11-20T22:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64Z - PWM output using PTA0 (J2_2)</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64Z-PWM-output-using-PTA0-J2-2/m-p/605584#M6241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks you are right it can be seen from schematics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The origin to my problem was Mbed  and Freescale reference pinout where J2_2 is asserted to PTA0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And PTA0 in K64 Reference Manual can be configured as FTM0_Ch5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look at the following Link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.mbed.org/questions/7074/Is-D8-actually-PTC12-and-not-PTA0/" target="test_blank"&gt;https://developer.mbed.org/questions/7074/Is-D8-actually-PTC12-and-not-PTA0/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shaul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 11:02:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64Z-PWM-output-using-PTA0-J2-2/m-p/605584#M6241</guid>
      <dc:creator>shauldorf</dc:creator>
      <dc:date>2016-11-21T11:02:40Z</dc:date>
    </item>
  </channel>
</rss>

