da_miez3
07.04.2013, 22:38
Hey Leute. Bin im Moment nicht in meiner Werkstatt um es zu testen, aber hat jemand schonmal ein HD44780 Text LCD statt im 4 Bit im 8 Bit Modus angesteuert?
Könnte es reichen den Code so zu ändern-->
4 Bit-->
$regfile = "m8def.dat"
$crystal = 4000000
Config Lcd = 16 * 2
Config Lcdpin = Pin , Db4 = Portd.0 , Db5 = Portd.1 , Db6 = Portd.2 , Db7 = Portd.3 , E = Portd.5 , Rs = Portd.4
Cls
Locate 1 , 1
Lcd "Hallo Welt"
8 Bit-->
$regfile = "m8def.dat"
$crystal = 4000000
Config Lcd = 16 * 2
Config Lcdpin = Pin , Db0 = Portb.0 , Db1 = Portb.1 , Db2 = Portb.2 , Db3 = Portb.3 , Db4 = Portb.4 , Db5 = Portb.5 , Db6 = Portb.6 , Db7 = Portb.7, E = Portd.5 , Rs = Portd.4
Cls
Locate 1 , 1
Lcd "Hallo Welt"
Danke schonmal :)
Könnte es reichen den Code so zu ändern-->
4 Bit-->
$regfile = "m8def.dat"
$crystal = 4000000
Config Lcd = 16 * 2
Config Lcdpin = Pin , Db4 = Portd.0 , Db5 = Portd.1 , Db6 = Portd.2 , Db7 = Portd.3 , E = Portd.5 , Rs = Portd.4
Cls
Locate 1 , 1
Lcd "Hallo Welt"
8 Bit-->
$regfile = "m8def.dat"
$crystal = 4000000
Config Lcd = 16 * 2
Config Lcdpin = Pin , Db0 = Portb.0 , Db1 = Portb.1 , Db2 = Portb.2 , Db3 = Portb.3 , Db4 = Portb.4 , Db5 = Portb.5 , Db6 = Portb.6 , Db7 = Portb.7, E = Portd.5 , Rs = Portd.4
Cls
Locate 1 , 1
Lcd "Hallo Welt"
Danke schonmal :)