Digital Delay Line

Status
Not open for further replies.
I am new to the Teensy and am building a digital delay line for a continuous stream of 8-bit digital data @ 20MSa/s. I have designed it thus:

1. Capture 8-bit data from an externally clocked ADC, that will give 20 MSa/sec and provide a 20 MHz interrupt for 2 x T3.6 overclocked to 240 MHz
2. Write the ADC data to a Cypress dual ported SRAM, into a 16kB circular buffer using T3.6 No.1
3. Time out for the delay period, min 350us, max 450us of T3.6 No. 1.
4. Raise an interrupt on a GPIO pin of T3.6 No. 1
5. Get T3.6 No. 2 to service the interrupt and begin reading the data in the dual ported RAM and write it to an R2R DAC @ 20 MHz
6. After the first interrupt, both processors read and write synchronously using the external ADC clock as interrupt, thereby realizing a delay line.

Is there a more efficient way of doing this?
 
I am new to the Teensy and am building a digital delay line for a continuous stream of 8-bit digital data @ 20MSa/s. I have designed it thus:

1. Capture 8-bit data from an externally clocked ADC, that will give 20 MSa/sec and provide a 20 MHz interrupt for 2 x T3.6 overclocked to 240 MHz
2. Write the ADC data to a Cypress dual ported SRAM, into a 16kB circular buffer using T3.6 No.1
3. Time out for the delay period, min 350us, max 450us of T3.6 No. 1.
4. Raise an interrupt on a GPIO pin of T3.6 No. 1
5. Get T3.6 No. 2 to service the interrupt and begin reading the data in the dual ported RAM and write it to an R2R DAC @ 20 MHz
6. After the first interrupt, both processors read and write synchronously using the external ADC clock as interrupt, thereby realizing a delay line.

Is there a more efficient way of doing this?

I doubt that this will work.
240/20 = 12. You have 12 cpu-cycles to do that. Not counting the F_BUS, which is much lower clocked,and needed for I/O. You need an FPGA.
 
Except for the speed problem, why not using 1 T3.6 and doing the delay line in the Teensy's RAM. That seems a lot easier to me and probably just as fast.
 
Status
Not open for further replies.
Back
Top