We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
am getting c141 error in the below piece of code
/***** Utility Functions *****/ void wrdata (BYTE data);error is coming here for the prototype definition also am getting the same error if the function is removed then everything is working fine its compiling properly // Write a Character to the LCD Display. { P3 = 0x0000; P0 = LCD_DATA_WR | data; error is being seen here too // Toggle Pin 'E' to send the command. P0 |= E_PIN_MASK; #pragma ASM nop; nop; nop; nop; #pragma ENDASM P0 &= ~E_PIN_MASK; lcd_wait(); }
the BYTE is unsigned char as below
typedef unsigned char BYTE;
the
LCD_DATA_WR is a macro
Please help me with this error
Thanks in advance
Manoj
Hello people the error was solved
the existing key words were used in the code such as data the highlighting in the keil was dull so was not able to correct the error
In addition to the ANSI standard keywords, Keil C51 also reserves the following extended keywords:
http://www.keil.com/support/man/docs/c51/c51_le_keywords.htm
and 'data' is one of them.
"the highlighting in the keil was dull"
If you think so, then try using, say, 'char' or 'long' as an identifier, and see if you get any "better" error messages from any other compilers...