TMS570LC4357: TMS570LC4357

Part Number: TMS570LC4357

Tool/software:

1)How to achieve 2000000 baud rate in SCI1 

2)Microcontroller was interface with sierra gsm rc7620 modem through uart(sci1). I cross verify with sierra team regarding response time of gsm modem for some at commands , they ensure that response time was within 1mili second or interms of micro second ,but in my application its taking in mili second of around 500 ms. how can i achieve it in micro second 

below is the c function to send ,receive and comapre with the response 

uint16 command_AT(void)
{
int rec=0;
m=0;
uint8 at_response[500]={0};
char sts[100];
int length=0;
char *s;
uint8 p=0;
strcpy(sts,"AT\r\n");
sciSend(sciREG1,strlen(sts),(uint8 *)sts);
wait(20);
timeout_timer1=0;
Timer_10ms=0;
while(Timer_10ms<5)
{
Life_Sign_Counter++;
rec=sciReceiveChar(sciREG1);
if(rec>=0)
{
at_response[m] =(char)rec;
if( at_response[m]==0x00)
{
at_response[m]='A';
}
m++;
s=strstr((const char *)at_response,"OK");
if(s!=NULL)
{

memset(at_response,0,500);

return OK;
}
}
}

length=sizeof(at_response);
if(length==0)
return TIMEOUT;
else{

#ifdef AT_CMD_DEBUG
for(p=0;p<m;p++)
sciSendByte(sciREG3, at_response[p]);
#endif

return ERROR;
}

}