Why does this 7 seg not work?

Discussion in 'General Electronics Chat' started by arthur92710, Feb 23, 2008.

  1. arthur92710

    Thread Starter Active Member

    Jun 25, 2007
    307
    1
    Why does this 7 seg not work?
    [​IMG]

    The BCD counter counts right but the 7seg does not light up.

    Ok I fixed that, now it count 0-9, but shows odd combinations,

    Those odd combinations were the inverted numbers. also it counts down insted of up.
     
  2. SgtWookie

    Expert

    Jul 17, 2007
    22,182
    1,728
    Does it count from 0 all the way to 9 and display all of the digits correctly?

    Or does it skip around, and show odd displays in the middle? If this is happening, you have some of the connections between U1 and U2 swapped around.

    Do you have bypass capacitors across the ground/Vss and Vcc/Vdd pins of both ICs?
     
  3. Gadget

    Distinguished Member

    Jan 10, 2006
    613
    0
    The HC series is CMOS from memory, so all unused inputs should be tied either High or low, and not floating.
     
  4. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    In particular the U/D pin-5 on the 74HC190. It appears to flapping in the breeze.

    hgmjr
     
  5. arthur92710

    Thread Starter Active Member

    Jun 25, 2007
    307
    1
    Thanks but I figured it out. It was giving me so many problems last night but I came back to it in the morning and got it right.[​IMG]

    what happened was I was using a common anode display, I needed a common cathode display. To fix the 9-0 counting U1-U/D had to be high.
     
  6. pfofit

    Member

    Nov 29, 2006
    25
    0
    arthur, You can simplify your zero to 59 counter. some ideas
    With your circuit as is:
    U14,15 and u9 can be eliminated.
    using a truth table, B and C of your tens counter will only be both 1 at count 6, therefore A & D are "don't care".

    One unused pin of U7 can be pulled to Vcc and the other input can be connected to the output of U8 and then the output of U7 will be your reset pin at a count of 60.

    Rethinking , the circuit as a whole can be redesigned to further eliminate it down to just three gates:

    Output D of your ones counter falls from 1 to 0 going from count 9 to 0.
    Since the 4510 is clocked on the rising edge, an inverted ones counter D signal can become the rising edge clock of your tens counter. No need for the carry pins. Since the tens is clocked by the ones counter, the reset can be obtained by the tens counting from 5 to 6.

    So using 3 gates of an 4011 NAND chip:
    one gate used as an inverter/NOT( input pins of gate tied together) on the D output of the ones counter to obtain a rising clock pulse for the tens counter CLK.

    two gates to make an AND for the B & C of the tens counter as a reset pin for both counters (one as an NAND of B&C and then another in series as an NOT)

    cheers
     
  7. arthur92710

    Thread Starter Active Member

    Jun 25, 2007
    307
    1
    Thanks for that, reducing the number of components would be really helpful, It makes it cheaper, it uses less power, takes up less room and the chances of get in something wrong because of a extra part is lowered. So thanks.

    I have upgraded the circuit since the last post. here is the new one.
    [​IMG]

    Its basically the same but 3x bigger. With the next changes I will use your ideas.
     
  8. mik3

    Senior Member

    Feb 4, 2008
    4,846
    63
    Why dont you use a microcontroller and an LCD display ? its a more compact circuit than this.
     
  9. pfofit

    Member

    Nov 29, 2006
    25
    0
    Aha!! the plot thickens, and i thought you were just looking for 60 counter!
    Um, although the theory is fine, I'm not sure why i excluded the use of the carry out on the ones counter. It is a decade counter and that's what it's there for.:rolleyes:
    Perhaps it was the inverters and U8 to capture a zero... :(
    That's what I get for trying to do something in my (getting old) head.:)

    nevertheless, you can use the carry out from the ones into the carry in of the tens counter and eliminate yet another gate.

    never stop thinking eh.
     
Loading...