Hai,
Iam trying to interface msp430G2553 interface with sim900 gsm modem
But not working , I think the problem is in the last "ctrl+z" the remaining things is printed on serial
Please help , Can I send ctrl+Z as UCA0TXBUF =26;
Iam using 9600 baud rate and frequency 1MHz SMCLK
message sending function is below
void send_sms()
{
UARTSendArray("AT+CMGF=1", 11);
UARTSendArray("\n", 1);
__delay_cycles(10000);
UARTSendArray("AT+CMGS=",8);
while(!(IFG2 & UCA0TXIFG)); // Wait for TX buffer to be ready for new data
UCA0TXBUF =34;
UARTSendArray("9446727427",10);
while(!(IFG2 & UCA0TXIFG)); // Wait for TX buffer to be ready for new data
UCA0TXBUF =34;
UARTSendArray("\n", 1);
__delay_cycles(10000);
UARTSendArray("Water Theft\r", 13);
//UARTSendArray("\n\r", 2);
// UARTSendArray("Customer ID:TML987/236\n", 25);
// UARTSendArray("\n\r", 2);
__delay_cycles(10000);
while(!(IFG2 & UCA0TXIFG)); // Wait for TX buffer to be ready for new data
UCA0TXBUF =26;
}