EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / Displaying Custom Characters on 16*2 LCD

Displaying Custom Characters on 16*2 LCD

|

Miscellaneous › Others › Displaying Custom Characters on 16*2 LCD

  • This topic has 3 replies, 3 voices, and was last updated 13 years, 1 month ago by umar farrok.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 13, 2013 at 5:03 am #2111
    pranathi
    Participant

    Hello All,

     

    I am using EADOGM 16*2 LCD display. I am stuck in displaying Custom characters. For example if I want to display a Battery symbol , i just take the equivalent values and write it to Display CGRAM. But when i try reading it back i get nothing on display.

     

    Has anyone worked on this??

     

     

    Here is my small peice of code for Writing to CGRAM

     

    void BuildChar(uint8_t CGRAMloc, uint8_t *Data)
    {
     uint8_t i;
     if(CGRAMloc<8)
     {
        DisplayWriteCmd(DISPLAY_CG_RAM_ADDRESS+(CGRAMloc*8));
        for(i=0;i<8;i++)
           DisplayWriteData(Data[ i ]);
     }
    }

     

    It would be of great help if anyone could let me know what is the correct way of reading from CGRAM and displaying it on LCD

     

     

    Thanks

    pranathi

    February 13, 2013 at 1:09 pm #9127
    AJISH ALFRED
    Participant

    Hope this link helps you.

    engineersgarage.com/embedded/avr-microcontroller-projects/lcd-interface-atmega16-circuit

    February 14, 2013 at 9:01 am #9134
    pranathi
    Participant

    Thanks for the reply.

     

    I did the follow the same as givne in the link.

    But i couldnt get anything on the disaply.

     

    void BuildCustom(uint8_t ucCGRAMloc, uint8_t *ucpData)
    {
     uint8_t i;
     if(ucCGRAMloc<8)
     {
        WriteCmd((DISPLAY_CG_RAM_ADDRESS+ucCGRAMloc*8));
        for(i=0;i<8;i++)
           WriteData(ucpData[ i ]);
     }
    }

     

     

     

     

    void WriteCustomChar(void)
    { BuildCustomChar(0x01,ucArrow);
     WriteCmd(0x64);
     WriteString(ucBatteryFull); 
     SetPos(0,0);
     WriteData(0);  // Location of LCD where the character is to be displayed 
     Delay(10);

    }

     

     

    here is my code. Please guide me where am i going wrong

    March 6, 2013 at 7:32 am #9264
    umar farrok
    Participant

    better you try this  for eg :  ‘h’  in 16×2 

    cmdwrt(0x64);

    datwrt(16);

    datwrt(16);

    datwrt(16);

    datwrt(16+8+4);

     etc like that

    finally after assigned for h character mention where you want to display this

    cmdwrt(0x80);

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • ANOTHER OLD PROJECT REDO April 16, 2026
  • EasyEda program has a major bug April 16, 2026
  • How to set the OSCAL in a PIC 12F675 April 16, 2026
  • issues with level shifter driving a CGHV1A250F April 15, 2026
  • Drawing software April 15, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise