i'm doin a project in which i'm supposed to interface 8051 microcontroller wid a gsm module 2 send sms... the 8051 microcontroller is a silabs development kit and the gsm module is from multi tech. I'm now supposed 2 write a programme in which after i debug and run it should send a simple msg. I have written most of the code but i'm facin a major problem can some 1 help me! thanks a lot.
"I have written most of the code but i'm facin a major problem can some 1 help me! thanks a lot."
1) Why don't you describe what your "major" problem is? Or are we expected to figure that out on our own?
2) What attempts have you made to figure out what the problem is?
3) The parts that may possibly be code seems like a copy/paste from other code. But everything you posted is posted unformatted, since you didn't read the information on how to post source code.
4) A large part of the code you seem to have written starts with // and isn't used. If it is intended to do something, then you need to remove the // infront of the lines. If the lines are not intended to do something, then you should remove them, and focus on the lines that means something. And instead add comments describing why you are doing different things, and what assumptions you have made.
which is very clearly stated:
www.danlhenry.com/.../keil_code.png
Why not repost your code, with the commented out lines removed. It'll probably end up being about a tenth of the size.
Your Receive function looks very minimalistic!
"with the commented out lines removed"
Indeed.
But be sure to use only spaces for layout - TABs will almost certainly not be interpreted correctly. (you can set uVision - and any other decent programmer's editor - to insert spaces when you press the TAB button).
Also be sure that your code builds cleanly - without warnings or errors - before you post it.
And give a clear description of what the code is intended to do, what it actually does, and what steps you have taken to debug it.
For debugging tips, see: www.8052.com/.../169331