QTC-UMD / dds-sweeper

Raspberry Pi Pico interface for the AD9959 DDS
BSD 2-Clause "Simplified" License
5 stars 2 forks source link

Accept binary data over USB serial #35

Open ehuegler opened 1 year ago

ehuegler commented 1 year ago

The communication speed could be increased for large numbers of instructions by allowing binary data to be sent over the serial interface.

The easiest way to implement this would be to send over the actual instruction commands that the pico programs into memory. This would require a substantial duplication of the instruction creation logic into some sort of wrapper for the pico.

Another option would be to define a binary API that the pico interprets and uses its own instruction creation logic. This would make it easier to generate the binary necessary for a sweep. You would just need to be careful about handling the raw binary for floating point numbers.