Hallo,
bei mir funktioniert es so:
Code:
'*****************************************************************************************************************
' Bascom AVR Compiler 1.11.8.1
' ATMega8 Applikation
'
' Manfred Look
'
' http://www.malo-web.de
'
' - LCD EADIP204 Ansteuerung 4x20 Zeichen
'
'*****************************************************************************************************************
'--compiler directives--------------------------------------------------------------------------------------------
'
$regfile = "m8def.dat" 'Chip auswaehlen: ATMega8
$crystal = 1000000 'Taktfrequenz (Hz) festlegen
$hwstack = 32 'Hardware Stack
$swstack = 8 'Software Stack
$framesize = 16 'Framsize
'
'Initialisierung LCD EADIP204 - 4Bit Mode - Ports entsprechend Schaltung anpassen
Config Lcdpin = Pin , Db4 = Portc.0 , Db5 = Portc.1 , Db6 = Portc.2 , Db7 = Portc.3 , E = Portb.0 , Rs = Portb.1
Config Lcd = 20 * 4a , Chipset = Ks077
Cls
'
Locate 1 , 1 'LCD Cursor setzen
Lcd "Das" 'LCD Anzeige
Locate 2 , 1
Lcd "ist"
Locate 3 , 1
Lcd "ein"
Locate 4 , 1
Lcd "Test"
'
Do 'Endloss Schleife
Loop
Gruß Manfred
Lesezeichen