CFAG320240CX-TFHTTS show blank screen

andy78

New member
The display runs in 8080 Mode (0R change from J68 to J80)
The code is from Crystalfontz and I have the same MCU and have change the pins for my layout.

I use no external Contrast.
PIN DISPLOFF NC
PIN WAIT NC
PIN 18 NC
PIN 3 NC

The Display come not up.
MCU have 16MHZ.

View attachment main.txt

The pins are connected to MCU MCU works with 5V.

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

andy78

New member
Hello

I have use´now this LIB http://en.radzio.dxp.pl/sed1335/
All works fine but the Problem is drawing lines and circles and rectangles.


I think the Problem is here
void GLCD_SetPixel(unsigned int x,unsigned int y, int color)
{
unsigned char tmp = 0;
unsigned int address = SED1335_GRAPHICSTART + (40 * y) + (x/8);
GLCD_SetCursorAddress(address);

GLCD_WriteCommand(SED1335_MREAD);
tmp = GLCD_ReadData();

if(color)
tmp |= (1 << (SED1335_FX - (x % 8)));
else
tmp &= ~(1 << (SED1335_FX - (x % 8)));

GLCD_SetCursorAddress(address);
GLCD_WriteCommand(SED1335_MWRITE);
GLCD_WriteData(tmp);
}

unsigned char GLCD_ReadData(void)
{
unsigned char tmp;
SED1335_CONTROL1_PORT &= ~(SED1335_CS);
SED1335_CONTROL_PORT &= ~(SED1335_RD);
asm("nop");
SED1335_DATA_DIR = 0x00;
asm("nop");
tmp = SED1335_DATA_PIN;
SED1335_CONTROL1_PORT |= (SED1335_CS);
SED1335_CONTROL_PORT |= (SED1335_RD);
return tmp;
}

When i will set 3 pixel x=1-3;Y=2 Color=1 then I have spaces between pixel Pixel 1 is set 1,2 pixel2 ist set 3,2 pixel3 is set 8 9 10 ,2 (. . ..)


Has the 13700 other instructions for read???

Best thanks
 
Top