<?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: SWD pin 30 with PWM/IO - MKE02Z16VLC4 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWD-pin-30-with-PWM-IO-MKE02Z16VLC4/m-p/1002180#M55909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pin 30, is the Pin 4 of the Port C register. You have to initialize it as the alternative function 2 in order to use it as the FTM1_CH0 as you mention above. You can see this in the table 10-1 of the user manual.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81048iEE79BBE1C506410E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would recommend to download our SDK for the FRDM-KE02Z. Once downloaded you can import the SDK examples. Here you will find several that use the FTM module for the different modes it has. As you can see there is one for creating a PWM signal. You may use this as a reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80870i174A1F2C340D0872/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you have further questions.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jan 2020 00:45:46 GMT</pubDate>
    <dc:creator>Sabina_Bruce</dc:creator>
    <dc:date>2020-01-15T00:45:46Z</dc:date>
    <item>
      <title>SWD pin 30 with PWM/IO - MKE02Z16VLC4</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWD-pin-30-with-PWM-IO-MKE02Z16VLC4/m-p/1002179#M55908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;greetings.&lt;/P&gt;&lt;P&gt;What's wrong? How to I use FTM1_CH0 as PWM output?&amp;nbsp;&lt;/P&gt;&lt;P&gt;(pin 30 = PTC4/RTCO/FTM1_CH0/ACMP0_IN2/SWD_CLK)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20200113_000739.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/7176i9856062E46B2D147/image-size/large?v=v2&amp;amp;px=999" role="button" title="20200113_000739.png" alt="20200113_000739.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PWM[Number, bits] &amp;gt; 9 x 16?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20200113_000820.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/7208iF5D3D8D6843DE5FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="20200113_000820.png" alt="20200113_000820.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is an only input pin, do not possible set to output PWM. I am wrong?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Tonn.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2020 03:34:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWD-pin-30-with-PWM-IO-MKE02Z16VLC4/m-p/1002179#M55908</guid>
      <dc:creator>_daniel_</dc:creator>
      <dc:date>2020-01-13T03:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: SWD pin 30 with PWM/IO - MKE02Z16VLC4</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWD-pin-30-with-PWM-IO-MKE02Z16VLC4/m-p/1002180#M55909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pin 30, is the Pin 4 of the Port C register. You have to initialize it as the alternative function 2 in order to use it as the FTM1_CH0 as you mention above. You can see this in the table 10-1 of the user manual.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81048iEE79BBE1C506410E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would recommend to download our SDK for the FRDM-KE02Z. Once downloaded you can import the SDK examples. Here you will find several that use the FTM module for the different modes it has. As you can see there is one for creating a PWM signal. You may use this as a reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80870i174A1F2C340D0872/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you have further questions.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2020 00:45:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWD-pin-30-with-PWM-IO-MKE02Z16VLC4/m-p/1002180#M55909</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2020-01-15T00:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: SWD pin 30 with PWM/IO - MKE02Z16VLC4</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWD-pin-30-with-PWM-IO-MKE02Z16VLC4/m-p/1002181#M55910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sabina, thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use all outputs with PWM (ten). I'm using KDS IDE, processor expert for initializations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After initialize program, guaranted disabled SWD pin functions in SIM_SOPT, bit 3. On program runing all pins responsed ok, howeder, FTM1_CH0 "thinking about life", no action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact, this pin is input or output or all? Note: Capture mode, the pin = input, edge alined PWM mode = output...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exists a equivalent schematic to specific I/O input in any tech document? I not ecountered, possibly wold understand better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2020 01:34:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWD-pin-30-with-PWM-IO-MKE02Z16VLC4/m-p/1002181#M55910</guid>
      <dc:creator>_daniel_</dc:creator>
      <dc:date>2020-01-15T01:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: SWD pin 30 with PWM/IO - MKE02Z16VLC4</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWD-pin-30-with-PWM-IO-MKE02Z16VLC4/m-p/1002182#M55911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hello Daniel,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;The FTM1 signal description are as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/96279i382602F0502E387F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;This means that it is possible to use it as input or output.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Make sure that&amp;nbsp;SIM_SOPT, bit 3(SWDE) is equal to 0. Also check to see how the pin is routed as it could be PTC4 or PTH2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/96314i54CEDFBF95ABDB69/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;If you still have problems. Please provide a code snippet of how you are initializing this pin.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Sabina&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2020 20:09:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWD-pin-30-with-PWM-IO-MKE02Z16VLC4/m-p/1002182#M55911</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2020-01-16T20:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: SWD pin 30 with PWM/IO - MKE02Z16VLC4</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWD-pin-30-with-PWM-IO-MKE02Z16VLC4/m-p/1002183#M55912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Sabina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry it was a misinterpretation of the datasheet made me doubt what I was doing, common when we read something technical in a language other than our daily lives. Not only, but I was also mistaken in thinking I was doing it the right way. In my case, I also did the bit mask incorrectly, now it's right, solved with these two lines:&lt;/P&gt;&lt;DIV class="markdown-here-wrapper" data-md-url="https://community.nxp.com/message/1256751?commentID=1256751&amp;amp;et=watches.email.thread#comment-1256751"&gt;&lt;PRE style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"&gt;&lt;CODE class="hljs language-c" style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block; overflow: auto; overflow-x: auto; color: #333333; background: #f8f8f8; text-size-adjust: none;"&gt;SIM_SOPT &amp;amp;= ~SIM_SOPT_SWDE_MASK; //IO_map.h - clear bit SWDE now is right
SIM_SOPT &amp;amp;= ~SIM_SOPT_ACIC_MASK; //&lt;/CODE&gt;&lt;/PRE&gt;&lt;DIV style="height: 0; width: 0; max-height: 0; max-width: 0; overflow: hidden; font-size: 0em; padding: 0; margin: 0;" title="MDH:PHA+YGBgYzwvcD48cD5TSU1fU09QVCAmYW1wOz0gflNJTV9TT1BUX1NXREVfTUFTSzs8YnI+IFNJ TV9TT1BUICZhbXA7PSB+U0lNX1NPUFRfQUNJQ19NQVNLOzwvcD48cD5gYGA8L3A+"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="20200117_003840.png"&gt;&lt;IMG alt="20200117_003840.png" src="https://community.nxp.com/t5/image/serverpage/image-id/97023iD3CFAF1E018B4805/image-size/large?v=v2&amp;amp;px=999" title="20200117_003840.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;BR /&gt;Solved.&lt;BR /&gt;Daniel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:33:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWD-pin-30-with-PWM-IO-MKE02Z16VLC4/m-p/1002183#M55912</guid>
      <dc:creator>_daniel_</dc:creator>
      <dc:date>2020-11-02T14:33:12Z</dc:date>
    </item>
  </channel>
</rss>

