PDA

View Full Version : simple LCD DEFINES question



earltyso
- 6th February 2008, 00:52
Just second guessing myself, so I before I modify my PCB....
If I want to use all default LCDOUT defines EXCEPT the standard PORTA data port....(I want to switch my 4 data lines from PORTA.0, A.1, A.2, A.3 over to PORTB.7,.6,.5,.4....?
Can i get away with this with the following code?

DEFINE LCD_BITS 4 'self explanitory
DEFINT LCD_DREG PORTB 'self explanitory
DEFINE LCD_DBIT 7 'working my way down B.7, B.6, B.5, B.4

'or will this hardware arrangment just not work as I am starting with bit 7 on portb with only 4 bit of data?

'should I be going the other direction....starting with bit 4 and going up to bit 7?

'second guessing stinks....

thanks for any help

Archangel
- 6th February 2008, 01:06
http://www.picbasic.co.uk/forum/showthread.php?t=7038&highlight=LCD%2A

earltyso
- 6th February 2008, 03:23
sweet!!!!!!!!!
thanks