why the RTS pin is always high,should it be reset at the first time to start to work, or other reasons,attach the communication code in AsyncSerial mode as below
BOOL ByteAsyncSerial_Transaction(UCHAR *pucTxMsgBuffer)
{
UCHAR ucMesgLen;
if(pucTxMsgBuffer!=0)//the data buffer is not empty
{
while(RTS&RTSHIGH;);//wait for ant ready?
ucMesgLen=pucTxMsgBuffer[1]+3;//the legth of the data
for(UCHAR i=0;i<ucMesgLen+1;i++)
{
TxdAByte(pucTxMsgBuffer
);//sent the data in serial
}
for(UCHAR i=ucMesgLen+1;i<MESG_MAX_SIZE;i++)
pucTxMsgBuffer=0x00;//reset the rest data not used
Delay50us();
}
return 0;
}