Dear frends,
I have MCB2140 board from KEIL and I want to connect Siemens MC35i GS modem with the same on COM1 of lpc2148.
The port given on board is not fully connected as there are only two wires connected Tx and Rx. I want to make a data call to another PC and the at command is ATD
Problem is if i m transmitting this at command or say any data from board to PC using serial comm, I can receive that on PC. But when i am sending same command to GSM modem from my board I am not getting any responce resulting there is no ring to the other modem which is connected to PC.
I want to do it with two wire only so need your help..
Please please guide me
Pankaj
Here is my code which I am using for same.
#include /* prototype declarations for I/ functions */ #include /* LPC21xx definitions */
/****************/ /* main program */ /****************/ int main (void) { /* execution starts here */
/* initialize the serial interface */ char temp; temp=0x0d; PINSEL0 = 0x00050000; /* Enable RxD1 and TxD1 */ U1LCR = 0x83; /* 8 bits, no Parity, 1 Stop bit */ U1DLL = 97; /* 9600 Baud Rate @ 15MHz VPB Clock */ U1LCR = 0x03; /* DLAB = 0 */
printf ("atd9879636819;"); printf("%c",temp); /* the 'printf' function call*/
while (1) { /* An embedded program does not stop an */ ; /* ... */ /* never returns. We've used an endles */ } /* loop. You may wish to put in you own */ } /* code were we've printed the dot (...). */