<?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>LPC MicrocontrollersのトピックRe: LPC1225 LED BLINKING PROGRAM NOT WORKING</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1225-LED-BLINKING-PROGRAM-NOT-WORKING/m-p/699177#M28136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this program is not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include&amp;lt;lpc122x.h&amp;gt;&lt;BR /&gt;void delay(unsigned int ms);&lt;BR /&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt; &lt;BR /&gt; LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL |=(1UL&amp;lt;&amp;lt;31)|(1&amp;lt;&amp;lt;30)|(1&amp;lt;&amp;lt;29)|(1&amp;lt;&amp;lt;16);&lt;BR /&gt; LPC_IOCON-&amp;gt;PIO0_30 &amp;amp;=~0xFF;&lt;BR /&gt; LPC_IOCON-&amp;gt;PIO0_30 |= (1&amp;lt;&amp;lt;4)|(1&amp;lt;&amp;lt;7); &lt;BR /&gt; &lt;BR /&gt; LPC_GPIO0-&amp;gt;DIR |= (1&amp;lt;&amp;lt;30);&lt;BR /&gt; &lt;BR /&gt; LPC_GPIO0-&amp;gt;CLR |= (1&amp;lt;&amp;lt;30);&lt;BR /&gt; while(1)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;LPC_GPIO0-&amp;gt;SET |= (1&amp;lt;&amp;lt;30);&lt;BR /&gt; delay(1000); &lt;BR /&gt; &lt;BR /&gt; LPC_GPIO0-&amp;gt;CLR |= (1&amp;lt;&amp;lt;30); &lt;BR /&gt; delay(1000); &lt;BR /&gt; &lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;} &lt;BR /&gt;void delay(unsigned int ms)&lt;BR /&gt;{&lt;BR /&gt; int i,j;&lt;BR /&gt; for(i=0;i&amp;lt;ms;i++)&lt;BR /&gt; {&lt;BR /&gt; for(j=0;j&amp;lt;1700;j++);&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Oct 2017 10:30:02 GMT</pubDate>
    <dc:creator>dhineshe</dc:creator>
    <dc:date>2017-10-06T10:30:02Z</dc:date>
    <item>
      <title>LPC1225 LED BLINKING PROGRAM NOT WORKING</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1225-LED-BLINKING-PROGRAM-NOT-WORKING/m-p/699169#M28128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi frnds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am trying to program led blinking in P0_30 using LPC1225/301 microcontroller . there is no error in this program. But led is not blinking. can anyone suggest me what is the problem in this program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include&amp;lt;lpc122x.h&amp;gt;&lt;BR /&gt;void delay(unsigned short int ms) ;&lt;BR /&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt; &lt;BR /&gt; LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL |=(1UL&amp;lt;&amp;lt;31)|(1&amp;lt;&amp;lt;30)|(1&amp;lt;&amp;lt;29);&lt;BR /&gt; LPC_IOCON-&amp;gt;PIO0_30 &amp;amp;=~0xFF;&lt;BR /&gt; LPC_IOCON-&amp;gt;PIO0_30 |= (1&amp;lt;&amp;lt;4)|(1&amp;lt;&amp;lt;7); &lt;BR /&gt; &lt;BR /&gt; LPC_GPIO0-&amp;gt;DIR |= (1&amp;lt;&amp;lt;30);&lt;BR /&gt; &lt;BR /&gt; LPC_GPIO0-&amp;gt;CLR |= (1&amp;lt;&amp;lt;30);&lt;BR /&gt; while(1)&lt;BR /&gt; {&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; LPC_GPIO0-&amp;gt;SET |= (1&amp;lt;&amp;lt;30);&lt;BR /&gt; delay(1000); &lt;BR /&gt; &lt;BR /&gt; LPC_GPIO0-&amp;gt;CLR |= (1&amp;lt;&amp;lt;30); &lt;BR /&gt; delay(1000); &lt;BR /&gt; &lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt;} &lt;BR /&gt;void delay(unsigned short int ms) &lt;BR /&gt;{&lt;BR /&gt; unsigned short int j;&lt;BR /&gt; unsigned long i;&lt;/P&gt;&lt;P&gt;for(j=0;j&amp;lt;ms;j++) &lt;BR /&gt; for(i=0;i&amp;lt;1700;i++);&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 06:14:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1225-LED-BLINKING-PROGRAM-NOT-WORKING/m-p/699169#M28128</guid>
      <dc:creator>dhineshe</dc:creator>
      <dc:date>2017-10-05T06:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1225 LED BLINKING PROGRAM NOT WORKING</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1225-LED-BLINKING-PROGRAM-NOT-WORKING/m-p/699170#M28129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Enable IOCON&amp;nbsp; along with the ports&lt;/P&gt;&lt;P&gt;LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL |=(1UL&amp;lt;&amp;lt;31)|(1&amp;lt;&amp;lt;30)|(1&amp;lt;&amp;lt;29)&lt;STRONG&gt; | (1 &amp;lt;&amp;lt; 16)&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;Otherwise, monitor the pin with an Oscope - maybe the LED circuit is incorrect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 21:14:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1225-LED-BLINKING-PROGRAM-NOT-WORKING/m-p/699170#M28129</guid>
      <dc:creator>chrispflieger</dc:creator>
      <dc:date>2017-10-05T21:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1225 LED BLINKING PROGRAM NOT WORKING</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1225-LED-BLINKING-PROGRAM-NOT-WORKING/m-p/699171#M28130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you mentioned, i reprogrammed&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include&amp;lt;lpc122x.h&amp;gt;&lt;BR /&gt;void delay(unsigned short int ms) ;&lt;BR /&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt; &lt;BR /&gt; &lt;STRONG&gt;LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL |=(1UL&amp;lt;&amp;lt;31)|(1&amp;lt;&amp;lt;30)|(1&amp;lt;&amp;lt;29)|(1&amp;lt;&amp;lt;16);&lt;/STRONG&gt;&lt;BR /&gt; LPC_IOCON-&amp;gt;PIO0_30 &amp;amp;=~0xFF;&lt;BR /&gt; LPC_IOCON-&amp;gt;PIO0_30 |= (1&amp;lt;&amp;lt;4)|(1&amp;lt;&amp;lt;7); &lt;BR /&gt; &lt;BR /&gt; LPC_GPIO0-&amp;gt;DIR |= (1&amp;lt;&amp;lt;30);&lt;BR /&gt; &lt;BR /&gt; LPC_GPIO0-&amp;gt;CLR |= (1&amp;lt;&amp;lt;30);&lt;BR /&gt; while(1)&lt;BR /&gt; {&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; LPC_GPIO0-&amp;gt;SET |= (1&amp;lt;&amp;lt;30);&lt;BR /&gt; delay(1000); &lt;BR /&gt; &lt;BR /&gt; LPC_GPIO0-&amp;gt;CLR |= (1&amp;lt;&amp;lt;30); &lt;BR /&gt; delay(1000); &lt;BR /&gt; &lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt;} &lt;BR /&gt;void delay(unsigned short int ms) &lt;BR /&gt;{&lt;BR /&gt; unsigned short int j;&lt;BR /&gt; unsigned long i;&lt;/P&gt;&lt;P&gt;for(j=0;j&amp;lt;ms;j++) &lt;BR /&gt; for(i=0;i&amp;lt;1700;i++);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still its not working even i checked circuit is correct i checked osc nothing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 04:29:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1225-LED-BLINKING-PROGRAM-NOT-WORKING/m-p/699171#M28130</guid>
      <dc:creator>dhineshe</dc:creator>
      <dc:date>2017-10-06T04:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1225 LED BLINKING PROGRAM NOT WORKING</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1225-LED-BLINKING-PROGRAM-NOT-WORKING/m-p/699172#M28131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your delay function won't work as expected, as the compiler will optimise away your loops. Make sure you put 'volatile' on each of your variable declarations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; border: 0px;"&gt;volatile unsigned short int j;&lt;BR /&gt;volatile unsigned long i;&lt;/P&gt;&lt;P style="color: #51626f; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; border: 0px;"&gt;See&amp;nbsp;&lt;A href="https://community.nxp.com/message/630584"&gt;https://community.nxp.com/message/630584&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 08:45:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1225-LED-BLINKING-PROGRAM-NOT-WORKING/m-p/699172#M28131</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2017-10-06T08:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1225 LED BLINKING PROGRAM NOT WORKING</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1225-LED-BLINKING-PROGRAM-NOT-WORKING/m-p/699173#M28132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply my frnd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont think its delay fault i just removed delay function&amp;nbsp; i am trying to program the P0_30 port pin for zero or clear&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This program also not working. i dnt know what went wrong&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include&amp;lt;lpc122x.h&amp;gt;&lt;BR /&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt; &lt;BR /&gt; LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL |=(1UL&amp;lt;&amp;lt;31)|(1&amp;lt;&amp;lt;30)|(1&amp;lt;&amp;lt;29)|(1&amp;lt;&amp;lt;16);&lt;BR /&gt; LPC_IOCON-&amp;gt;PIO0_30 &amp;amp;=~0xFF;&lt;BR /&gt; LPC_IOCON-&amp;gt;PIO0_30 |= (1&amp;lt;&amp;lt;4)|(1&amp;lt;&amp;lt;7); &lt;BR /&gt; &lt;BR /&gt; LPC_GPIO0-&amp;gt;DIR |= (1&amp;lt;&amp;lt;30);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while(1)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;LPC_GPIO0-&amp;gt;CLR |= (1&amp;lt;&amp;lt;30);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 09:56:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1225-LED-BLINKING-PROGRAM-NOT-WORKING/m-p/699173#M28132</guid>
      <dc:creator>dhineshe</dc:creator>
      <dc:date>2017-10-06T09:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1225 LED BLINKING PROGRAM NOT WORKING</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1225-LED-BLINKING-PROGRAM-NOT-WORKING/m-p/699174#M28133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This program i got from internet this program work superbly&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/******************** (C) COPYRIGHT 2010 Embest Info&amp;amp;Tech Co.,LTD. ********************&lt;BR /&gt;* File Name : main.c&lt;BR /&gt;* Author : Wuhan R&amp;amp;D Center, Embest&lt;BR /&gt;* Date First Issued : 10/15/2010&lt;BR /&gt;* Description : LED blinky example.&lt;BR /&gt;***************************************************************************************&lt;BR /&gt;***************************************************************************************&lt;BR /&gt;* History:&lt;BR /&gt;* 10/15/2010: V1.0&lt;BR /&gt;**************************************************************************************/&lt;BR /&gt; /* Includes ------------------------------------------------------------------*/&lt;BR /&gt;#include "lpc12xx_libcfg.h"&lt;BR /&gt;void delay(unsigned short int ms) ;&lt;BR /&gt;/* Private define ------------------------------------------------------------*/&lt;BR /&gt; /* Number of user LEDs */&lt;BR /&gt;#define LED_NUM 1&lt;BR /&gt;const unsigned long led_mask[] = { 30};&lt;/P&gt;&lt;P&gt;/* Private variables ---------------------------------------------------------*/&lt;BR /&gt;/* SysTick Counter */&lt;BR /&gt;volatile unsigned long SysTickCnt;&lt;/P&gt;&lt;P&gt;/* Private functions ---------------------------------------------------------*/&lt;BR /&gt;void SysTick_Handler (void);&lt;/P&gt;&lt;P&gt;void Delay (unsigned long tick);&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt; * @brief SysTick handler sub-routine (1ms)&lt;BR /&gt; * @param None&lt;BR /&gt; * @return None&lt;BR /&gt; */&lt;BR /&gt;void SysTick_Handler (void) {&lt;BR /&gt; SysTickCnt++;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt; * @brief Delay function&lt;BR /&gt; * @param tick - number milisecond of delay time&lt;BR /&gt; * @return None&lt;BR /&gt; */&lt;BR /&gt;void Delay (unsigned long tick) {&lt;BR /&gt; unsigned long systickcnt;&lt;/P&gt;&lt;P&gt;systickcnt = SysTickCnt;&lt;BR /&gt; while ((SysTickCnt - systickcnt) &amp;lt; tick);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt; * @brief Main program body&lt;BR /&gt; * @param None&lt;BR /&gt; * @return int&lt;BR /&gt; */&lt;BR /&gt;int main (void) { /* Main Program */&lt;BR /&gt; int num = -1;&lt;BR /&gt; IOCON_PIO_CFG_Type PIO_mode;&lt;/P&gt;&lt;P&gt;//SysTick_Config(SystemCoreClock/1000 - 1); /* Generate interrupt each 1 ms */&lt;/P&gt;&lt;P&gt;SYS_ConfigAHBCLK(SYS_AHBCLKCTRL_GPIO0, ENABLE);&lt;/P&gt;&lt;P&gt;IOCON_StructInit(&amp;amp;PIO_mode);&lt;BR /&gt; PIO_mode.type = IOCON_PIO_0_30;&lt;BR /&gt; IOCON_SetFunc(&amp;amp;PIO_mode); &lt;BR /&gt; &lt;BR /&gt; GPIO_SetDir(LPC_GPIO0, 30, 1); &lt;BR /&gt; &lt;BR /&gt; GPIO_SetLowLevel(LPC_GPIO0, 30, 1); &lt;BR /&gt; &lt;BR /&gt; for (;;) { /* Loop forever */&lt;BR /&gt; &lt;BR /&gt; GPIO_SetLowLevel(LPC_GPIO0, 30, 1); &lt;BR /&gt; delay(500);&lt;BR /&gt; &lt;BR /&gt; GPIO_SetHighLevel(LPC_GPIO0, 30, 1); &lt;BR /&gt; delay(500);&lt;BR /&gt; &lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt;void delay(unsigned short int ms) &lt;BR /&gt;{&lt;BR /&gt; unsigned short int j;&lt;BR /&gt; unsigned long i;&lt;/P&gt;&lt;P&gt;for(j=0;j&amp;lt;ms;j++) &lt;BR /&gt; for(i=0;i&amp;lt;1700;i++);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;#ifdef DEBUG&lt;BR /&gt;/**&lt;BR /&gt; * @brief Reports the name of the source file and the source line number&lt;BR /&gt; * where the CHECK_PARAM error has occurred.&lt;BR /&gt; * @param file file Pointer to the source file name&lt;BR /&gt; * @paramline line assert_param error line source number&lt;BR /&gt; * @return None&lt;BR /&gt; */&lt;BR /&gt;void check_failed(uint8_t *file, uint32_t line)&lt;BR /&gt;{&lt;BR /&gt; /* User can add his own implementation to report the file name and line number,&lt;BR /&gt; ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */&lt;/P&gt;&lt;P&gt;/* Infinite loop */&lt;BR /&gt; while(1);&lt;BR /&gt;}&lt;BR /&gt;#endif&lt;BR /&gt;/**&lt;BR /&gt; * @}&lt;BR /&gt; */&lt;/P&gt;&lt;P&gt;/* --------------------------------- End Of File ------------------------------ */&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 10:19:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1225-LED-BLINKING-PROGRAM-NOT-WORKING/m-p/699174#M28133</guid>
      <dc:creator>dhineshe</dc:creator>
      <dc:date>2017-10-06T10:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1225 LED BLINKING PROGRAM NOT WORKING</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1225-LED-BLINKING-PROGRAM-NOT-WORKING/m-p/699175#M28134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this program i worte myself but it is not working i used library #include&amp;lt;lpc122x.h&amp;gt; but not working error also zero&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;#include&amp;lt;lpc122x.h&amp;gt;&lt;BR /&gt;int main(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL |=(1UL&amp;lt;&amp;lt;31)|(1&amp;lt;&amp;lt;30)|(1&amp;lt;&amp;lt;29)|(1&amp;lt;&amp;lt;16);&lt;BR /&gt;LPC_IOCON-&amp;gt;PIO0_30 &amp;amp;=~0xFF;&lt;BR /&gt;LPC_IOCON-&amp;gt;PIO0_30 |= (1&amp;lt;&amp;lt;4)|(1&amp;lt;&amp;lt;7);&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LPC_GPIO0-&amp;gt;DIR |= (1&amp;lt;&amp;lt;30);&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;while(1)&lt;BR /&gt;{&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;LPC_GPIO0-&amp;gt;CLR |= (1&amp;lt;&amp;lt;30);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 10:20:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1225-LED-BLINKING-PROGRAM-NOT-WORKING/m-p/699175#M28134</guid>
      <dc:creator>dhineshe</dc:creator>
      <dc:date>2017-10-06T10:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1225 LED BLINKING PROGRAM NOT WORKING</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1225-LED-BLINKING-PROGRAM-NOT-WORKING/m-p/699176#M28135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;this program is working&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/******************** (C) COPYRIGHT 2010 Embest Info&amp;amp;Tech Co.,LTD. ********************&lt;BR /&gt;* File Name : main.c&lt;BR /&gt;* Author : Wuhan R&amp;amp;D Center, Embest&lt;BR /&gt;* Date First Issued : 10/15/2010&lt;BR /&gt;* Description : LED blinky example.&lt;BR /&gt;***************************************************************************************&lt;BR /&gt;***************************************************************************************&lt;BR /&gt;* History:&lt;BR /&gt;* 10/15/2010: V1.0&lt;BR /&gt;**************************************************************************************/&lt;BR /&gt; /* Includes ------------------------------------------------------------------*/&lt;BR /&gt;#include "lpc12xx_libcfg.h"&lt;BR /&gt;void delay(unsigned short int ms) ;&lt;BR /&gt;/* Private define ------------------------------------------------------------*/&lt;BR /&gt; /* Number of user LEDs */&lt;BR /&gt;#define LED_NUM 2&lt;BR /&gt;const unsigned long led_mask[] = { 30,31};&lt;/P&gt;&lt;P&gt;/* Private variables ---------------------------------------------------------*/&lt;BR /&gt;/* SysTick Counter */&lt;BR /&gt;volatile unsigned long SysTickCnt;&lt;/P&gt;&lt;P&gt;/* Private functions ---------------------------------------------------------*/&lt;BR /&gt;void SysTick_Handler (void);&lt;/P&gt;&lt;P&gt;void Delay (unsigned long tick);&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt; * @brief SysTick handler sub-routine (1ms)&lt;BR /&gt; * @param None&lt;BR /&gt; * @return None&lt;BR /&gt; */&lt;BR /&gt;void SysTick_Handler (void) {&lt;BR /&gt; SysTickCnt++;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt; * @brief Delay function&lt;BR /&gt; * @param tick - number milisecond of delay time&lt;BR /&gt; * @return None&lt;BR /&gt; */&lt;BR /&gt;void Delay (unsigned long tick) {&lt;BR /&gt; unsigned long systickcnt;&lt;/P&gt;&lt;P&gt;systickcnt = SysTickCnt;&lt;BR /&gt; while ((SysTickCnt - systickcnt) &amp;lt; tick);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt; * @brief Main program body&lt;BR /&gt; * @param None&lt;BR /&gt; * @return int&lt;BR /&gt; */&lt;BR /&gt; int main (void) { /* Main Program */&lt;BR /&gt; IOCON_PIO_CFG_Type PIO_mode;&lt;BR /&gt; //LPC_IOCON-&amp;gt;PIO0_30 &amp;amp;=~0xFF;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; LPC_IOCON-&amp;gt;PIO0_30 |= (1&amp;lt;&amp;lt;4)|(1&amp;lt;&amp;lt;7); &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; PIO_mode.type = IOCON_PIO_0_30;&lt;BR /&gt; IOCON_SetFunc(&amp;amp;PIO_mode);&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL |=(1UL&amp;lt;&amp;lt;31)|(1&amp;lt;&amp;lt;30)|(1&amp;lt;&amp;lt;29);&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; LPC_GPIO0-&amp;gt;DIR |= (1&amp;lt;&amp;lt;30);&lt;BR /&gt; &lt;BR /&gt; LPC_GPIO0-&amp;gt;CLR |= (1&amp;lt;&amp;lt;30);&lt;/P&gt;&lt;P&gt;for (;;) { /* Loop forever */&lt;BR /&gt; &lt;BR /&gt; LPC_GPIO0-&amp;gt;SET |= (1&amp;lt;&amp;lt;30);&lt;BR /&gt; delay(1000); &lt;BR /&gt; &lt;BR /&gt; LPC_GPIO0-&amp;gt;CLR |= (1&amp;lt;&amp;lt;30); &lt;BR /&gt; delay(1000);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; }}&lt;BR /&gt;void delay(unsigned short int ms) &lt;BR /&gt;{&lt;BR /&gt; unsigned short int j;&lt;BR /&gt; unsigned long i;&lt;/P&gt;&lt;P&gt;for(j=0;j&amp;lt;ms;j++) &lt;BR /&gt; for(i=0;i&amp;lt;1700;i++);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;#ifdef DEBUG&lt;BR /&gt;/**&lt;BR /&gt; * @brief Reports the name of the source file and the source line number&lt;BR /&gt; * where the CHECK_PARAM error has occurred.&lt;BR /&gt; * @param file file Pointer to the source file name&lt;BR /&gt; * @paramline line assert_param error line source number&lt;BR /&gt; * @return None&lt;BR /&gt; */&lt;BR /&gt;void check_failed(uint8_t *file, uint32_t line)&lt;BR /&gt;{&lt;BR /&gt; /* User can add his own implementation to report the file name and line number,&lt;BR /&gt; ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */&lt;/P&gt;&lt;P&gt;/* Infinite loop */&lt;BR /&gt; while(1);&lt;BR /&gt;}&lt;BR /&gt;#endif&lt;BR /&gt;/**&lt;BR /&gt; * @}&lt;BR /&gt; */&lt;/P&gt;&lt;P&gt;/* --------------------------------- End Of File ------------------------------ */&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 10:29:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1225-LED-BLINKING-PROGRAM-NOT-WORKING/m-p/699176#M28135</guid>
      <dc:creator>dhineshe</dc:creator>
      <dc:date>2017-10-06T10:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1225 LED BLINKING PROGRAM NOT WORKING</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1225-LED-BLINKING-PROGRAM-NOT-WORKING/m-p/699177#M28136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this program is not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include&amp;lt;lpc122x.h&amp;gt;&lt;BR /&gt;void delay(unsigned int ms);&lt;BR /&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt; &lt;BR /&gt; LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL |=(1UL&amp;lt;&amp;lt;31)|(1&amp;lt;&amp;lt;30)|(1&amp;lt;&amp;lt;29)|(1&amp;lt;&amp;lt;16);&lt;BR /&gt; LPC_IOCON-&amp;gt;PIO0_30 &amp;amp;=~0xFF;&lt;BR /&gt; LPC_IOCON-&amp;gt;PIO0_30 |= (1&amp;lt;&amp;lt;4)|(1&amp;lt;&amp;lt;7); &lt;BR /&gt; &lt;BR /&gt; LPC_GPIO0-&amp;gt;DIR |= (1&amp;lt;&amp;lt;30);&lt;BR /&gt; &lt;BR /&gt; LPC_GPIO0-&amp;gt;CLR |= (1&amp;lt;&amp;lt;30);&lt;BR /&gt; while(1)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;LPC_GPIO0-&amp;gt;SET |= (1&amp;lt;&amp;lt;30);&lt;BR /&gt; delay(1000); &lt;BR /&gt; &lt;BR /&gt; LPC_GPIO0-&amp;gt;CLR |= (1&amp;lt;&amp;lt;30); &lt;BR /&gt; delay(1000); &lt;BR /&gt; &lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;} &lt;BR /&gt;void delay(unsigned int ms)&lt;BR /&gt;{&lt;BR /&gt; int i,j;&lt;BR /&gt; for(i=0;i&amp;lt;ms;i++)&lt;BR /&gt; {&lt;BR /&gt; for(j=0;j&amp;lt;1700;j++);&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 10:30:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1225-LED-BLINKING-PROGRAM-NOT-WORKING/m-p/699177#M28136</guid>
      <dc:creator>dhineshe</dc:creator>
      <dc:date>2017-10-06T10:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1225 LED BLINKING PROGRAM NOT WORKING</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1225-LED-BLINKING-PROGRAM-NOT-WORKING/m-p/699178#M28137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is any different between the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;#include&amp;lt;lpc122x.h&amp;gt; and&amp;nbsp;&lt;SPAN&gt;#include "lpc12xx_libcfg.h"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;why my own program is not working.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 10:31:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1225-LED-BLINKING-PROGRAM-NOT-WORKING/m-p/699178#M28137</guid>
      <dc:creator>dhineshe</dc:creator>
      <dc:date>2017-10-06T10:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1225 LED BLINKING PROGRAM NOT WORKING</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1225-LED-BLINKING-PROGRAM-NOT-WORKING/m-p/699179#M28138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dhinesh E,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You can compare these two headfile, check the details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Beside, you can debug your code, check the register, whether the according register is modified.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Any further question, just let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 09:44:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1225-LED-BLINKING-PROGRAM-NOT-WORKING/m-p/699179#M28138</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-10-09T09:44:50Z</dc:date>
    </item>
  </channel>
</rss>

