Grafik-Display zeigt nichts an

OP #4492093
Lesenswert?

Hey Leute,
Ich habe mir ein Grafik-Display (KS108)gekauft und wollte mit einem 
ATmega8 ansteuern. Leider macht es nicht was es soll.

Grafik-Display.bas

$regfile = "m8def.dat"
$crystal = 8000000
$lib "glcdKS108.lib"

Config Graphlcd = 128 * 64sed , Dataport = Portd , Controlport = Portb , 
Ce = 2 , Ce2 = 3 , Cd = 0 , Rd = 1 , Reset = 5 , Enable = 4
'==============================================================
'Grafikdisplay KS108 |  Atmega8
'     01|          VSS         GND
'     02|          VDD         +5V
'     03| Vo Kontrast        10K-Poti +10K gegen Masse
'     04|          RS           PortB.0
'     05|          R/W         PortB.1
'     06|          E             PortB.4
' 07-14|   DB0-DB7          PortD.0-PortD.7
'     15|          CS1         PortB.2
'     16|          CS2         PortB.3
'     17|          Reset       PortB.5
'     18|          Vout        10K-Poti Abgreifpunkt
'     19|          BLA          Nicht Belegt
'     20|          BLK          Nicht Belegt
'==============================================================
Cls
Setfont Font8x8
do
  Lcdat 1 , 1 , "Hallo"
loop
End

$include "font8x8.font"

Habt ihr einen Rat für mich?
Angehängte Dateien:
OP #4492376
Lesenswert?

Ich habe mein Programm geändert aber es zeigt immer noch kein Erfolg:

$regfile = "m8def.dat"
$crystal = 8000000
$lib "glcdKS108.lib"

'==============================================================
'Grafikdisplay KS108 |  Atmega8
'     01|          VSS         GND
'     02|          VDD         +5V
'     03| Vo Kontrast        10K-Poti +10K gegen Masse
'     04|          RS           PortB.0
'     05|          R/W         PortB.1
'     06|          E             PortB.4
' 07-14|   DB0-DB7          PortD.0-PortD.7
'     15|          CS1         PortB.2
'     16|          CS2         PortB.3
'     17|          Reset       PortB.5
'     18|          Vout        10K-Poti Abgreifpunkt
'     19|          BLA          Nicht Belegt
'     20|          BLK          Nicht Belegt
'==============================================================
Cls

Do
   Locate 1 , 1
   Lcd "Hallo"
Loop
End
OP #4493180
Lesenswert?

Ich habe $hwstack, $swstack und $framesize reingearbeitet, aber keine 
Wirkung :(
Auch wenn ich FuseByte benutze, keine Wirkung

$prog &HFF , &H44 , &HD9 , &H00         ' generated. Take care that the 
chip supports all fuse bytes.
$regfile = "m8def.dat"
$crystal = 8000000
$lib "glcdKS108.lib"
$hwstack = 64
$swstack = 64
$framesize = 64
'==============================================================
'Grafikdisplay KS108 |  Atmega8
'     01|          VSS         GND
'     02|          VDD         +5V
'     03| Vo Kontrast        10K-Poti +10K gegen Masse
'     04|          RS           PortB.0
'     05|          R/W         PortB.1
'     06|          E             PortB.4
' 07-14|   DB0-DB7          PortD.0-PortD.7
'     15|          CS1         PortB.2
'     16|          CS2         PortB.3
'     17|          Reset       PortB.5
'     18|          Vout        10K-Poti Abgreifpunkt
'     19|          BLA          Nicht Belegt
'     20|          BLK          Nicht Belegt
'==============================================================
Cls

Do
   Locate 1 , 1
   Lcd "Hallo"
Loop
End
OP #4493343
Lesenswert?

So, ich habe jetzt stat ATmega 8 gegen ATmega32 ausgetauscht und neu 
verdrahtet.

Und immernoch kein Text :(


$PROG &HFF,&H04,&H47,&H00' generated. Take care that the chip supports 
all fuse bytes.
$regfile = "m32def.dat"
$crystal = 8000000
$lib "glcdKS108.lib"
$hwstack = 64
$swstack = 64
$framesize = 40
initlcd
'==============================================================
'Grafikdisplay KS108 |  Atmega32
'     01|          VSS         GND
'     02|          VDD         +5V
'     03| Vo Kontrast        10K-Poti gegen +5V
'     04|          RS           PortC.1
'     05|          R/W         PortC.0
'     06|          E             PortC.2
' 07-14|   DB0-DB7          PortA.0-PortA.7
'     15|          CS1         PortC.7
'     16|          CS2         PortC.6
'     17|          Reset       PortC.5
'     18|          Vout        10K-Poti Seite
'     19|          BLA          Nicht Belegt
'     20|          BLK          Nicht Belegt
'==============================================================
Cls

Do
   Locate 1 , 1
   Lcd "Hallo"
Loop
End
#4493531
Lesenswert?

Patrick D. schrieb:
> So, ich habe jetzt stat ATmega 8 gegen ATmega32 ausgetauscht und neu
> verdrahtet.

Naja, Austausch des Controllers behebt ja auch keine Software- und/oder 
Hardwarefehler der Peripherie.

Prüfe zunächst doch mal ob alle Verbindungen zwischen Display und 
Controller stimmen. Nutze dazu das Datenblatt zu deinem Display und 
nicht eine Anschlussbelegung, die du in einem Buch/Webseite/Paper 
gefunden hast. Wenn das erstmal stimmt kannst du dich der Software 
widmen.

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren