i can purchase 8 16x2 LCD displays for the cost of a 20x4 so that makes me think why can't i drive multiple displays from one chip...
so the idea is that all the data lines, RS and RW lines are all connected together for all displays. it's only the enable lines that have seperate IO lines...
I tried to compile a uber simple test program as follows;
It doesn't allow me to re-define a define... is their another method i could use to get LCDOUT to use a different enable line?Code:DEFINE LCD_DREG PORTD ' LCD data port DEFINE LCD_DBIT 0 ' LCD data starting bit 0 or 4 DEFINE LCD_RSREG PORTE ' LCD register select port DEFINE LCD_RSBIT 0 ' LCD register select bit DEFINE LCD_EREG PORTE ' LCD enable port DEFINE LCD_EBIT 2 ' LCD enable bit DEFINE LCD_RWREG PORTE ' LCD read/write port DEFINE LCD_RWBIT 1 ' LCD read/write bit DEFINE LCD_BITS 8 ' LCD bus size 4 or 8 data bits DEFINE LCD_LINES 2 ' Number lines on LCD DEFINE LCD_COMMANDUS 2000 ' LCD Command delay time in us DEFINE LCD_DATAUS 50 ' LCD Data delay time in us Main: Pause 1000 DEFINE LCD_EREG PORTE ' LCD enable port DEFINE LCD_EBIT 2 ' LCD enable bit LCDOUT $FE, 1, 2, "LCD 1 line 1" LCDOUT $FE, $C0, "LCD 1 line 2" DEFINE LCD_EREG PORTE ' LCD enable port DEFINE LCD_EBIT 3 ' LCD enable bit LCDOUT $FE, 1, 2, "LCD 2 line 1" LCDOUT $FE, $C0, "LCD 2 line 2" goto main
Thanks




Bookmarks