2021-09-30 11:39 AM
Hi,
I'm doing a project currently where I have to use the stm32 to relay data to and from the PC simultaneously. I have two other ICs - an IQ modulator and IQ demodulator. I need to send two time-varying signals simultaneously from the PC to the IQ modulator and receive two such signals simultaneously from the IQ demodulator. I was hoping that the STM32 would be able to perform this relaying function over USB. Could somebody point me towards a reference on how to do this?
Regards,
Jerry
2021-09-30 12:34 PM
USB is half-duplex.
The model used for MSC is quite efficient. But you're going to be dealing with blocks of data, in a ping pong fashion, alternating, and not concurrently.
2021-09-30 05:23 PM
Hi,
Thanks for pointing that out - I didn't know USB is half-duplex. I've thought of a workaround to the half-duplex problem. I can store the periodic waveform to be sent to IQ modulators on the stm32 itself, and receive the data from the IQ demodulators to the PC. But still, since there are two separate data streams, what is the best way to do this? Could I/should I set up two different buffers, one each for the I and Q channels?
Regards,
Jerry