FRDM-KL25Z input from ADC output to DAC

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FRDM-KL25Z input from ADC output to DAC

4,186 Views
nick92
Contributor II

Hi guys,

 

I'm trying to acquire waveform (sinewave in this case) by using the ADC then output them right away through the DAC. So what I'm expecting is identical, or at least very similar waveforms on the oscilloscope. I have attached my results so that you guys can have a look, it is very far from expectations.

 

ADC set up:

Core and Bus Clocks: 20.99072 MHz

A/D resolution: 12-bit

Conversion Time: 7.692308 us

Sample Time: 20 = long

Number of conversions: 32

 

DAC set up:

D/A Resolution: 12-bit

Data mode: unsigned 16 bits, right justified

DMA, Interrupts, Hardware Buffer NOT USED.

 

Things I have tried:

Different sampling time, different conversion time, different number of conversions. different resolutions, feeding input via unity gain buffer (in reference to this: ADC Stability).

I am certain that the DAC works fine as I spent quite a lot of time troubleshooting it (FRDM KL25Z DAC Overshooting).

 

I suspect the ADC is acting up somehow but I haven't quite figured out yet as don't know how to visualize the values I am getting(UART.rar is my attempt of doing so). I have attached my project files as well (ADCin_DACout.rar) .

 

Thanks in advance guys.

Nick.

Original Attachment has been moved to: UART.rar

Original Attachment has been moved to: ADCin_DACout.rar

Tags (4)
0 Kudos
1 Reply

1,088 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Nicola Lacalendola:

We apologize that your question was never attended.

It is probably too late now, but if you still need help about this or with other subjects please do not hesitate to ask.

Regards!

Jorge Gonzalez

0 Kudos