Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Character lcd custom design

Status
Not open for further replies.

bikashh

Full Member level 5
Joined
Nov 28, 2009
Messages
264
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Location
india
Activity points
3,132
hello everybody....
i am trying to create custom design in my LCD but in vain.if anybody has any idea please share.my code is written below...
const char array_base[8]={0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x00};

main()
{
LCDINIT();
Update_WDT();//watchdog timer
LcdCmd(0x01);//LCD clear command
while(1)
{
Update_WDT();
My_Char(&array_base[0],0x40);
}
}


void My_Char(const char *ptr,int addres)
{
int i;
LcdCmd(addres);//LCD command
for(i=0;i<8;i++)
{
LcdDat(ptr);//LCD data
}
}
 

According to C syntax rules LcdDat(ptr) should be expected to send the address of the character array rather than the CG data. Try LcdDat(*ptr++) instead. I assume, that the LCD interface functions are working correctly apart from this issue and that the compiler can handle constant arrays and constant array pointers.
 

    V

    Points: 2
    Helpful Answer Positive Rating
LCD is showing the character but at different location with other garbage.
 

Character location hasn't to do with user characters. You have to download the user character to the CG ram and then display it at a position of your choice by writing the respective ASCII code (0-7) instead of regular codes.
 

check this **broken link removed** for complete detail.. wonderfully explained with code.

There are 8 symbol locations where a custom character can be stored. These locations will have a particular bitmap layout corresponding to the custom character.
 
Thanks a lot to u all.
Now i am able to display a character on my LCD.
as the custom design is only for 8 characters what if i want to upload more than 8 character..
thanks in advance...
 

i dont think that is possible with this particular LCD due to the limitation of its controller.
 

But there must be some other way.

Thanks
 

But there must be some other way.
There is definitely no other way. Effectively all character LCD displays on the market are following the Hitachi 44780 controller standard. A few have different ROM character sets, you may want to browse the manufacturer datasheets, if you find something accordiing to your needs. Do dsiplay more than 8 arbitrary characters, you have to used a graphics LCD display.
 

    V

    Points: 2
    Helpful Answer Positive Rating
agree with FvM.. go for graphic LCD for ur purpose!!
 

    V

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top