This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem with LPC2103 Start Up

hi to all.,.,.,

pls help to start up with LPC2103 MCU

I am using the following code in KEIL Compiler

************************************************

#include <LPC2103.H>

void wait (void)
{ int d; for (d = 0; d < 100000; d++);
}

int main (void)
{

IODIR = 0x000000FF;

while (1)
{

IOCLR=0x000000FF; wait(); IOSET=0x000000FF; wait();

}
}

*****************************************************

but there is no changes in the state of the port

pls send me the proper code for led blinking

Thanking you

waiting 4 reply.,.,.,

  • Why wait?

    Did you look at the sample code "Blinky" for the board MCB2103? You most probably have the example on your hard disk.

    By the way - are you really, _really_ convinced that it is a good idea to use a dummy for loop as delay?