Thanks jamesbone,
I get started with my custom board, so, first I tried to blink the LEDs which is connected on port4 P4.6 and P4.7 of my custom board. Code is running well on a simulator but when I burn the hex code, not able to toggle the LEDs.
#include <LPC23xx.h>
int delay;
int main (void)
{
PINSEL8 = 0x00000000;
FIO4DIR = 0x0000F000;
while (1)
{
FIO4SET = 0x0000F000; // Set Logic 1 to all the PORT4 pins i.e. turn on LEDs
for (delay = 0; delay<500000; delay++);
FIO4CLR = 0x0000F000; // Set Logic 0 to all the PORT4 pins i.e. turn off LEDs
for (delay = 0; delay<500000; delay++);
}
return 0;
}
please help me,
warm regards
Mohammad Faizan