i am using TWR-K60F120M . i need a code to apply Differential input to ADC1 DP0 and DM0
please let me know if anybody is having this
Thanks for your Help
For AD1_DP0 and AD1_DM0.
Both channels individually working fine when configured as single ended input.
Problem Comes when,
I configured both the channels as differential input,
I applied 0.6V as input to both the channels,
As per the datasheet,input to the differential pins must be shifted by 0.6V.
so if on both the channels I applied 0.6V to the ADC then Readings of ADC must be 0. but the reading i got is garbage values in TWR Kit.
then i applied sine wave shifted by 0.6V on both the channels but i am getting garbage readings.
I need your help regarding this issue.
Thanks
Hi,
Today, I do a test with TWR-K60F120M board. I connect ADC1_DP0 an ADC1_DM0 with 0.6V voltage and I could get the ADC1_RA register value is 0xfff6 or 0xfff5. For the 16-bit differntial input, the ADC conversion result is signed 2's complement. I think my test ADC1 conversion result is good. Could you let me know what's your ADC1_RA result about connect ADC1_DP0 and ADC1_DM0 with same 0.6V voltage? Thanks.
Hi,
I am interfacing ADC0_DP0 and ADC0_DM0 as differential input.
and i am using Keil as programmer.
I have attached my code.in that
DEMO.c is main file and ADC_New.c and ADC_New.h are driver files for ADC
in my code,
i have used systick timer as 1ms interrupt.
i am taking 20 samples and displays it into UART of TOWER KIT.
both the channels as single ended working fine but as i make it differential then below 20 samples I am getting
ffc5, 19, 14, 1a, 20, 15, 13 ,f ,12 ,14 ,16 ,a, 18 ,e, 23, 1e, 1e, 1d, 13 ,15.
kindly also provide your code with UART.
My main purpose is to measure differential SINE Wave.
Thank you so much for your valuable reply.