Hi,
Attached project is for Dp256 and older version CodeWarrior but I think easy portable.
i did it a looooooooong time ago.
You will need to adjust:
static void LcdDelay10ms (void);
static void LcdDelay1us (void);
in the LCD_HD44780.c file
The best way is to use simulator to adjust timing to given BUSCLK or you can use another approach to generate these delays in the LCD_HD44780.c file (for example PIT).
...and if you use following functions in the main.c then you should also adjust them on the basis of the BUSCLK you use.
void delay10ms (void);
void delay1_4s (void);
void delay2s (void);
Entire system setup is done in the LCD_HD44780.h
If you do not understand anything do not hesitate to ask.
If I have a little bit more time this week I can adjust the SW for your reqs but I need to know:
BUSCLK, 8 or 4 bit data bus and which port pins, you want only to write or also read from display, define control at MCU pins for E, RW and RS of the display.
Usage of roll up/down/left/right requires also enabling roll functions if you do not it perform it in your mirror window in the MCU's memory and you just refreshes display in .
If this answer solves your issue please label it as answered to provide easier search to other users.
Best regards,
Ladislav