here's my code:
Code: Select all
int main(void)
{
while (1){
Acmd(TX1);
rxData();
}
return 0;
}
Code: Select all
void rxThread(void)
{ char c[33];
char p[]="AI=";
int count=34;
char temp[33];
for(int i=0;i<33;i++)
c[i]=rxByte(RX1);
for(int i=0;i<33;i++) /*To vizualize the recieved data using commnad prompt*/
{
txByte(TX,c[i]);
delay(100);
}
}
void Acmd(out port TXD)
{
for(int i=0;A[i]!=0;i++)
{
txByte(TXD,A[i]);
delay(100);
}
txByte(TXD,13);
}