<?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: Blinking LED on KL25Z - KDS in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Blinking-LED-on-KL25Z-KDS/m-p/1677141#M65226</link>
    <description>&lt;P&gt;Also, just wanted to add to this post. Learning from this helpful &lt;A href="https://learningmicro.wordpress.com/blink-leds-from-kl25z-freedom-board/" target="_self"&gt;link&lt;/A&gt;, I see that the three LEDs (blue, green and red) are all having common anode configuration. This means that (counter-intuitively) all the LED's must be driven high to switch off&amp;nbsp;(using PSOR registers) and driven low to switch on&amp;nbsp;(using PCOR registers).&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jun 2023 16:06:12 GMT</pubDate>
    <dc:creator>fireflies_at_night</dc:creator>
    <dc:date>2023-06-27T16:06:12Z</dc:date>
    <item>
      <title>Blinking LED on KL25Z - KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Blinking-LED-on-KL25Z-KDS/m-p/453678#M27022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wrote a program for blinking LED. The program does not work:&lt;/P&gt;&lt;P&gt;#include "Cpu.h"&lt;/P&gt;&lt;P&gt;#include "Events.h"&lt;/P&gt;&lt;P&gt;//#include "Bit.h"&lt;/P&gt;&lt;P&gt;/* Including shared modules, which are used for whole project */&lt;/P&gt;&lt;P&gt;#include "PE_Types.h"&lt;/P&gt;&lt;P&gt;#include "PE_Error.h"&lt;/P&gt;&lt;P&gt;#include "PE_Const.h"&lt;/P&gt;&lt;P&gt;#include "IO_Map.h"&lt;/P&gt;&lt;P&gt;void opz(int ile)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; int p;&lt;/P&gt;&lt;P&gt;&amp;nbsp; for(p=0;p&amp;lt;ile;p++)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;void ledkonf(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; PORTB_PCR18=PORTB_PCR18 &amp;amp;~(1&amp;lt;&amp;lt;10) &amp;amp;~(1&amp;lt;&amp;lt;9) | (1&amp;lt;&amp;lt;8);&lt;/P&gt;&lt;P&gt;&amp;nbsp; GPIOB_PDDR=GPIOB_PDDR | (1&amp;lt;&amp;lt;18);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;void swiec(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; opz(100000);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; GPIOB_PDOR=GPIOB_PDOR|(1&amp;lt;&amp;lt;18);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; opz(100000);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; GPIOB_PTOR=GPIOB_PTOR|(1&amp;lt;&amp;lt;18);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; opz(100000);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;int main(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;#ifdef PEX_RTOS_START&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PEX_RTOS_START();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Startup of the selected RTOS. Macro is defined by the RTOS component. */&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ledkonf();&lt;/P&gt;&lt;P&gt;&amp;nbsp; for(;;){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; swiec();&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;But when I added element BitIO_LDD in the Processor Expert, the program works, and the only new element of the program is generated file Bit.h. When I create a project without Processor Expert, the program does not work either. Why is it like that? Please help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 15:00:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Blinking-LED-on-KL25Z-KDS/m-p/453678#M27022</guid>
      <dc:creator>wojciech22a</dc:creator>
      <dc:date>2015-07-28T15:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Blinking LED on KL25Z - KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Blinking-LED-on-KL25Z-KDS/m-p/453679#M27023</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;Probaby the reason why the code doesn't work is because the GPIO is not being enabled/clocked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SIM_SCGC5 |= SIM_SCGC5_PORTB;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;at the start of &lt;STRONG&gt;ledkonf()&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;[&lt;EM&gt;if there is a compilation error check the name of the register/bits in the header that you use and modfiy as required&lt;/EM&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kinetis: &lt;A href="http://www.utasker.com/kinetis.html" title="http://www.utasker.com/kinetis.html"&gt;µTasker Kinetis support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;KL25: &lt;A href="http://www.utasker.com/kinetis/FRDM-KL25Z.html" title="http://www.utasker.com/kinetis/FRDM-KL25Z.html"&gt;µTasker Kinetis FRDM-KL25Z support&lt;/A&gt;&amp;nbsp; / &lt;A href="http://www.utasker.com/kinetis/TWR-KL25Z48M.html" title="http://www.utasker.com/kinetis/TWR-KL25Z48M.html"&gt;µTasker Kinetis TWR-KL25Z48M support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 15:29:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Blinking-LED-on-KL25Z-KDS/m-p/453679#M27023</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-07-28T15:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Blinking LED on KL25Z - KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Blinking-LED-on-KL25Z-KDS/m-p/453680#M27024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take a look into the thread below, specially the post marked as correct answer. It explains how to get a LED and a push button working in baremetal. The explanation is based in the FRDM-KL05Z but it works exactly the same way to the KL25Z.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/525257"&gt;Re: Port configuration&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 15:54:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Blinking-LED-on-KL25Z-KDS/m-p/453680#M27024</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-07-28T15:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Blinking LED on KL25Z - KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Blinking-LED-on-KL25Z-KDS/m-p/1677141#M65226</link>
      <description>&lt;P&gt;Also, just wanted to add to this post. Learning from this helpful &lt;A href="https://learningmicro.wordpress.com/blink-leds-from-kl25z-freedom-board/" target="_self"&gt;link&lt;/A&gt;, I see that the three LEDs (blue, green and red) are all having common anode configuration. This means that (counter-intuitively) all the LED's must be driven high to switch off&amp;nbsp;(using PSOR registers) and driven low to switch on&amp;nbsp;(using PCOR registers).&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 16:06:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Blinking-LED-on-KL25Z-KDS/m-p/1677141#M65226</guid>
      <dc:creator>fireflies_at_night</dc:creator>
      <dc:date>2023-06-27T16:06:12Z</dc:date>
    </item>
  </channel>
</rss>

