mod-12 down counter

Discussion in 'Homework Help' started by Uriziel, Apr 22, 2010.

  1. Uriziel

    Thread Starter New Member

    Apr 22, 2010
    2
    0
    Hello,

    I looked at some other threadsand didn't find anything that could help me. So I have an assignment to make a 4 bit sequential counter that counts down one step and starts from 12. (B,A,9,8,7,6,5,4,3,2,1,0,B,A...etc)

    I'm using JK flip-flops as T trigers and connect them from \bar{Q}. My enable has to vary between "1" and "0" together with the clock but twice as slow. Meaning it cant have a constant value of 1. It's to show that Enable has some affect to the counting process.

    To have the counter start from 12 I take the positive feedback from Q3(the oldest) and Q2 using a "NAND" gate and connect it through another "AND" gate to JK of the third triger, the second signal to the "AND" gate comes from the "AND" of the second triger. Since if both he Q3 and Q2 have the value of "1" at the same time then Q2 has to have a next value "0", thus making it impossible for F,E,D and C to appear. But what it does is it even makes 7,6,5 and 4 to disapear. since they all have the value of "1" in the third rank of their binary (don't know if it's the right word, hope you understand) then the fault lies there somewhere, only I can't put a finger on where exactly.

    I had a working counter that had maybe too many gates and the 3,2,1 and 0 took twe as much time to count as the rest,but only when enable was twice as slow than the clock. As it must be for me. But my teacher wasn't satisfied with that and so now i need to make another one but am stuck wit a counter that should work in theory, atleast i think it should.

    Picture is worth more then a 1000 words, so i'll upload the one i'm stuck with and the one that "works".

    Stuck with that:

    Counter_mod12.JPG

    That's the one that works:

    Counter_mod12-2.JPG


    Thanks in advance, hope it wasn't too much of a heavy reading :D

    Juho
     
  2. Uriziel

    Thread Starter New Member

    Apr 22, 2010
    2
    0
    I got it to work properly and with only 5 gates. I was aproaching it the wrong way, looking it as an up counter. All I had to do was take the "Negative" feedback from all the triggers (Representing the value 0000) and connect it the same way as shown on the first schematic. To say that when the count reaches 0000, then the next value of the third triger has to be "0". I connected "Enable" to the NAND gate aswell. Had to use an 8-input NAND since there is no 5-in NAND in Multisim, atleast no Texas-74. Right now I just connected all the free pins to enable at the same time. I could connect them all to a power source or to ground through a NOT gate.

    Is there any preferences in making connections when you have some excess pins? There has to be some times when you just have some gates unused because they come in a bundle. Sorry if it's a newbie question but I can't just think to be smarter or more experienced.
     
Loading...