Hi Khaled, not sure if you have solved this, but it is basically down to program structure/code.
If you want to vary the adc and read the dac you need to do this in your program loop:
Start loop:
set dac voltage
delay to allow analogue signal to settle
read adc (into an array or do a calulation)
loop (until finished)
I use the "ticker" to do all my adc conversions and filtering at regular intervals, I found this most useful.
Hope that helps in your code development.
P.S. you may get more/better answers if you repost in one of the other forums such as 'hello world' or 'electronics and hardware'
Dear all,
i want to use mbed as a sine wave generator using DAC and apply this signal on a tissue then sample the returned signal to get the impedance of the tissue.
unfortunately the DAC and ADC did not work together, i used pin 18 for DAC and pin 20 for ADC and each of them is working properly without the other.
How can i make them work together at the same time??