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 / Replies / I do not Know Much 8051 But i

I do not Know Much 8051 But i

|

Microcontroller › 8051 › LCD cursor possition › I do not Know Much 8051 But i

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);
}

RSS Recent Posts

  • Variable audio oscillator February 8, 2026
  • Do i need a buffer? February 8, 2026
  • ANOTHER OLD PROJECT REDO February 7, 2026
  • wall transformer polarity February 7, 2026
  • Supply vs performance query February 7, 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