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
Hi Can you please google and find me an example for what I am looking for. In the view of a beginner. To let you know, I am posting here after searching google first.