# 320x240 LCD having controller RA8835A(controller equivalent to SED1335)

#### Jhankhana

##### Newbie
I am working with 320x240 LCD having controller RA8835A(according to J68 Short: 6800 Family) interfaced with ATmega128A. and used Universal C library for SSD1335.

It's working ok for char and string with the inbuilt font. But I am not able to display sting in a different fonts and also not able to display images.

It would be a great help if I can have guidance for the same.

#### Jhankhana

##### Newbie
I am working with 320x240 LCD having controller RA8835A(according to J68 Short: 6800 Family) interfaced with ATmega128A. and used Universal C library for SSD1335.

It's working ok for char and string with the inbuilt font. But I am not able to display sting in a different fonts and also not able to display images.

It would be a great help if I can have guidance for the same.

I am still not able to solve it.
It would be great if someone can help me with this

#### Attachments

• ECPE315AR0-LCD320240-OnlyLCDTest.rar
1.5 MB · Views: 4

#### doraemon

##### Super Moderator
Staff member
Hello!

The person who's in the best position to solve your problem is... yourself.
First, your program apparently does something, it works with some fonts, not with some
others. Do you imagine the time someone would need to spend in order to first getting it
work on another platform?
You have basically everything working, so please first use the debugger and go ahead.
Beside this, what do you mean by "I'm not able to display other fonts"?
I.e. when you are using another font, what happens? Black screen? Does something, but
you cannot recognize the characters? Something else?

Best regards,

Dora

#### FvM

##### Super Moderator
Staff member
Sounds like you managed to write to the display in character but not in graphics mode. Are you even sure that SED1335 and your display are compatible in graphics mode? I presume it's possible to adapt this or a similar graphics library to the controller but it may be necessary to dive a bit deeper.
--- Updated ---

O.k., both controllers look similar, but there are still many details that need to be configured for the specific display.

Last edited:

#### Jhankhana

##### Newbie
Hello!

The person who's in the best position to solve your problem is... yourself.
First, your program apparently does something, it works with some fonts, not with some
others. Do you imagine the time someone would need to spend in order to first getting it
work on another platform?
You have basically everything working, so please first use the debugger and go ahead.
Beside this, what do you mean by "I'm not able to display other fonts"?
I.e. when you are using another font, what happens? Black screen? Does something, but
you cannot recognize the characters? Something else?

Best regards,

Dora
IT is dot matrix LCD. so, whenever I try to use another font (escape default font of LCD) all dots get filed and it displays a box instead of a character.

I tried with many of the font libraries but yet not able to display any other font.
I doubt whether the mistake is in function or in the font library.

I tried below function for char

Code:
void GLCD_WriteChar(unsigned char charToWrite)
{
int i;
charToWrite -= 32;
for(i = 0; i < 5; i++)
GLCD_WriteData(GLCD_ReadByteFromROMMemory((unsigned char *)((int)  FONT8x8 [97][8] + ((5 * charToWrite) + i))));
GLCD_WriteData(0x00);
}

void GLCD_WriteChar(unsigned char charToWrite)
{
GLCD_WriteCommand(SED1335_MWRITE);
if(charToWrite)
GLCD_WriteData(GLCD_ReadByteFromROMMemory((unsigned char *)(int) FONT8x8 + (charToWrite)));
GLCD_WriteData(0x00);
}
The library has provided a function for text from memory only.

Code:
void GLCD_WriteTextP(unsigned char * tekst)
{
GLCD_WriteCommand(SED1335_MWRITE);
}
and I tried below to display text in other fonts.
Code:
void GLCD_WriteText1(unsigned char * tekst)
{
GLCD_WriteCommand(SED1335_MWRITE);
while(*tekst)
}

Last edited by a moderator:

#### doraemon

##### Super Moderator
Staff member
Hello!

Did you try this document?
It explains everything.

In the rare cases you don't have documentation, you can anyway find
your way with these old LCDs, because the set of commands is very limited.
For instance, if you send a sequence of 0 bytes, what does it produce?
Then if you send a sequence of FF? Then if you alternate 0 and FF?
Etc...

Dora.