EmbDev.net

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


Author: vicky d. (vicky_d)
Posted on:

Rate this post
1 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,

Author: Nop (Guest)
Posted on:

Rate this post
0 useful
not useful
Where are the information?

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

Author: vicky d. (vicky_d)
Posted on:

Rate this post
0 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..

Author: Lothar Miller (lkmiller) (Moderator)
Posted on:

Rate this post
0 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...

Author: vicky d. (vicky_d)
Posted on:

Rate this post
0 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.

Author: SomeUser (Guest)
Posted on:

Rate this post
0 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.

Author: Lothar Miller (lkmiller) (Moderator)
Posted on:

Rate this post
0 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...

Author: Lothar Miller (lkmiller) (Moderator)
Posted on:

Rate this post
0 useful
not useful
No double postings please.

Author: Just1Bit (Guest)
Posted on:

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

LED <= SENSOR;

Have fun

Author: varun maheshwari (Company: DEI) (varun_agr)
Posted on:

Rate this post
0 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).

Author: Sangita Gujarkar (Guest)
Posted on:

Rate this post
0 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,

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.