Computer Science Canada Programming C, C++, Java, PHP, Ruby, Turing, VB   Username:   Password: Wiki   Blog   Search   Turing   Chat Room  Members
Counting to 15 with 7 segment displays?
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 ?

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 0-9. 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 D-Flip 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) ... ?
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First

Page 1 of 1  [ 9 Posts ]
 Jump to:  Select a forum  CompSci.ca ------------ - Network News - General Discussion     General Forums   -----------------   - Hello World   - Featured Poll   - Contests     Contest Forums   -----------------   - DWITE   - [FP] Contest 2006/2008   - [FP] 2005/2006 Archive   - [FP] 2004/2005 Archive   - Off Topic     Lounges   ---------   - User Lounge   - VIP Lounge     Programming -------------- - General Programming     General Programming Forums   --------------------------------   - Functional Programming   - Logical Programming   - C     C   --   - C Help   - C Tutorials   - C Submissions   - C++     C++   ----   - C++ Help   - C++ Tutorials   - C++ Submissions   - Java     Java   -----   - Java Help   - Java Tutorials   - Java Submissions   - Ruby     Ruby   -----   - Ruby Help   - Ruby Tutorials   - Ruby Submissions   - Turing     Turing   --------   - Turing Help   - Turing Tutorials   - Turing Submissions   - PHP     PHP   ----   - PHP Help   - PHP Tutorials   - PHP Submissions   - Python     Python   --------   - Python Help   - Python Tutorials   - Python Submissions   - Visual Basic and Other Basics     VB   ---   - Visual Basic Help   - Visual Basic Tutorials   - Visual Basic Submissions     Education ----------- - Student Life   Graphics and Design ----------------------- - Web Design     Web Design Forums   ---------------------   - (X)HTML Help   - (X)HTML Tutorials   - Flash MX Help   - Flash MX Tutorials   - Graphics     Graphics Forums   ------------------   - Photoshop Tutorials   - The Showroom   - 2D Graphics   - 3D Graphics     Teams ------ - dTeam Public

 Style: Appalachia blueSilver eMJay subAppalachia subBlue subCanvas subEmjay subGrey subSilver subVereor Search: