ronydc
Full Member level 3
dear friends,
i m very new to ARM.
and using KEIL UV4 for LPC2148 Programming
Can some one just give me an example program to just make anLED on to a pin of the ic LPC 2148 ..?
i did the followong but not working.
#INCLUDE <LPC2148.H>
sbit led = P0^15;
wait()
{
unsigned int x;
for (x=0;x<=33000;x++)
}
main()
{
for(;
{
led = 0; // led blinking
wait();
led = 1;
}
}
the above is the program i wrote to burn in to LPC2148.
BUT BEFORE I BURN IT GIVES THE COMPILATION ERRORS IN keil --- "missing Identifier"-- at "sbit".
I THINK WE CANT USE "SBIT" HERE.
WHAT COULD BE THE CORRECT PROGRAM.. CAN SOME ONE SHOW ME THE WAY .?
some one can point me even to some simple example programes link too.
- aWAITING rONY.
i m very new to ARM.
and using KEIL UV4 for LPC2148 Programming
Can some one just give me an example program to just make anLED on to a pin of the ic LPC 2148 ..?
i did the followong but not working.
#INCLUDE <LPC2148.H>
sbit led = P0^15;
wait()
{
unsigned int x;
for (x=0;x<=33000;x++)
}
main()
{
for(;
{
led = 0; // led blinking
wait();
led = 1;
}
}
the above is the program i wrote to burn in to LPC2148.
BUT BEFORE I BURN IT GIVES THE COMPILATION ERRORS IN keil --- "missing Identifier"-- at "sbit".
I THINK WE CANT USE "SBIT" HERE.
WHAT COULD BE THE CORRECT PROGRAM.. CAN SOME ONE SHOW ME THE WAY .?
some one can point me even to some simple example programes link too.
- aWAITING rONY.