Toll-Free Customer Support 24/7

ARM Development Board-LPC2129

/*
* Project name:
ARM Development Board-LPC2129
* Copyright
(c) Researchdesignlab.com
* Description:

* Test configuration:
MCU: LPC2129
Dev.Board: LPC2129 mini
Oscillator: 12 MHz
Software: Keil uVision4

*/


#include<stdio.h>
#include"lpc21xx.h" // header file
#include<string.h>

void DELAY(void);

int main()
{

IODIR0=0X000000F0;

while(1)
{

IOPIN0=0X000000F0;
DELAY();
DELAY();

IOPIN0=0X00000000;
DELAY();
DELAY();

}
}


void DELAY(void)
{
unsigned int x=1000000;
while(x--);

}

 

Back to top