Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17268 Discussions

Read digital value from adc0804 in vhdl

Altera_Forum
Honored Contributor II
4,138 Views

Hi guys. 

 

I am beginner in vhdl. I want to read the digital value from adc0804 in vhdl. In my project I have used 16 adc0804 and each adc will produce 8 bits. But, I don’t know how to start coding for read the value from sensor. But I know (clock,reset, adc1 – adc16) is for my input. Any ideas regarding my problems? Kindly help me. Thanks for your attention.
0 Kudos
8 Replies
Altera_Forum
Honored Contributor II
2,378 Views

You'll need a text editor to write the code, and some form of simulator to test it. 

What have you done so far?
0 Kudos
Altera_Forum
Honored Contributor II
2,378 Views

Hi Tricky. 

 

Thanks for your reply. Really appreciate it. What do you mean by text editor? Is it Quartus II? I am just getting started with some tutorial for Quartus II and waveform editor. Do you have any suggestion about my problem?
0 Kudos
Altera_Forum
Honored Contributor II
2,378 Views

Text editor - Quartus has one built in. But you can use an external one if you like 

Text editor is required for writing your HDL code. 

Or you can use the graphical editor if you are so inclined.
0 Kudos
Altera_Forum
Honored Contributor II
2,378 Views

I have used notepad++ text editor. Is it ok? how can i start to program? i already define the entity. But i dont know how to write the architecture. Do i need to define the signal in my architecture? Here I attach my entity. Is it ok?

0 Kudos
Altera_Forum
Honored Contributor II
2,378 Views

Hi Tricky. 

 

I have tried my coding. But i dont know either it is correct or wrong. Kindly help me please :(:(
0 Kudos
Altera_Forum
Honored Contributor II
2,378 Views

your current code does nothing. It ands together all the internal INX signals, which are not connected to anything.

0 Kudos
Altera_Forum
Honored Contributor II
2,378 Views

What do you mean by that? I dont understand. :(

0 Kudos
Altera_Forum
Honored Contributor II
2,378 Views

It sounds like you reallly really need to learn about digital logic and get VHDL tutorial. Without understanding of these, you stand no hope of writing code for your FPGA

0 Kudos
Reply