Hello!
Spec of the system:
- 50us ISR with timecritical stuff
- Serial connection with 9.6K to 1M Baud
- Serial protocol that does not transmit a fixed framelength at a time but is variable
Thoughts:
- Since the protocol does not have a fixed framelength, i'd need to setup the RX Fifo trigger level RXFIFTL in FCR to 0 to get an event upon each byte recieved?
- Serial communication should be serviced at some lower priority task, maybe every 1ms because there's other, more important stuff to do for the CPU
- The preferred setup would be "Let EDMA transfer bytes from fifo to buffer untill the tasks services the UART"
Questions:
- could "Let EDMA transfer bytes from fifo to buffer untill the tasks services the UART" be implemented anyways?
- If not, is there a way to achieve high baud rates (1MBaud) with EDMA transfers whith servicing UART at a low interval (1ms)
- Can i setup the edma to transfer n-bytes from UART RX FIFO to a buffer and stop the EDMA transfer within the UART service routine?
Thank you for your help!