HELP VHDL code for ADC at FPGA

OP #2660842
Rate this post
useful
not useful
I want use ADC at FPGA, but honestly i didnt understand to coding at 
FPGA use VHDL..

my project is to read output from saensor CO, but before go to there.. i 
want to try coding simple AD with input 5volt and i can see the output 
from FPGA..

can someone help me? or give me good tutorial.. cause i already search 
but only get code without good explanation with that code..

thanx so much,
Moderator (Company: Titel) #2660895
Rate this post
useful
not useful
> but i just want to try read input data 5volt from FPGA.
?????
Lets try this way:
  1.          2.        3.             4.                   5.
sensor   -> 0..5V   -> adc   ->  serial/SPI/parallel   -> fpga

1. http://www.sparkfun.com/products/9403
2. voltage interface
3. unknown
4. unknown
5. S3E

> to try coding simple AD with input 5volt
You don't want to code an adc. I suppose you simply want to code the 
interface to the adc...

>  and i can see the output from FPGA..
Where do ypou want to see the output?
A fpga itself has no display or whatsoever...
Guest #2663758
Rate this post
useful
not useful
Hey vicky,

I got a premontion that you want to build a AD-Converter within an fpga. 
If I'm right, that this is not possible. If you just want to access an 
existing AD-Converter by using your fpga, than you'll have to follow the 
links posted an see, how this is could be archieved.

Have a nice day,

some user.
Moderator (Company: Titel) #2663783
Rate this post
useful
not useful
> i just want to know how to read ADC from FPGA
Which ADC? There are thousands of ADCs and a big bunch of possible 
interfaces. Draw a picture/schematic of your system and/or answer the 
question i asked already.
>> 3. unknown
>> 4. unknown

> and the output is biner or hexa?
binary, octal, hexadecimal or decimal are just different views on the 
same value. Lets say, you have a value of 100dez this is then binary 
001100100 and also 64hex and also 144oct. But its always the very same 
value!

> i just want to know how to read ADC from FPGA
Have you previously done such a thing with e.g. a microcontroller?
Whats your knowledge level? Beginner?

SomeUser wrote:
> I got a premontion that you want to build a AD-Converter within an fpga.
> If I'm right, that this is not possible.
There are FPGAs on the market equipped with an on-chip ad converter. 
Actel/Microsemi has them...
(Company: DEI) #2874702
Rate this post
useful
not useful
you have to configure your ADC chip if u r interfacing ADC to FPGA kit 
by using datasheet of that ADC . You have to write .ucf file for the 
same and for displaying result you have to use LCD or serial 
communication. But again for this u have to write code for LCD and 
serial programming. If you want to use LED for o/p then u have to use 
switches combination and also see manual for writing ucf 
file(switches,LED,ADC,clock).
Guest #3593914
Rate this post
useful
not useful
I want to interface ADC to CPLD, but honestly i didnt understand to 
coding at
cpld use VHDL..

 i want to try coding simple AD7705 with input 5volt and i can see the 
output
from CPLD XC9572.on swiches(LEDS)

can someone help me? or give me good tutorial.. cause i already search
but only get code without good explanation with that code..

thanx so much,
Moderator (Company: Titel) #5400697
Rate this post
useful
not useful
Please start an new thread for a new question!
And add information about your system, your toolchain.
Keep in mind: it's your homework, you should do it yourself. So, show 
what you have tried so far and tell whats the problem with it. Then we 
can look for a sloution.
This topic is locked and can not be replied to.