Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Contributor
venkat_vs2k2
Posts: 49
Registered: ‎11-19-2010
0

ML605 Board LCD Display

Hi , 

 

I am trying to use the LCD display of ML605 board by using my VHDL code to initialize and control it . I have seen other forums and posts. I have also referred to the Spartarn 3 Guide timing for the board.  I used few references and made up my controller for the LCD.

 

But i see that whenever i send 8 bits of data to write to the LCD ,, the upper 4 bits are being sent properly, but the lower 4 bits are always stuck at "1111" , Hence i always get the display characters corresponding to the last ROW in the CG ROM corresponding to the upper 4 bits that i send..

 

I m not sure if i am missing out something.or if i m not initializing the LCD properly.

Could someone point me to the mistake i m making ?

 

Thanks, 

Venkat.

Xilinx Employee
bwiec
Posts: 1,005
Registered: ‎08-02-2011
0

Re: ML605 Board LCD Display

[ Edited ]

 i see that whenever i send 8 bits of data to write to the LCD ,, the upper 4 bits are being sent properly, but the lower 4 bits are always stuck at "1111"


How are you seeing this? Sim or Hardware?

 

Side note: I see a lot of if, elsif statements without an else. This is typically not recommended and will usually result in latches. Also, you have a lot of signals assigned in one condition of if-elsif and not in other conditions. Again, not recommended and results in inferred latches. Consider using default assignments (or assign every signal in all states).

www.xilinx.com
Contributor
venkat_vs2k2
Posts: 49
Registered: ‎11-19-2010
0

Re: ML605 Board LCD Display

Hi ,

 

Thanks for the reply . I have removed all the latches in the design. I have warning free synthesis. I see this in the hardware, in the LCD disply of the ML605 board.

I have a charcter mapping code to display 0-9 and A-F. I see that to what ever value i change the bits of SFD. my OP is always either "O" or "?" characters..  These correspond to the CGROM character values "00111111" and "01001111" .. 

I am not sure where i m going wrong .  Is there something else i m missing?

 

Thanks,

Venkat.

Xilinx Employee
bwiec
Posts: 1,005
Registered: ‎08-02-2011
0

Re: ML605 Board LCD Display

I would recommend that you do some simulations. If not, you at least need to get chipscope in there. It's hard to debug without being able to see what is going on.

www.xilinx.com
Expert Contributor
eteam00
Posts: 7,505
Registered: ‎07-21-2009
0

Re: ML605 Board LCD Display

This might be a good time to run ISIM.  Logic simulation should sort out what your code is generating vs. what you expect to generate.

 

I assume you have a copy of the LCD controller datasheet, for clear direction on interface protocol and timing.  If not, see this post.

 

-- Bob Elkind

SIGNATURE:
README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369

Summary:
1. Read the manual or user guide. Have you read the manual? Can you find the manual?
2. Search the forums (and search the web) for similar topics.
3. Do not post the same question on multiple forums.
4. Do not post a new topic or question on someone else's thread, start a new thread!
5. Students: Copying code is not the same as learning to design.
6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please).
7. You are not charged extra fees for comments in your code.
8. I am not paid for forum posts. If I write a good post, then I have been good for nothing.
Contributor
venkat_vs2k2
Posts: 49
Registered: ‎11-19-2010
0

Re: ML605 Board LCD Display

[ Edited ]

Hi,,

 

Thanks for the replies. I have done simulations in ISIM and the behaviroural simulations seems to be fine. I get what i need. May be its time to do some Post-route simulations or use Chipscope to see whats going on in there. I ll post back the status.

 

Thanks,

Venkat.

Expert Contributor
eteam00
Posts: 7,505
Registered: ‎07-21-2009
0

Re: ML605 Board LCD Display

[ Edited ]

From the ML605 User Guide: "The data interface to the LCD is connected to the FPGA to support 4-bit mode only."

 

Are you sure that you are setting the LCD controller to 4-bit mode?  The power-on default is 8-bit mode.  This is covered in the LCD controller datasheet.

 

-- Bob Elkind

SIGNATURE:
README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369

Summary:
1. Read the manual or user guide. Have you read the manual? Can you find the manual?
2. Search the forums (and search the web) for similar topics.
3. Do not post the same question on multiple forums.
4. Do not post a new topic or question on someone else's thread, start a new thread!
5. Students: Copying code is not the same as learning to design.
6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please).
7. You are not charged extra fees for comments in your code.
8. I am not paid for forum posts. If I write a good post, then I have been good for nothing.