Attachments are accessible only for community members.
Anonymous
Not applicable
Mar 07, 2015
03:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 07, 2015
03:29 AM
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
3 Replies