serielle ohne Funktion wenn Graphlcd eingeschaltet
hi,
wenn ich die LIB glcdks108.lbx einbinde und dann folendes schreibe:
Config Graphlcd = 128 * 64sed , Dataport = Portb , Controlport = Porta , Ce = 3 , Ce2 = 4 , Cd = 0 , Rd = 1 , Reset = 5 , Enable = 2
kommt nix mehr aus der seriellen Schnittstelle raus!
warum??
mein Testcode für ein Mega16:
Code:
$regfile = "m16def.dat" 'Mikroprozessor
$crystal = 8000000 'Taktfrequenz
$baud = 38400
$lib "glcdks108.lib" 'Grafikdisplay einbinden
$hwstack = 64 'default use 32 for the hardware stack
$swstack = 30 'default use 10 for the SW stack
$framesize = 80 'default use 40 for the frame space
'///////////////////Display Konfiguration/////////////
Config Graphlcd = 128 * 64sed , Dataport = Portb , Controlport = Porta , Ce = 3 , Ce2 = 4 , Cd = 0 , Rd = 1 , Reset = 5 , Enable = 2
Ddrd = 11111111
Portd = &B11111111
Dim X As Integer
Config Com1 = Dummy , Synchrone = 0 , Parity = Even , Stopbits = 1 , Databits = 8 , Clockpol = 1
X = 0
Do
Print "Hallo"
Wait 1
Print X
Incr X
Loop
End
wie gesagt, wenn ich die Zeile config graphlcd rausnehme kommt "Hallo" am Terminal fortlaufend an...
kann mir das jemand erklären?
Zapo.