Sample Code for LED Blinking

Hi folks,

I had soldered bare chips of ARM from philips (LPC2142). I have a J-Link JTAG with the Kick start version of IAR EWARM. I had written the below code to glow a LED at P0.10. The IAR complied my code and downloaded it. But unfortunately, I was not able to see any changes on the port. I would like to know whether there should be any precations to be taken before writing such codes. Or is there any tutorial which I can follow to write some sample codes other than the examples given by IAR.

#include <iolpc2142.h>

#include <inarm.h>

void main(void)

{

PINSEL0 = 0x00000000;

IO0DIR = 0x00000400;

while(1)

{

IO0SET = 0x00000400;

}

}