sir., i wrote the following code in keil compiler., but eventhough i didnt specified while loop.,the code is executing in infinite loop. may i know y ?
my code:
#include <reg51.h>
void main()
{
TMOD = 0x20; SCON = 0x50; TH1 = 0XFD; TR1 = 1; TI = 1; printf ("Hello World\n\r"); TI=0; }
hi,,,, can someone answer me this time,,,, how do you talk to a modem?
You either have a different problem, or the answer have already been given in this thread.
Even i have the same problem with serial communication.. i am using keil .. is there any solution for this problem.. if so please let me know.. thanks in advance :)
You were asked a fundamental question:
"What do you think happens when the program leaves main()?"
I think you need to address this one before even starting with the modem.
I am using a gsm modem sim300
a strange answer to
What do you think happens when the program leaves main()?
sir.,
am using a gsm modem sim300., for sending a text msg i need send ctrl+z cmnd. am using the ascii value 0x1A but my modem is not sending the msg., * gsm modem is working for ATD command.
can you please help in this...!
thank you sir.,
Do you think there are some command line prompt that will show up, waiting for a program command to execute?
An embedded application using the standard Keil startup files are never expected to exit. In this case, the code will restart again and again - but having a main() that exists is int this specific case not allowed. Another version of the Keil tools could just as well do something else - hang after end of main() or run random instructions found in the memory.
View all questions in Keil forum