I use the TMS570 SCI/LIN module receiving data in Multi-Buffer Mode.When it received 8byte data ,SCI generate an interrupt.
My problem is that when there is undesirable 1byte first and then 8byte I expect in the bus,the first byte will take up the buffer's first position,and only 7 in 8 bytes can be received to generate an interrupt.That means the receivde 8byte of a message is not correct.
for example,
undesirable 1byte:FF
expect message :FF 01 00 00 00 00 01 FE
buffer:FF FF 01 00 00 00 00 01
So ,I want to know if there is a flag in register that indicate howmany bytes in the buffer ,and if there also is a flag which I can use to clear the buffer.I read the user guide,but didn't find the flag.