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.

need incremanet or decrement 7seg multiplex display according keypad input

Status
Not open for further replies.

ud23

Advanced Member level 3
Advanced Member level 3
Joined
Apr 20, 2011
Messages
926
Helped
185
Reputation
370
Reaction score
180
Trophy points
1,323
Activity points
6,138
hi all i want to increment my 7 seg nuber from its currernt value if increment key pressed and same as in decrement case can any one help i am using 89c52 with three 7 seg and 4x3 matrix key pad
 

A counter IC would use this sequence. Adapt it as needed. Change hi to lo or lo to hi to operate IC's properly.

1. Detect key press inc or dec.

2. Debounce key press and ignore further key presses for 1/4 second or so.

3. Set IC count mode pin hi or lo, depending on whether you want to count up or down.

4. Use an RS flip flop. Clock goes to one input.

5. Set other input so output changes to hi. You can use a one-shot to apply short pulse.

6. Flip-flop output goes to IC gate-enable count pin.

7. The next clock pulse will enable count for one pulse.

8. End of clock cycle resets flip flop. Flip flop output disables gate count pin.

9. Update 7 seg display.

10. Accept key presses.
 

thnx for help
its useful
 

A counter IC would use this sequence. Adapt it as needed. Change hi to lo or lo to hi to operate IC's properly.

1. Detect key press inc or dec.

2. Debounce key press and ignore further key presses for 1/4 second or so.

3. Set IC count mode pin hi or lo, depending on whether you want to count up or down.

4. Use an RS flip flop. Clock goes to one input.

5. Set other input so output changes to hi. You can use a one-shot to apply short pulse.

6. Flip-flop output goes to IC gate-enable count pin.

7. The next clock pulse will enable count for one pulse.

8. End of clock cycle resets flip flop. Flip flop output disables gate count pin.

9. Update 7 seg display.

10. Accept key presses.
You don't need a counter IC. All this can be done in the microcontroller code.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top