Gast
#1047739
Habe mich versucht an die Spezifikationen zu halten und das KS0108 an
ein Atmega64 angeschlossen ...
Was mich wundert ist, dass fast der gesamte Mikrocontroller nur an das
LCD angeschlossen ist, naja scheinbar ist das KS0108 nicht sooo toll,
aber was mich ja wundert ist, wieso es nicht geht. Ich lasse ein
Sampleprogramm laufen mit der Config
(Die Schaltung ist oben im Anhang, bestimmt hab ich wieder was verbockt)
#ifdef GLCD_PORT_INTERFACE
// make sure these parameters are not already defined elsewhere
#ifndef GLCD_CTRL_PORT
#define GLCD_CTRL_PORT PORTB // PORT for LCD control signals
#define GLCD_CTRL_DDR DDRB // DDR register of LCD_CTRL_PORT
#define GLCD_CTRL_RS PB0 // pin for LCD Register Select
#define GLCD_CTRL_RW PB1 // pin for LCD Read/Write
#define GLCD_CTRL_E PB2 // pin for LCD Enable
#define GLCD_CTRL_CS0 PB3 // pin for LCD Controller 0 Chip
Select
#define GLCD_CTRL_CS1 PB4 // pin for LCD Controller 1 Chip
Select(*)
#define GLCD_CTRL_CS2 PB6 // pin for LCD Controller 2 Chip
Select(*)
#define GLCD_CTRL_CS3 PB7 // pin for LCD Controller 3 Chip
Select(*)
#define GLCD_CTRL_RESET PB5 // pin for LCD Reset
// (*) NOTE: additonal controller chip selects are optional and
// will be automatically used per each step in 64 pixels of display
size
// Example: Display with 128 hozizontal pixels uses 2 controllers
#endif
#ifndef GLCD_DATA_PORT
#define GLCD_DATA_PORT PORTF // PORT for LCD data signals
#define GLCD_DATA_DDR DDRF // DDR register of LCD_DATA_PORT
#define GLCD_DATA_PIN PINF // PIN register of LCD_DATA_PORT
#endif
#endif
Vielleicht seht ihr ja meinen Fehler??


