• 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...
  • 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...
  • C141 error at line 12: syntax error near ';' and syntax error near ')' encountered
    1 #include <REGX52.H> 2 void delay_and_check_1(void); 3 void delay_and_check(void); 4 void check_button_pres(void); 5 void display_value(void); 6 #define column 000001111; 7 unsigned char store=0x00;...
  • C141 error at line 12: syntax error near ';' and syntax error near ')' encountered
    1 #include <REGX52.H> 2 void delay_and_check_1(void); 3 void delay_and_check(void); 4 void check_button_pres(void); 5 void display_value(void); 6 #define column 000001111; 7 unsigned char store=0x00;...
  • I AM GETTING A SYNTAX ERROR AS ----PRACTICE.c(23): error C141: syntax error near '!=', expected ')'---- CAN ANY ONE HELP ME
    #include<reg51.h> unsigned int digi_val[10]={0x40,0xF9,0x24,0x30,0x19,0x12,0x02,0xF8,0x00,0x10}; // Hex value corresponding to the digits 0 to 9 sbit output_on_pin = P3^0; // Enable pin to enable the...