Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
10 years ago

Read digital value from adc0804 in vhdl

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.

8 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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

    What have you done so far?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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