cancel
Showing results for 
Search instead for 
Did you mean: 

USB Low-Full-High Speed Peripherals

Anonymous
Not applicable

Good afternoon all,

   

Am trying to blink an led using fx2lp breakout board. We connected one led at pin portA.0. By keeping examples program as reference given in the fx2lp dvk kit website We written the code for this one. We are getting error as shown below.

   

Please let me know how to solve this problem.

   


#include<reg51F.h>
sbit led = PA.0;

void wait(int x)
{
    int i, j;
    for(i = 0; i<x; i++)
    {
        for(j = 0; j<25; j++);
    }
}
int main()
{
    while(1)
    {
        led = 1;
        wait(100);
        led = 0;
        wait(100);
    }
    return 0;
}
   
   

   

 

   

Regards

   

Vimala
                 
 

0 Likes
3 Replies