Hallo,

ich habe ein ähnliches Problem mit dem DIP LCD. Ich habe es an den PortC vom RN-Mega2560 angeschlossen. Leider sind beim RN-Mega2560 alle Pins paarweise vertauscht, also nicht 01234567 sondern 10325476.
Deshalb auch die komischen einstellungen:
#define LCD_PORT PORTC /**< port for the LCD lines */
#define LCD_DATA0_PORT LCD_PORT /**< port for 4bit data bit 0 */
#define LCD_DATA1_PORT LCD_PORT /**< port for 4bit data bit 1 */
#define LCD_DATA2_PORT LCD_PORT /**< port for 4bit data bit 2 */
#define LCD_DATA3_PORT LCD_PORT /**< port for 4bit data bit 3 */
#define LCD_DATA0_PIN 2 /**< pin for 4bit data bit 0 */
#define LCD_DATA1_PIN 3 /**< pin for 4bit data bit 1 */
#define LCD_DATA2_PIN 0 /**< pin for 4bit data bit 2 */
#define LCD_DATA3_PIN 1 /**< pin for 4bit data bit 3 */
#define LCD_RS_PORT LCD_PORT /**< port for RS line */
#define LCD_RS_PIN 6 /**< pin for RS line */
#define LCD_RW_PORT LCD_PORT /**< port for RW line */
#define LCD_RW_PIN 7 /**< pin for RW line */
#define LCD_E_PORT LCD_PORT /**< port for Enable line */
#define LCD_E_PIN 4 /**< pin for Enable line */

#define XTAL 16000000 /**< clock frequency in Hz, used to calculate delay timer */

#define LCD_CONTROLLER_KS0073 1 /**< Use 0 for HD44780 controller, 1 for KS0073 controller */

#define LCD_LINES 4 /**< number of visible lines of the display */
#define LCD_DISP_LENGTH 20 /**< visibles characters per line of the display */
#define LCD_LINE_LENGTH 0x40 /**< internal line length of the display */
#define LCD_START_LINE1 0x00 /**< DDRAM address of first char of line 1 */
#define LCD_START_LINE2 0x15 /**< DDRAM address of first char of line 2 */
#define LCD_START_LINE3 0x40 /**< DDRAM address of first char of line 3 */
#define LCD_START_LINE4 0x55 /**< DDRAM address of first char of line 4 */
#define LCD_WRAP_LINES 0 /**< 0: no wrap, 1: wrap at end of visibile line */

#define LCD_IO_MODE 1 /**< 0: memory mapped mode, 1: IO port mode */

Ich habe alles so eingestellt wie ich es bei verschiedenen Beiträgen im Forum gefunden habe, aber das Display zeigt nur die Schwarzen Kästen an, keinen Text.

Im Programm hab ich nur:

#include <stdlib.h>
#include <avr/io.h>
#include "lcd.h"

int main(void)
{
lcd_init(LCD_DISP_ON_CURSOR_BLINK);
lcd_clrscr();
lcd_puts("Hello World.");

Was kann ich noch ändern?

Viele Grüße und Danke.

robert