vead
Full Member level 5
Hello
I want to blink led with LPC2138 on proteus simulator. I have written program on keil but I am not to see led blink
This is my code
What is problem
I want to blink led with LPC2138 on proteus simulator. I have written program on keil but I am not to see led blink
This is my code
Code:
#include <LPC213X.H>
void delay(unsigned int wait);
void delay(unsigned int wait)
{
unsigned i;
for( i = 0; i < wait; i++)
{
}
}
int main (void)
{
IODIR0 = 0x000000FF; //Port-0.0 to Port-0.7 pins as Output Pin
while (1)
{
IOSET0 = 0x000000FF; //P0.0 to P0.7 are high
delay(5000);
IOCLR0 = 0x000000FF; //P0.0 to P0.7 are low
delay(2000);
}
}
What is problem