C51 FATAL-ERROR - ACTION: PARSING SOURCE-FILE ERROR: PREPROCESSOR: MACROS TOO NESTED C51 TERMINATED.
PLEASE TELL ME HOW TO SOLVE THIS ERROR.
You define 'data', don't do that.
#define data P1
Don't do that in 'keypad':
#include <regx52.H> #include "lcd.c"
Don't do that in 'rtc':
#include <regx52.H> #include <absacc.h> #include "lcd.c" #include "rtc1.c" #include "keypad.c"
Don't do that in 'main program':
Why? It's in the books.
instead of banging back and forth, why do you not post your code in a readable (see instructions) form
It is a Keil proprietary keyword: http://www.keil.com/support/man/docs/c51/c51_le_memtypes.htm
Note that all the product manuals are available online: http://www.keil.com/support/man_c51.htm
Look at this picture: www.danlhenry.com/.../keil_code.png - follow the instructions.
If that's not clear, try following the link, "Tips for Posting Messages".