hi rossfree,

what about if you try to modify connections and DEFINEs as follow
[php]

DEFINE LCD_DREG PORTD 'LCD data pins connected to
DEFINE LCD_DBIT 0 'd.0 - d.3

DEFINE LCD_RSREG PORTD 'LCD RS bit connected to
DEFINE LCD_RSBIT 4 'd.4

DEFINE LCD_EREG PORTD 'LCD E bit connected to
DEFINE LCD_EBIT 5 'd.5

DEFINE LCD_BITS 4 '4-Bit data bus
DEFINE LCD_LINES 4 'Number of LCD Character Display lines
[/php]

let me know

regards