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 / using backspace in atmega16L using keypad and LCD

using backspace in atmega16L using keypad and LCD

|

Microcontroller › AVR › using backspace in atmega16L using keypad and LCD

  • This topic has 5 replies, 3 voices, and was last updated 14 years, 1 month ago by dagakshay.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • May 30, 2011 at 8:03 pm #962
    bilal
    Participant

    hi,
    i am interfacing LCD and a 4×4 keypad with atmega16L. i wrote the code in C. when ever user press a key, it is displayed on LCD. i made the checks for keypad like this (for printing 1)

    if(bit_is_clear(PIND,c1))
    LCD_write(‘1’);

    can some one please help me how i can use backspace function in this case for removing characters on LCD one by one, and also guide me about any library if required for that method.
    thanx

    May 31, 2011 at 1:16 pm #6312
    dagakshay
    Participant

    hello bilal,

    backspace means?

    lets suppose if you print 1 on fisrt line first position and again when you press the second key that must again get print on The same position on 1… it that the same thing you askin for???

    May 31, 2011 at 2:43 pm #6313
    Bilal Zafar
    Participant

    no sir.

    its just like pressing backspace in computer’s keyboard. i mean like i typed “12345” on LCD by keypad. and i am using ‘*’ key as backspace button. so whenever i press *, its should remove the most resent charachter i.e. 5 and the cursor comes back to that position i.e. shift left.

    June 1, 2011 at 5:15 am #6315
    dagakshay
    Participant

     

    see this link see the description part of it

    http://www.engineersgarage.com/microcontroller/8051projects/interface-lcd-at89c51-circuit

    there will be a table for direct command or LCD

    like LCD_cmd(0x04); will be use to decrement the curser 

    June 1, 2011 at 1:47 pm #6317
    bilal
    Participant

    i know this command. but the issue is that, this command only moves the curser to left, what about erasing the character???

    June 3, 2011 at 6:06 am #6320
    dagakshay
    Participant

    till now i didn’t came across such type of command which do both the function i mean move as well as erase.. i will let you if i come across this… for temporary what you can do is as you move back send a hex code ofr space and again move back…

     

    LCD_cmd(0x04);

    LCD_write(0x20);

    LCD_cmd(0x04);

     

    do let us me know if you get any command for that….

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

RSS Recent Posts

  • Wierd makita battery July 13, 2025
  • using a RTC in SF basic July 13, 2025
  • Is AI making embedded software developers more productive? July 13, 2025
  • ac current limiting July 13, 2025
  • I Wanna build a robot July 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