Interfacing ADC with FPGA

OP (Company: IIT Delhi) #5433891
Rate this post
useful
not useful
Hi,
I have connected MCP3202 spi based 12-bit ADC with Spartan-6 FPGA. The 
analog voltage is sensed and displayed on LCD. It is showing following 
issues.

(1) ADC's input 0 V is displayed as 0000 on LCD, which is fine. But, 
ADC's input 2.5 V is displayed as 1024 on LCD, but it should be 2048 for 
12-bit ADC. Similarly, ADC's input 5 V is displayed as 2047 on LCD, but 
it should be 4095 for 12-bit ADC.

(2) Even for constant DC input at ADC, the corresponding value on LCD 
display is fluctuating.

(3) I am not sure with hardware connection of MCP3202 with Spartan-6. If 
anyone is having hands-on experience, please help me.


Please help me in fixing these issues.
Attached files:
Moderator (Company: Titel) #5433977
Rate this post
useful
not useful
Varun C. wrote:
> Please help me in fixing these issues.
The simulator is the primary debugger in FPGA design. Does the 
simulation of your design look ok?

> But, ADC's input 2.5 V is displayed as 1024 on LCD, but it should be
> 2048 for 12-bit ADC. Similarly, ADC's input 5 V is displayed as 2047 on
> LCD, but it should be 4095 for 12-bit ADC.
Do you use the correct timing for the ADC? What data can you measure on 
the Dout line of the ADC? Does it match the value you get inside the 
FPGA, or is there an offset by 1 bit? Does the measured timing match the 
timing in the datasheet?

> I am not sure with hardware connection
Do the serial IO voltages of the ADC match the IO voltage of the FPGA? 
do you see good signals? Or is there some ringing or even glitches on 
the signals?

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now