Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
@KlausST when the variable button is called as :
if (button == 1) { //when button is on
temp=counter++; //counter value is incremented
lcd_dout(temp); //data is send to display
button = 0...
@doraemon I displayed only the relevant part to the push button. As I already mention the button is set in another function, and sorry for the part of [dsp_buf]=[n], also TITL[], I have edited just.
lcd_dout()function is for converting characters to the ASCII part.
The DIsplay is displaying...
@KlausST in the code pushbutton, the button is set to 1.
and I have already displayed the character by converting each to ASCII and now, I want to increase those numbers.
I want to increment a counter for Line2 and display it on LCD when the pushbutton is pressed. It displays correctly, but when I press the button it shows different characters like this(||). When I place a cursor to the 9 of Line2 and pressed the button it displays symbol(||).
Code to display...
@doraemon, at the present situation I cannot try with LED, and I have tried using the breakpoint but also I am not being able to stop the button press. I have called the function in the main function as :
void main_loop(void)
{
while (1)
{
/* Panel...
@FenTrac I have tried using this also, but it executes all the code:
void switich_1(void)
{
count = 0;
if (modef == 1){ // button is pressed
if (count == 0) {...
I have connected a button to the 8085 microcontrollers and I want that button to perform different functions when pressed again and again.
But now when I pressed it executes all the functions pressing only once.
void switich_1(void)
{
count = 0;
if (modef == 1){...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.