Hello,
As Eckhard has already observed, your 4-bit data connections are for PTG0 through to PTG3. However, the demo board for the GB60 requires that PTG4 through to PTG7 are actually used. This will require the following change -
#define lcdDataPins 4
In addition, I notice that you do not currently define or initialise the RW pin of the display. This is connected to PTG3. At the start of your LCD initialisation code, the following might be added -
PTGDD_PTGDD3 = 1; // Set pin for output
PTGD_PTGD3 = 0; // Set RW = 0 (write only)
Further, the User enable switch #4 must be on to enable data to reach the display.
I also notice that the PORTMASK definition, plus the problem code described by Eckhard, differs from the code for the original Application Note, and has become confused. The original code should be OK.
Regards,
Mac
Message Edited by bigmac on 2007-02-2712:48 AM