
Originally Posted by
Josuetas
Hi.
I have a very small project on 16f628 that uses a classic LCD,
Now, due to PCB and PINOUT restrains i need to use the PINs (A6,A7,A0,A1) as data bus for this LCD, that is impossible with the LCDOUT defines, any help on how i cand do this?
Hopefully
PortA.6->D7
PortA.7->D6
PortA.0->D5
PortA.1->D4
Thanks on any help
DJC
Hi Josuetas,
If I get what you are asking, No !
The 4 data lines of the LCD must use either the 4 lower or the 4 upper lines of the given port, example:
Code:
Define LCD_DREG PORTB ' Uses port B on Ports B 4,5,6,7
Define LCD_DBIT 4
OR:
Define LCD_DREG PORTB ' uses Port B on Ports B 0,1,2,3
Define LCD_DBIT 0
OR:
Define LCD_DREG PORTA ' same comments as above except Port A
Define LCD_DBIT 4
OR:
Define LCD_DREG PORTA
Define LCD_DBIT 0
The E bit and the RS bit can go pretty much wherever you want
Last edited by Archangel; - 27th August 2007 at 01:33.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks