• getting error as error C141: syntax error near 'void', expected '__asm' at linevoid lcdcmd(unsigned char val)
    #include<reg51.h> sbit ir1=P1^0; //entry sbit ir2=P1^1; //exit sbit rs=P2^0; sbit rw=P2^1; sbit en=P2^2; void lcdcmd(unsigned char); void lcddat(unsigned char); void lcddis(unsigned char *s,unsigned char...
  • getting error as error C141: syntax error near 'void', expected '__asm' at linevoid lcdcmd(unsigned char val)
    #include<reg51.h> sbit ir1=P1^0; //entry sbit ir2=P1^1; //exit sbit rs=P2^0; sbit rw=P2^1; sbit en=P2^2; void lcdcmd(unsigned char); void lcddat(unsigned char); void lcddis(unsigned char *s,unsigned char...
  • cannot debug clock.error message : c(727): error C141: syntax error near 'void'
    void nihao() { <------ when i debug, y there my brace turn red? tmp=5; if (count==tmp){ P0=0x00; P2=0X00;} if (count==tmp+2){ //n P0=0xfe; P2=0x03;} if (count==tmp+4){ P0=0x0c; P2=0X00;} ...
  • cannot debug clock.error message : c(727): error C141: syntax error near 'void'
    void nihao() { <------ when i debug, y there my brace turn red? tmp=5; if (count==tmp){ P0=0x00; P2=0X00;} if (count==tmp+2){ //n P0=0xfe; P2=0x03;} if (count==tmp+4){ P0=0x0c; P2=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;...