Dear all,
I am working on a project (industry) that requires acquiring data from an external ADC (16bit, 500kSps or 1MSps) through SPI and transfer it over to USB.
The ADC sampling event is triggered from an external pulse so we would need to feed a synchronized signal from the MCU to the ADC.
Instead of using an FPGA, I am considering Teensy 4.0 to see if it can do the job.
- ADC requires a 0.5MHz/1MHz synchronized pulse that would initiate the conversion job (~300ns).
- With the above synchronized pulse, the SPI transfer (CS low) has to happen after 300ns.
- Within 700ns~1.6us in every 2us/1us, we need to read/write at least 16bit data.
- The data received from the SPI has to be transferred to USB at the same time. A buffer might do the trick but SPI has to happen continuously.
The SCK of Teensy seems fast enough (I can probably use dual SPI if necessary) but I have some concerns that we would not be able to trigger SPI transfer every 2us/1us. (I wasn't able to find information about this.)
Aside from that, synchronization is another problem since I need to provide the ADC with a quite accurate clock for a constant sampling rate.
I know this might be too much but has anyone worked on a similar project or know if the above mentioned features would work?
FPGA would do the trick but I am looking for a way to reduce the fabrication cost and if Teensy can do the job, I am a happy man.
PS. I have never worked with Teensy before.
I am working on a project (industry) that requires acquiring data from an external ADC (16bit, 500kSps or 1MSps) through SPI and transfer it over to USB.
The ADC sampling event is triggered from an external pulse so we would need to feed a synchronized signal from the MCU to the ADC.
Instead of using an FPGA, I am considering Teensy 4.0 to see if it can do the job.
- ADC requires a 0.5MHz/1MHz synchronized pulse that would initiate the conversion job (~300ns).
- With the above synchronized pulse, the SPI transfer (CS low) has to happen after 300ns.
- Within 700ns~1.6us in every 2us/1us, we need to read/write at least 16bit data.
- The data received from the SPI has to be transferred to USB at the same time. A buffer might do the trick but SPI has to happen continuously.
The SCK of Teensy seems fast enough (I can probably use dual SPI if necessary) but I have some concerns that we would not be able to trigger SPI transfer every 2us/1us. (I wasn't able to find information about this.)
Aside from that, synchronization is another problem since I need to provide the ADC with a quite accurate clock for a constant sampling rate.
I know this might be too much but has anyone worked on a similar project or know if the above mentioned features would work?
FPGA would do the trick but I am looking for a way to reduce the fabrication cost and if Teensy can do the job, I am a happy man.
PS. I have never worked with Teensy before.
Last edited: