Continue to Site

Welcome to EDAboard.com

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.

switch interfacing with 89s52

Status
Not open for further replies.

anilsahil1987

Newbie level 3
Newbie level 3
Joined
Aug 25, 2011
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,305
hello everyone
this is anil kumar. i am using 89s52 and displaying data on the 4 seven segment with 4 4094(shift register)..
i want to interface 4 push button
1 - for select segment
2 - for increament in digites
3 - for decreament in digites
4 - for reset


if any have any idea about it plz help me
 

hai anil..

you can use 2x2 matrix keyboard type interfacing. May be we can help you if we get few more details about the project.

Thanks
 

i am using 89s52 and displaying data on the 4 seven segment with 4 4094(shift register)..

Which part of help you want from here? i mean hardware or software?

Because the 1st post says you are using 89s52 and displaying data. Does that mean you have already done most of the part?
 

friends

actually i want to do that--


when i press 1st push button 1st seven segment start blinking after it increament/decreament by 2nd/3rd push button in 1st seven segment .
again when i press 1st push button 2nd seven segment start blinking after it increament/decreament by 2nd/3rd push button in 2nd seven segment .
again when i press 1st push button 3rd seven segment start blinking after it increament/decreament by 2nd/3rd push button in 3rd seven segment
again when i press 1st push button 4th seven segment start blinking after it increament/decreament by 2nd/3rd push button in 4th seven segment .

honestely i am saying i have no logical idea how i write coda for working of 1st push button.
i wrote coad for working of 2nd,3rd and 4th push button
but here is no logic for 1 push button.

plz try to help me
 

friends

actually i want to do that--


when i press 1st push button 1st seven segment start blinking after it increament/decreament by 2nd/3rd push button in 1st seven segment .
again when i press 1st push button 2nd seven segment start blinking after it increament/decreament by 2nd/3rd push button in 2nd seven segment .
again when i press 1st push button 3rd seven segment start blinking after it increament/decreament by 2nd/3rd push button in 3rd seven segment
again when i press 1st push button 4th seven segment start blinking after it increament/decreament by 2nd/3rd push button in 4th seven segment .

honestely i am saying i have no logical idea how i write coda for working of 1st push button.
i wrote coad for working of 2nd,3rd and 4th push button
but here is no logic for 1 push button.

plz try to help me

hai anil....

you can use two different ways of programming.

1. Using external interrupt.
2. just like keyboard scanning method

In 1st method, u can use the 1st push button to generate interrupt. When interrupt comes, you can enable a used defined flag in the routine and exit. In main program you can monitor that particular flag continuously in while(); If the flag set, then visit to a function which monitors other 3 push buttons for defined operation and also blink the segment cursor.

In 2nd method, you can use a 2x2 matrix type keyboard scanning and read the value. Use switch case to compare the values and perform defined operation.

Are you comfort with these ideas?

Thanks and let me know about your details.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top