LCD control pins question

General discussion relating to the library modules supplied with the compiler

Moderators: David Barker, Jerry Messina

Post Reply
slowfiddler
Posts: 7
Joined: Mon Sep 10, 2012 10:34 pm

LCD control pins question

Post by slowfiddler » Sat Oct 05, 2013 5:45 pm

Is this port assignment OK when using LCD.bas:

#option LCD_DATA = PORTD.4
#option LCD_RS = PORTD.0
#option LCD_RW = PORTD.1
#option LCD_EN = PORTD.2

ie. using Port D for 4 bit data bus and controil lines together?

I expect it will work, just want to be sure before I commit my gerbers to PCBTrain!

Thanks

Jon Chandler
Registered User
Registered User
Posts: 185
Joined: Mon Mar 10, 2008 8:20 am
Location: Seattle, WA USA
Contact:

Post by Jon Chandler » Sat Oct 05, 2013 9:46 pm

This will work fine. The only limitation is that the 4 data lines must be either bits 0-3 or 4-7 in order. You can't use bits 2 - 5 for example.
Jon

Check out the TAP-28 PIC Application board at http://www.clever4hire.com/throwawaypic/

slowfiddler
Posts: 7
Joined: Mon Sep 10, 2012 10:34 pm

Post by slowfiddler » Sat Oct 05, 2013 10:42 pm

Thanks Jon.

slowfiddler
Posts: 7
Joined: Mon Sep 10, 2012 10:34 pm

Post by slowfiddler » Sat Oct 26, 2013 3:07 pm

It works, if anyone was wondering.

Post Reply