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 / LCD cursor possition

LCD cursor possition

|

Microcontroller › 8051 › LCD cursor possition

  • This topic has 2 replies, 3 voices, and was last updated 7 years, 9 months ago by Faroogh.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 6, 2017 at 11:37 am #4674
    usama
    Participant

    hellow all

    I using 8051 and lcd 16×2. I need curcor possition write under the int or data on lcd like "A " not like this " A _ ".

    Please suggest me by example program or any way. 

    July 16, 2017 at 12:04 pm #14630
    Ashutosh Bhatt
    Participant

    cursor position will be by default always where next character to be displayed

    if you want A then its goint to overwrite the letter everytime

    July 28, 2017 at 6:49 pm #14640
    Faroogh
    Participant

    I do not Know Much 8051 But i tell you how i did id in avr

     

    Suppose  this is 16 x 2 Lcd

     

            Address of First box  on first Line is 0x80              # # # # # # # # # # # # # # # #

             Address of First box  on first Line is 0xC0            # # # # # # # # # # # # # # # #

    Before Main Function

     

    char colmn[2]={0x80,0xC0};

    void SetCursor(uint8_t x,uint8_t y);      \ X=Row     Y= Colmn

    int main()

    {


    to go Specific Location 

    SetCursor(4,0);  \4th box in first line

     SetCursor(4,1);  \4th box in second line


    }

    void SetCursor(uint8_t x,uint8_t y)
    {
    SendCmd(colmn[y]+x);
    }
  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Electronic board faulty?!? May 13, 2025
  • Can I use this charger in every country? May 13, 2025
  • using a RTC in SF basic May 13, 2025
  • An Update On Tarrifs May 13, 2025
  • Wish to buy Battery, Charger and Buck converter for 12V , 2A router May 13, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 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