Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - Adc

 
Thread Tools Search this Thread
Old 11-05-2008, 04:47 PM   #1
Default Adc


Can somebody help me with the code for an ADC? I just need an example...
Thanks.


lucianofalbo
lucianofalbo is offline   Reply With Quote
Old 11-05-2008, 06:20 PM   #2
jeppe
Senior Member
 
Join Date: Mar 2008
Location: Denmark
Posts: 245
Default
First must you accept - its not possible to connect an analog signal direct to a digital system like a FPGA.
But you could generate a known analog value with a DAC component and use this together with an analog comperator.

Visit this page in order to learn more about PWM and PPM.
http://www.jjmk.dk/MMMI/Exercises/05...elta/index.htm

Jeppe


jeppe
jeppe is offline   Reply With Quote
Old 11-06-2008, 11:11 AM   #3
lucianofalbo
Junior Member
 
Join Date: Jul 2008
Location: pavia
Posts: 22
Default
Thanks very much! I will look at the link and try to understand what to do!
Bye
Luciano


lucianofalbo
lucianofalbo is offline   Reply With Quote
Old 11-09-2008, 07:19 PM   #4
lucianofalbo
Junior Member
 
Join Date: Jul 2008
Location: pavia
Posts: 22
Default
last week i had not enough time to read accurately your documentation. I will do it in this week. Anyway please answer to this question:
Is it possible using only an FPGA (I have a spartan3) to realize a DAC?And a ADC?
Thanks


lucianofalbo
lucianofalbo is offline   Reply With Quote
Old 11-10-2008, 08:49 AM   #5
jeppe
Senior Member
 
Join Date: Mar 2008
Location: Denmark
Posts: 245
Default
Yes - Its possible to create a DAC with a FPGA, the digital output which modulated with PWM or PPM must however drive a buffer (OpAmp etc) and the perhaps will a simple analog filter be useful as well.

With help from this DAC output (which you control) can you build an ADC by adding an analog comperator to the design. The output from the comperator must be feed back to the FPGA.
The most efficent way to make a conversion will be the Succesiv Approximation algoritm.
Hope this was useful
Jeppe


jeppe
jeppe is offline   Reply With Quote
Old 11-10-2008, 02:19 PM   #6
lucianofalbo
Junior Member
 
Join Date: Jul 2008
Location: pavia
Posts: 22
Default
I have read the block diagram for the PPM DAC in your link but there is something basic I don't understand. What is the digital value to be converted?Is it PCM? How can I obtain an analogic value using PPM that is a std_logic(in other words can you be more detailed talking about a "buffer")?
I know it's fault of my digital/analog ignorance but I ask you if you can explain the DAC architecture using that block diagram, from the digital input to the analog output.
Bye


lucianofalbo
lucianofalbo is offline   Reply With Quote
Old 11-10-2008, 08:42 PM   #7
jeppe
Senior Member
 
Join Date: Mar 2008
Location: Denmark
Posts: 245
Default
Well - seems Im not that busy right now
Take a look at this page and let me know if its useful.

http://www.jjmk.dk/MMMI/Exercises/05..._with_fpga.htm

Jeppe



jeppe

Last edited by jeppe : 11-10-2008 at 08:46 PM.
jeppe is offline   Reply With Quote
Old 11-11-2008, 04:36 PM   #8
lucianofalbo
Junior Member
 
Join Date: Jul 2008
Location: pavia
Posts: 22
Default
Maybe I begin understanding something...then to make only a simple DAC I have to send the digital word that i want to convert to a PPM generator and send the PPM pulse to an analog low pass filter. Isn'it?
Thanks


lucianofalbo
lucianofalbo is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46