Hello!
I am a novice with this microcontroller and I am trying to start it. I have Olimex LPC-E2468 development board.
I wrote the simplest program in Keil uVision 3 and loaded a hex file by Flash Magic.
#include <lpc24xx.h>
int main (void)
{
SCS=0x0001;
FIO1DIR3=0xFF;
FIO1MASK3=0x00;
FIO1PIN3=0x11;
FIO4DIR2=0x03;
FIO4MASK2=0xFC;
FIO4PIN2=0x00;
while (1)
{
}
}
The program should set pins P1[24] and P1[28] to 1 and down P1[25]…P1[27], P1[29]…P[31] to 0 and produce low on P4[16] and P4[17] to light two on-board LEDs.
I shorted jumpers ISP_E and RST_E, programed the lpc2468 but nothing happened. Port pins are floating on 2.3V.
What I am doing wrong?