• understanding the syntax of MACROs setbit, clearbit
    I want to create a fctn which can set or clear a bit based on the value of a variable. I attempted to incorporate the provided macro fctns; it didn't work. It compiled, but didn't change port state...
  • syntax error
    #include<stdio.h> #include<reg51.h> void main () { int i; p1=0x0FF; while(1) { for (i=0;i<10000;i++); p1=0x0FF; for (i=0;i<10000;i++); P1=0x00; } } Build target 'Target 1' assembling blink...
  • syntax error
    i am working on following project. & its showing me some errors... & i am unable to remove them... please help me out... program:- /*HEADER FILES*/ #include<reg51.h> #include<string.h> /*LCD...
  • syntax error
    #include<stdio.h> #include<reg51.h> void main () { int i; p1=0x0FF; while(1) { for (i=0;i<10000;i++); p1=0x0FF; for (i=0;i<10000;i++); p1=0x00; } } i am getting a syntax error haelp me to...