Author 
Message 
GreatPumpkin

Posted: Wed Apr 30, 2014 1:58 pm Post subject: Counting to 15 with 7 segment displays? 


Hey, does anybody know how to count past 9 using 2 7 segment displays ?






Sponsor Sponsor



Zren

Posted: Wed Apr 30, 2014 3:43 pm Post subject: RE:Counting to 15 with 7 segment displays? 


"Count"? What are you using to give input to the 7seg display? What's your current setup to count up to 9?
A smartass might count in a different base than normal if the upper limit was the value 15. heh.






Tony

Posted: Wed Apr 30, 2014 4:01 pm Post subject: RE:Counting to 15 with 7 segment displays? 


I'm guessing that there are two displays, each able to show 09. So 10 would be "display digit 1 and display digit 0". I'm not sure what the question here actually is.

Tony's programming blog. DWITE  a programming contest. 




GreatPumpkin

Posted: Thu May 01, 2014 1:15 pm Post subject: RE:Counting to 15 with 7 segment displays? 


I made a 4 bit counter out of JK Flip Flops set to toggle.
Each time I press the button, the number on the 7 seg increases. I want to make it so when it hits the number 10 or (1010) it it splits it onto the second 7 seg. So that for 10, there is a one displayed on the first 7 seg, and 0 on the second. For 11, a 1 on the first, and 1 on the second, up until 15.
The question is how do you display a 4 bit binary number (2 digit decimal) over 2 7 seg displays? I need a system of splitting it up. I tried researching but absolutley every page I came across was about "Programming an Arduino or PIC for multidigit display".
I don't know where to start, except with maybe a DFlip Flop that triggers when the number hits 9.. From there I'm not sure, and searching the internet has only returned frustration.






GreatPumpkin

Posted: Thu May 01, 2014 1:35 pm Post subject: RE:Counting to 15 with 7 segment displays? 


A thought I've had, make the counter max out at 9 then reset to 0, while at the same time setting a and extra bit to remember the 10's column.






GreatPumpkin

Posted: Sun May 04, 2014 10:08 pm Post subject: RE:Counting to 15 with 7 segment displays? 


Anything?






Nathan4102

Posted: Mon May 05, 2014 3:53 pm Post subject: RE:Counting to 15 with 7 segment displays? 


You've already nailed it, havn't you? Have you attemped both your earlier guesses?






GreatPumpkin

Posted: Mon May 05, 2014 5:33 pm Post subject: RE:Counting to 15 with 7 segment displays? 


I've attempted a simulated version, and it works fine, but it shouldn't take 5 bits to count to 15..
There's got to be a text book way of displaying two digits on 7 segs.. I've even found a textbook that has an activity where you hook a four bit counter up to a single 7 seg, but that doesn't help at all..






whoareyou

Posted: Mon May 05, 2014 7:20 pm Post subject: Re: Counting to 15 with 7 segment displays? 


Use AND/OR gates? If you have a 4 bit binary number ABCD (where A is the MSB and D is the LSB) then the 7 segment display should output 1 if A AND (B OR C) ... ?






