- This topic has 5 replies, 3 voices, and was last updated 13 years, 5 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
|
Microcontroller › AVR › using backspace in atmega16L using keypad and LCD
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
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???
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.
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
i know this command. but the issue is that, this command only moves the curser to left, what about erasing the character???
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….