Hi,
I’m inexperienced and trying to control 4D uLCD-32PT display using Rabbit BL4S110 SBC for use on commercial food ovens. The display is working OK using the FAT software. With the SBC I can prevent the splash screen (but only with an extra 0x00 sent) but no other response. No luck after much effort. Any help is much appreciated. DynamicC code here (I’m single stepping the needed delays):
// Program to control uLCD-32PT using Rabbit BL4S110 SBC.
// mark ellis, Cookshack, Inc.
// 509 493 2442, mark@echoglen.net
#class auto
// Change local var storage default to “auto”
// include BL4S1xx series library
#use “BL4S1xx.lib”
#define FINBUFSIZE 255
#define FOUTBUFSIZE 255
#define DINBUFSIZE 255
#define DOUTBUFSIZE 255
void main()
{
// first cmd to display
int Start[] = {0x55, 0x00};
int Version[] = {0x56};
int DisplayOn[] = {0x59, 0x01, 0x01};
int BacklightOn[] = {0x59, 0x00, 0x01};
int ClearScreen[] = {0x45};
int Rectangle[] = {0x72, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3C, 0x00, 0x3C, 0x07, 0xE0};
// can’t send 0x00 in string, null, ends string ??!!
brdInit();
serFopen(9600L);
serDopen(9600L);
serMode(0);
serFwrFlush();
serFrdFlush();
serDwrFlush();
serDrdFlush();
// config and open serial port
while(1)
{
// costate
{
digOut(7,0);
// waitfor > 50 msec
digOut(7,1);
// wait > 500 msec & < 5 sec.
serFwrite(Start, 2);
//could prevent splash screen only with 0x00 sent after
serFwrite(DisplayOn, 3);
serFwrite(BacklightOn, 3);
serFwrite(ClearScreen, 1);
serFwrite(Version, 1);
serFwrite(Rectangle, 11);
}
}
}