<?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: kl25z vlpr_lls_adc project failed to toggle LED?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/kl25z-vlpr-lls-adc-project-failed-to-toggle-LED/m-p/247477#M6683</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&amp;nbsp; Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It solves my issue. I found the macro definitions in freedom.h&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; #define LED0_DIR (GPIOB_PDDR |= (1&amp;lt;&amp;lt;18))&lt;/P&gt;&lt;P&gt;&amp;nbsp; #define LED1_DIR (GPIOB_PDDR |= (1&amp;lt;&amp;lt;19))&lt;/P&gt;&lt;P&gt;&amp;nbsp; #define LED2_DIR (GPIOD_PDDR |= (1&amp;lt;&amp;lt;1))&lt;/P&gt;&lt;P&gt;&amp;nbsp; #define LED3_DIR &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SW_LED_Init()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; LED0_EN; // (PORTA_PCR16 = PORT_PCR_MUX(1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; GPIOA_PDDR |= (1&amp;lt;&amp;lt;16);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; LED1_EN; // (PORTA_PCR17 = PORT_PCR_MUX(1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; GPIOA_PDDR |= (1&amp;lt;&amp;lt;17);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; LED2_EN; // (PORTB_PCR8 = PORT_PCR_MUX(1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; GPIOB_PDDR |= (1&amp;lt;&amp;lt;8);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; LED3_EN; // (PORTA_PCR5 = PORT_PCR_MUX(1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; GPIOA_PDDR |= (1&amp;lt;&amp;lt;5);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The LED0/1/2/3 were setup as PTA16/PTA17/PTB8/PTA5. I guess it is a issue due to wrong GPIO layout due to clone source from other projects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yours sincerely&lt;/P&gt;&lt;P&gt;Allan K Liu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Aug 2013 08:29:53 GMT</pubDate>
    <dc:creator>kai_liu</dc:creator>
    <dc:date>2013-08-13T08:29:53Z</dc:date>
    <item>
      <title>kl25z vlpr_lls_adc project failed to toggle LED?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/kl25z-vlpr-lls-adc-project-failed-to-toggle-LED/m-p/247475#M6681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to run the demo code from FSL (D:\Freescale\Kinetis L Sample Code\kl25_sc_rev5\klxx-sc-baremetal\build\iar\vlpr_lls_adc). The RGB LED should be toggled based upon counter of LPTMR timebase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However LED array doesn't change at all. The hardware is all right, since the FRDM_KL25ZDemo works fine. The only differences between these demo applications is : vlpr_lls_adc uses GPIO to toggle LED, while FRDM_KL25ZDemo uses TPM to drive RGB LEDs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone knows why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2013 04:34:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/kl25z-vlpr-lls-adc-project-failed-to-toggle-LED/m-p/247475#M6681</guid>
      <dc:creator>kai_liu</dc:creator>
      <dc:date>2013-08-09T04:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: kl25z vlpr_lls_adc project failed to toggle LED?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/kl25z-vlpr-lls-adc-project-failed-to-toggle-LED/m-p/247476#M6682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kai Liu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like the data direction registers for each LED are not being configured correctly.&amp;nbsp; Instead of waiting on an update, try modifying the SW_LED_Init function such that after each LED enable, the data direction port is configured for the corresponding LED.&amp;nbsp; So the code should look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LED0_EN;&lt;/P&gt;&lt;P&gt;LED0_DIR;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LED1_EN;&lt;/P&gt;&lt;P&gt;LED1_DIR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LED2_EN;&lt;/P&gt;&lt;P&gt;LED2_DIR;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LED3_EN;&lt;/P&gt;&lt;P&gt;LED3_DIR;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We will make sure to change this in our next sample code update.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2013 16:32:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/kl25z-vlpr-lls-adc-project-failed-to-toggle-LED/m-p/247476#M6682</guid>
      <dc:creator>chris_brown</dc:creator>
      <dc:date>2013-08-12T16:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: kl25z vlpr_lls_adc project failed to toggle LED?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/kl25z-vlpr-lls-adc-project-failed-to-toggle-LED/m-p/247477#M6683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&amp;nbsp; Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It solves my issue. I found the macro definitions in freedom.h&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; #define LED0_DIR (GPIOB_PDDR |= (1&amp;lt;&amp;lt;18))&lt;/P&gt;&lt;P&gt;&amp;nbsp; #define LED1_DIR (GPIOB_PDDR |= (1&amp;lt;&amp;lt;19))&lt;/P&gt;&lt;P&gt;&amp;nbsp; #define LED2_DIR (GPIOD_PDDR |= (1&amp;lt;&amp;lt;1))&lt;/P&gt;&lt;P&gt;&amp;nbsp; #define LED3_DIR &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SW_LED_Init()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; LED0_EN; // (PORTA_PCR16 = PORT_PCR_MUX(1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; GPIOA_PDDR |= (1&amp;lt;&amp;lt;16);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; LED1_EN; // (PORTA_PCR17 = PORT_PCR_MUX(1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; GPIOA_PDDR |= (1&amp;lt;&amp;lt;17);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; LED2_EN; // (PORTB_PCR8 = PORT_PCR_MUX(1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; GPIOB_PDDR |= (1&amp;lt;&amp;lt;8);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; LED3_EN; // (PORTA_PCR5 = PORT_PCR_MUX(1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; GPIOA_PDDR |= (1&amp;lt;&amp;lt;5);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The LED0/1/2/3 were setup as PTA16/PTA17/PTB8/PTA5. I guess it is a issue due to wrong GPIO layout due to clone source from other projects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yours sincerely&lt;/P&gt;&lt;P&gt;Allan K Liu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 08:29:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/kl25z-vlpr-lls-adc-project-failed-to-toggle-LED/m-p/247477#M6683</guid>
      <dc:creator>kai_liu</dc:creator>
      <dc:date>2013-08-13T08:29:53Z</dc:date>
    </item>
  </channel>
</rss>

