CFAG320240CX-FMI-TZ with a 18F452 PIC Help

Hopeful Hawkeye

New member
Hello,

Long time listener first time caller. I just received the LCD screen mentioned above and am having trouble with the initializiation code for a PIC18F452 using the PICC compiler. I discovered that it was shipped in the 8080 mode instead of the 6800. Any help would be greatly appreciated. I am using the attached code I received from the CCS forum. The LCD screen is using the new controller S1D13700F01 rather than the SED1335 that is well documented. Any help would be greatly appreciated.

Thanks


GO Hawks
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.
 

CF Support

Administrator
Right off hand, the only thing I see that needs changed is:

glcd_sendByte(0x2F); // TC/R

to

glcd_sendByte(0x42); // TC/R

That might do it.
 

Hopeful Hawkeye

New member
Still Not working

The LCD is still not displaying anything. I am currently using b7-b0 for the data bits, and my other pin declarations are correct. I think that the problem is with the code. I have attached what I have done, any help would be great.
 

Attachments

CF Support

Administrator
LCD_WR should be set low for the initialization, you're not reading from the display, but writing to it.

I should be able to reply back with more shortly.
 
Top