Skip to main content
Arduino

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Connecting high sampling rate DAC and ADC to arduino DUE, timer consideration

I'm in the echopen association, our goal is to create a low cost, open source echographic probe. In order to do that, we use an arduino due for the first step. For doing acoustic imaging, we use ultrasonic transducer wich works at high frequency, typically 5 MHz. So, for our purpose we need to send and receive analogic signal at high frequencies. We want to connect a 80 Msps DAC and a 80 Msps ADC to the arduino due so we can generate and mesure analog signal up to 42 MHz. I have found here (http://www.instructables.com/id/Arduino-Timer-Interrupts/#step0) how to use arduino timer interrupts in order to send and receive data at 84 MHz. I haven't connect my converters for the moment, but I have preliminary questions. First, is the definition of the timer is the same for the arduino due (i.e. timer1 is a 16 bits timer) ? Morever, my ADC and DAC are 14 bits converters, can I tell to the arduino to sent only 14 bits digital signal ? Secondly, as we work at high frequencies we will have to send a lot of data from the microcontroller to a computer via the serial port. I have make a test and at 250000 bauds it takes nearly 0.5 second to transfer 4300*8 bits datas. It is to slow for our purpose, how can I do it faster ?

Answer*

Draft saved
Draft discarded
Cancel
3
  • I thought the arduino due can send digital data at each time clock... I have to find another way. Thank you for your answer Commented Sep 1, 2015 at 9:09
  • The Due uses an ARM core. The ARM core is RISC. To, for example, get a byte from memory and place it on a port register takes minimum 4 instructions (load address, load data from address, load address, write data to address) and each instruction (load or store instruction) takes 1 clock cycle. That's in assembly. In C it becomes more, and as soon as you start looping you get even longer - condition tests, branches, incrementing values, etc - it may take upwards of 10 instructions with maybe 15 clock cycles for each access of the port. That would make about 5.6MHz maximum output. Commented Sep 1, 2015 at 9:36
  • DMA might be able to do a bit better than the ARM core, but still the design seems farfetched. This is territory for an FPGA, or a very, very carefully chosen MCU. The pi is probably not a fit - the core may be fast, but that does not mean there is necessarily a suitable fast I/O interface. Commented Dec 1, 2015 at 1:56

AltStyle によって変換されたページ (->オリジナル) /