PDA

View Full Version : 4x40 LCD Display Enable Pin



rsocor01
- 8th August 2011, 21:13
Hi,

I just got this 4x40 character NewHaven LCD display.

http://www.newhavendisplay.com/specs/NHD-0440WH-ATMI-JT.pdf

From the datasheet you can see that it has two enable pins, E1 and E2. E1 for the top two lines and E2 for the bottom two lines.

5852

Now, from the well known PBP procedure that we all use to drive these character LCD displays we only have access to one enable pin.




DEFINE LCD_DREG PORTA 全et LCD Data port
DEFINE LCD_DBIT 0 全et starting Data bit (0 or 4) if 4-bit bus
DEFINE LCD_RSREG PORTA 全et LCD Register Select port
DEFINE LCD_RSBIT 4 全et LCD Register Select bit
DEFINE LCD_EREG PORTB 全et LCD Enable port
DEFINE LCD_EBIT 3 全et LCD Enable bit
DEFINE LCD_BITS 4 全et LCD bus size (4 or 8 bits)
DEFINE LCD_LINES 2 全et number of lines on LCD


Is there any workaround for this problem? How can I make this 4x40 display work?

Thank you,

Robert

mister_e
- 8th August 2011, 22:53
easy
http://www.picbasic.co.uk/forum/showthread.php?t=626

rsocor01
- 10th August 2011, 02:50
easy
http://www.picbasic.co.uk/forum/showthread.php?t=626

Thanks Steve. That will do it.

Robert