ps_arunkumar
Member level 1
How to display two no. in lcd?
Hi all,
I have connected two switches to AT89c52. I am trying to display individual no. so that when a switch is pressed, it will be displayed in lcd. C code which i have written using Keil compiler works but one switch is dependent on other i.e.,I have to press switch 1 and it will display a no. and if i continue to press switch 1 the no. wont increment. After pressing the switch2, i can increment the switch1 no. hen i should press switch2 again to increment switch 1.
I am some logic and I have tried to find but i couldn't. Please help me.
Hi all,
I have connected two switches to AT89c52. I am trying to display individual no. so that when a switch is pressed, it will be displayed in lcd. C code which i have written using Keil compiler works but one switch is dependent on other i.e.,I have to press switch 1 and it will display a no. and if i continue to press switch 1 the no. wont increment. After pressing the switch2, i can increment the switch1 no. hen i should press switch2 again to increment switch 1.
I am some logic and I have tried to find but i couldn't. Please help me.
Attachments
Last edited: