I am interfacing single led with lpc2148.I got simulation result. But i am not getting it on the board.I have written the following program to interface the led.
#include "LPC21xx.h"
void wait(void ) { int j=0;
for(j=0;j<1000000;j++); /*wait for one second*/
}
int main (void) { IODIR0 = 0x10000000; /* P0.28 defined as Output */ PINSEL1= 0x00000000; while (1) { /* Loop forever */
IOSET0 = 0x10000000; /* Turn on LED */
wait(); /* call wait function */
IOCLR0 = 0x10000000; /* Turn off LED */
wait();
................................................... what modifications i have to do to get output..kindly help me..
I want to interface led with lpc2148 by using with port and without port. I measured the voltages of all the pins and come to know that all the pins have same voltage before and after the programming.I have downloaded the program into chip through flash program.Kindly advise me how to interface led by using with port and without port.
and, in the whole internet, you haven't been able to find one example that does this?
No. I am not getting the output on the board but simulation is happenning.
Maybe you delay function is not working on target...? Saying "it does not work" will not help yourself or anybody else. Search for delay functions on this forum.