Hi, I m interfacing GSM Module with 89v51rd2 controller.
I want to work on this command “AT+CCLK?”. When I m sending this command from PC using hyperterminal by I am getting an error when I send this command from microcontroller. Please help, its urgent….
#include <REG51F.H>
#include “lcd.h”
char a[25];
int i;
void serial_init()
{
SCON=0x50; //setup for 8-bit data
TMOD=0x20; //setup timer 1 for auto-reload
TH1=0xfd; //Baud Rate 9600
TR1=1; //turn on timer 1
TI=0; //indicate ready to transmit
}
//This function displays a null-terminated string on the RS232 port