Hello everyone,
I am using SCI1 with DMA + Multi-Buffer(8bytes) mode . Since i have about 100 bytes data to receive every 100ms. Because the data size is not a multiple of 8, i can not get complete frame every time.
My questions:
1. I want to know if there is a flag in register that indicate howmany bytes left in the buffer? I did not find in the user guide.
2. How to clear the buffer?
3. I try to directly read LINRD0 and LINRD1 registers when receiving completed, but it seems the data is still there when receiving the next frame of data. Why?
Thanks!