This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Serial Array

Hello All, I am working with interrupt based UART0, and I do have little problem in receiving data and storing it in array.

Here is the working ISR

void UART0ISR(void)__irq
{


        if(U0IIR & RDA)
        {
                rxmessage=U0RBR;
                VICVectAddr = 0x00;
         }


}

The problem is I will be receiving a sequence of Hex Data. For eg. 5A AA 06 at first. In this header the third byte 0x06 indicates the length of the characters that will be received further. Later.... I will be receiving 83 00 0A 01 00 01 . I am struggling to figure out and store these things in an array. None of the method I tried seemed to be useless. Can anyone please give some example or advise on it.

Warm Regards

Parents Reply Children
No data