Original Attachment has been moved to: test_4.zip
#include "LPC11Exx.h"
void delay(void)
{
volatile uint32_t i, j;
for (i = 0; i < 1000000; i++ )
j++;
}
int main(void) {
LPC_SYSCON->SYSAHBCLKCTRL |= (1<<6);// enable GPIO
LPC_GPIO->DIR[0] |= (1<<23);// P0.23 output
while(1) {
LPC_GPIO->SET[0] = (1<<23);// P0.23 high
delay();
LPC_GPIO->CLR[0] = (1<<23);// P0.23 low
delay();
}
return 0 ;
} |
#if defined (__USE_CMSIS) || defined (__USE_LPCOPEN) SystemInit(); #endif |
#if defined (__USE_CMSIS) || defined (__USE_LPCOPEN) //SystemInit(); #endif |
Hi @Badman
If systeminit is commented out, then how will clock be initialized? for internal clockircclock must be PLLed.
Thanks and Regards,
Athmesh Nandakumar