<?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: FRDM-KE06Z Problems with the PWM and CAN, need help!! in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE06Z-Problems-with-the-PWM-and-CAN-need-help/m-p/335427#M15972</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.PNG.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48905i676E155894CE0322/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG.png" alt="Capture.PNG.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the capture photo of debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is interesting is when I tested the sample code of MDK Keil, everything is fine.....I think its the problem of CW or Processor Expert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Mar 2015 11:19:21 GMT</pubDate>
    <dc:creator>yuqili</dc:creator>
    <dc:date>2015-03-24T11:19:21Z</dc:date>
    <item>
      <title>FRDM-KE06Z Problems with the PWM and CAN, need help!!</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE06Z-Problems-with-the-PWM-and-CAN-need-help/m-p/335423#M15968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello to all,&lt;/P&gt;&lt;P&gt; I got the board recently and have tested the modules with the code in the Typical used, now I have 2 problems:&lt;/P&gt;&lt;P&gt;1. I used the Processor Expert to generate a PWM signal with 400ms period and 100 starting pulse width, then I checked the signal by a oscilloscope ,I found the period was 360ms and there's always 16% error with the period and the duty time after I use the SetDutyMS(). And the method SetRatio16() seems don't work at all, the ratio was always &amp;lt;1% regardless the number I set. Same situation after changed the FTM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;int main(void)&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;&amp;nbsp; LDD_TError Error;&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;&amp;nbsp; LDD_TDeviceData *MyPWMPtr;&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;&amp;nbsp; unsigned int i,j;&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;&amp;nbsp; PE_low_level_init();&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;&amp;nbsp; /* Write your code here */&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;&amp;nbsp; MyPWMPtr=PWM1_Init((LDD_TUserData *)NULL);&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;&amp;nbsp; for(i = 0; i &amp;lt; 65535; ++i) {&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error=PWM1_SetRatio16(MyPWMPtr,i);&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //PWM1_SetRatio16();&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(j = 0; j &amp;lt; 65535; ++j);}&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The CAN module can't generate any signal to the pins: I used the looping mode for testing, the receiver can receive the frames sent by it self in the debug mode , but there is no signal detected on the CAN_H or CAN_L.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for the help !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 14:40:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE06Z-Problems-with-the-PWM-and-CAN-need-help/m-p/335423#M15968</guid>
      <dc:creator>yuqili</dc:creator>
      <dc:date>2015-03-20T14:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KE06Z Problems with the PWM and CAN, need help!!</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE06Z-Problems-with-the-PWM-and-CAN-need-help/m-p/335424#M15969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the pin selection register, SIM_PINSEL1.&amp;nbsp; The FRDM-KE06 board uses the alternate pins PTE7 and PTH2 for the CAN signals, so the MSCANPS bit will need to be set to use them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 18:35:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE06Z-Problems-with-the-PWM-and-CAN-need-help/m-p/335424#M15969</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2015-03-20T18:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KE06Z Problems with the PWM and CAN, need help!!</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE06Z-Problems-with-the-PWM-and-CAN-need-help/m-p/335425#M15970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks you for your following,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I have checked the SIM_PINSEL1 and it seems all right, the signal on the pins of the processor is as same as the pins of the module CAN J11:&amp;nbsp; always a flat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 10:11:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE06Z-Problems-with-the-PWM-and-CAN-need-help/m-p/335425#M15970</guid>
      <dc:creator>yuqili</dc:creator>
      <dc:date>2015-03-23T10:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KE06Z Problems with the PWM and CAN, need help!!</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE06Z-Problems-with-the-PWM-and-CAN-need-help/m-p/335426#M15971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the MSCANPS bit set for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 16:36:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE06Z-Problems-with-the-PWM-and-CAN-need-help/m-p/335426#M15971</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2015-03-23T16:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KE06Z Problems with the PWM and CAN, need help!!</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE06Z-Problems-with-the-PWM-and-CAN-need-help/m-p/335427#M15972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.PNG.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48905i676E155894CE0322/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG.png" alt="Capture.PNG.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the capture photo of debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is interesting is when I tested the sample code of MDK Keil, everything is fine.....I think its the problem of CW or Processor Expert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 11:19:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE06Z-Problems-with-the-PWM-and-CAN-need-help/m-p/335427#M15972</guid>
      <dc:creator>yuqili</dc:creator>
      <dc:date>2015-03-24T11:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KE06Z Problems with the PWM and CAN, need help!!</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE06Z-Problems-with-the-PWM-and-CAN-need-help/m-p/335428#M15973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have found out the problem is the interrupt of the component CAN_LDD, when I disable the interrupt the signal is OK......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 13:34:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE06Z-Problems-with-the-PWM-and-CAN-need-help/m-p/335428#M15973</guid>
      <dc:creator>yuqili</dc:creator>
      <dc:date>2015-03-24T13:34:51Z</dc:date>
    </item>
  </channel>
</rss>

