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.
Can any one tell me how to get serial communication from 8051 with pc. i m reallly confused. i have tried my best but no characters appeared on my hyper terminal
i have written serial comm. code in assembly from different books but none worked. can any one plz help me?
still i also have problem in compile of code to add include of header "#include "maxim.h"" what is the problem?
Please post your code.
#include "maxim.h"
@malgar fhanpar: What exactly is your problem? Any error messages? Please list them and also list the toolset you're using. Anyway, is this related to the issue of Muhammad Yousaf Gulzar? If no, please open a new thread for your problem.
caonnt find include file on comptuer!
what is error from? it is in pain for link or compile.
That's not even the start of a program!
I guess that the file is somewhere on your PC but the path where the file is stored is not in your include path. Add the path to the include path via: Project -> Options for target ... -> C51
#include "maxim.h" // include the header file maxim.h
main() { set_up_serial_channel(); // set up serial channel
while ( 1 != 2 ) // do it forever { if (1 == recieve_serial_message()) // message received transmit_sreial_response() // send response } }
have you forgotten how to use the 'pre' and '/pre' tags so soon?
and what is the point of commenting 'include the header file maxim.h' next to '#include "maxim.h"' ?? It adds absolutely no value whatsoever!
dou you think the comment is wrong? i dont think it makes the program fail bcoz they are both same. eg maxim.h
"dou you think the comment is wrong?"
It's not wrong - it's just entirely pointless!
If you are going to comment that line, then your comment should provide some information on why you are inlcuding that file at that point; eg, what does it contain?
The usual idiom for an infinite loop is either:
for( ;; )
or:
while( 1 )
The last time I checked, Keil C51 generated exactly the same code for each!
doy ou think the loop is wrong? does make error?
No! Andy just pointed out that the usual style for such a loop is different from your style. But back to your original problem: Did you check the setting for the include path?
wher edo i check include? i can not find file on my pc! is it missing?