Gast
#726591
Ich habe ein Problem mit der Zeichen Darstellung am KS0073 über einen PCF8574AP Angeschlossen ist das Diplay wie Folgt PCF | DISPL. ______ P0 | DB4 P1 | DB5 P2 | DB6 P3 | DB7 P4 | RS P5 | P6 | P7 | E Quelcode $regfile = "m8def.dat" ' Atmega8,88,168,32 $crystal = 16000000 ' Externer Quarz $baud = 9600 $hwstack = 64 $swstack = 8 $framesize = 32 $lib "Lcd_i2c.lib" $lib "Key_i2c.lib" ' ########################### ' ### I2C Konfiguration ### ' ########################### Config Pinc.2 = Output 'I²C2 Config Pinc.3 = Output 'I²C2 Config Scl = Portc.3 'I²C2 SCL Config Sda = Portc.2 'I²C2 SDA ' ########################### ' ### LCD Konfiguration ### ' ########################### Const Pcf8574_lcd = &H70 'delay = 2 bei max. 2,5m Kabel, bei 4m Kabel delay = 3 oder höher !! Config I2cdelay = 3 'PCF Adresse für LCD war 5 Config Lcd = 20 * 4a , Chipset = Ks0073 'configure lcd screen 'Config Lcdbus = 4 Const Lcdrows = 4 Const Lcdcols = 20 Dim _lcd_e As Byte 'Needed to control 4 line LCD _lcd_e = 128 'Cursor Off Noblink Const Menumaxlines = 10 Lcd "Zeile1==========1===" Locate 2 , 1 Lcd "Zeile2==========2===" Locate 3 , 1 Lcd "Zeile3==========3===" Locate 4 , 1 Lcd "Zeile4==========4===" Die Zeilen werden schon Korekt erkannt aber der erste Pixel ist um eins versetz so das gerade mal die letzten Zahlen noch auf dem Dips sind.