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; }
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.
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 either have a different problem, or the answer have already been given in this thread.
hi,,,, can someone answer me this time,,,, how do you talk to a modem?