sandeepzgk
Member
My use case requires me to send Computer (USB) -> Teensy 4.0 -> SPI -> Peripheral I am attempting to send data over USB (potentially USB serial or is there any other way). My data transfer requirement is sending 40,16-bit data, 4000 times a second, which translates to around 2.56Mbits per second.
I plan to cache ~1 second of data, which is 2560000 bits or 320 Kilobytes or 312.5 Kibibytes
I am looking for guidance regarding:
Sorry apologies for the basic questions, I am new to Arduino based programming.
I plan to cache ~1 second of data, which is 2560000 bits or 320 Kilobytes or 312.5 Kibibytes
I am looking for guidance regarding:
- Caching mechanism (mutex), and 1024 bytes of RAM availability, parallelly transfer data from USB to Teensy 4.0 to SPI. i.e. Threading within Teensy / Arduino.
- How to effectively transfer 320kb of data per second over USB to teensy 4.0?
- Text-based serial transfer or hex bytes? Any links or articles. Encoding methods, USB frame size optimization.
- Is there any other language to program Teensy 4.0 for this purpose that could be more effective than Arduino (TeensyDuino)?
Sorry apologies for the basic questions, I am new to Arduino based programming.