Can someone pleae tell me how to write a medium size code systematically?? for example, I have one .c file for LCD, another .c file for keyboard, another .c file for ADC reading. main() is written as main.c. Now i have added all these source codes; but my doubt is how can I call these deifferent files from main; how compiler wil come to know that these many files make the code complete?? Is there any reading material available anywhere?? please help..
"Is there any reading material available anywhere??" Yes - any 'C' textbook! Just look up the chapter(s) on Header Files. This is plain, vanilla, standard 'C' - nothing specific to Keil. "how compiler wil come to know that these many files make the code complete??" The compiler does not know this! The compiler only ever "sees" one source file at a time - you use 'extern' declarations (usually, in header files) to tell the compiler that some functions & variables are available for it to use, but are defined elsewhere. It is the Linker's job to link it all together.