??? 03/26/07 16:38 Modified: 03/26/07 17:13 Read: times |
#135902 - Initial code for receiving modem response Responding to: ???'s previous message |
I have globally initialize TMOD as follow : TMOD = 0x20; 8-bits Auto Reload Timer 1
The rest of the code is in the link since it is very messy to post a code here. http://img111.imageshack.us/img111/7621/recfu2.jpg This function is to reset RI flag, awaits for SBUF to be filled up before transfering each received character to an array to form a string. Also 1 question, is it necessary for me to keep stopping/running Timer 1 whenever the reception is completeted/started? Please post constructive response, point out my mistake,and i am sorry if my code is not at its optimum efficiency. |