UART vs USB
I have a question regarding the logic of the USB cdc transfer. But beforehand let me show you approach up to now
This is in a rough version my program, It will be used for feedback control. So a fixed frequency of the main loop is mandatory (as I use digital filters inside the data processing). At the same time I would like to stream my data to a PC to supervise the data. I realizied this by using UART_DMA_Transmit. So then the transfer is not influencing (or at least only little) my main loop.
At the moment I forward 9 16bit variables via UART to the PC. With a baud rate of 500000 I get a transfer frequency of roughly 700µs.
When using comercial I/O cards (NI, Meilhaus,...) they are able to transfer the data at much higher speeds. I suspect that here the USB cdc transfer is used.
I have seen some examples for this type of transfer. But in every example one sends data in a polling mode. Concerning my must have fixed main loop for the feedback control, is there a similar way to use USB transfer without blocking the main loop?
Thanks in advance for your help!
