EmbDev.net

Forum: FPGA, VHDL & Verilog HELP VHDL code for ADC at FPGA


von vicky d. (vicky_d)


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,

: Locked by Moderator
von Nop (Guest)


Rate this post
useful
not useful
Where are the information?

What (kind of) FPGA?
What (kind of) Sensor?

von vicky d. (vicky_d)


Rate this post
useful
not useful
my FPGA Spartan 3E.. sensor MQ 7 for Carbon monoksida, but i just want 
to try read input data 5volt from FPGA..

von Lothar M. (Company: Titel) (lkmiller) (Moderator)


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...

von vicky d. (vicky_d)


Rate this post
useful
not useful
ok i just want make clear my question.

i just want to know how to read ADC from FPGA and i just make example 
input is 1-5 volt. and the output is biner or hexa? and i want see the 
output at LED..

so if any1 can help me to explain it im very appreciate it.

von SomeUser (Guest)


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.

von Lothar M. (Company: Titel) (lkmiller) (Moderator)


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...

von Lothar M. (Company: Titel) (lkmiller) (Moderator)


Rate this post
useful
not useful
No double postings please.

von Just1Bit (Guest)


Rate this post
useful
not useful
Simple 1-Bit ADC in VHDL:

LED <= SENSOR;

Have fun

von varun m. (Company: DEI) (varun_agr)


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).

von Sangita Gujarkar (Guest)


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,

von monika (Guest)


Rate this post
useful
not useful
HELP VHDL code for ADC0808 control using  FPGA

von Lothar M. (Company: Titel) (lkmiller) (Moderator)


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.

: Edited by Moderator
This topic is locked and can not be replied to.