Hi everybody,
I'm working on a project involving the MSP430F5529.
Our goal is to record data incoming with a RS232 link on a UART, and put them in some text files on a SD Card.
Problem is that we use custom baudrates on the RS232 link (1.25Mbps), and that the SD transfer part is quite long because of the FAT management with our driver.
For the acquisition part, we would like to use a DMA to fetch bytes incoming on the UART and store them in a buffer of 4*512B=2048B.
Then, we would transfer 512B blocks from the buffer to the SD Card.
The 2048B buffer size has been defined so that we can have time to transfer 512B blocks without losing any data that should be read by the DMA.
My question is : is there a way to let the DMA write in loops in the 2048B area (DMAxSZ = 2048, Repeated Single Transfer Mode) while counting how many bytes have been put in the buffer, so that I know when a 512B block of the buffer is ready to be transfered?
Thanks for your interest