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

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.