Need Help, Need Help LCD in Spartan 3AN using VHDL

Guest #2205486
I need help regarding using LCD on Spartan 3AN. I made a LCD Driver 
following the manual, but it still didn't work. I would feel grateful if 
somebody can point out the wrong in my code.

Here's the code for the entity

http://pastebin.com/dtM9P5k1

Here's the LCD Driver

http://pastebin.com/YhHtYyBe

Here's the UCF File

http://pastebin.com/Gr2Vq9wh

Thanks beforehand.
Guest #2205749
Thank you all for your responses. I have updated my LCD Driver Code, now 
it can initialized (there's a blinking cursor on the display). But I 
can't seem to write any data into it.
1
process(Clock) begin
2
    if rising_edge(Clock) then
3
      case State is
4
        when Init =>
5
          State <= Print;
6
        when Print =>
7
          if Busy /= '1' then
8
            State <= Printb;
9
            Data <= "00110000";
10
            Write_Now <= '1';
11
          end if;
12
        when Printb =>
13
          Write_Now <= '0';
14
          State <= Idle;
15
        when Idle =>
16
          State <= Finish;
17
        when Finish =>
18
      end case;
19
    end if;
20
  end process;

I just want to write a simple '0', but the display didn't change. Thanks 
again.
Attached files:
Moderator (Company: Titel) #2205944
To keep things short:
You MUST verify your code with a testbench. And at least have a close 
look at the waveforms on the simulator, and check out wether the timing 
fits the LCD or not...

And in your case this is the most easy thing to do:
just generate a clock and apply it to the LCD module.

Reply

A question of your own? This thread is over 15 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.