---
+ Post New Thread
Results 1 to 7 of 7
  1. #1
    Newbie level 3
    Points: 929, Level: 6

    Join Date
    Oct 2007
    Posts
    4
    Helped
    0 / 0
    Points
    929
    Level
    6

    Designing a 2 bit digital updown counter using D flip flops

    i want to design a 2 bit digital updown counter using D flip flops.
    this problem is about designing a volume control which can detect whether it is increasing volume or decreasing volume.

    •   Alt28th October 2007, 04:41

      advertising

        
       

  2. #2
    Full Member level 6
    Points: 2,999, Level: 12

    Join Date
    Aug 2006
    Location
    Bikini Bottom, between a rock and a pineapple
    Posts
    339
    Helped
    29 / 29
    Points
    2,999
    Level
    12

    up down counter

    Please rephrase the question, a bit confusing. You want to make a counter or a digital volume control?



    •   Alt28th October 2007, 10:44

      advertising

        
       

  3. #3
    Full Member level 1
    Points: 1,897, Level: 10
    plusminus's Avatar
    Join Date
    Jul 2007
    Location
    the Netherlands
    Posts
    96
    Helped
    15 / 15
    Points
    1,897
    Level
    10

    Re: up down counter

    Something like this?




    •   Alt28th October 2007, 11:16

      advertising

        
       

  4. #4
    Newbie level 3
    Points: 929, Level: 6

    Join Date
    Oct 2007
    Posts
    4
    Helped
    0 / 0
    Points
    929
    Level
    6

    Re: up down counter

    i want to design 2 bit digital updown counter using D flip flops first .

    plusminus, yes it is something like that.



  5. #5
    Full Member level 1
    Points: 1,897, Level: 10
    plusminus's Avatar
    Join Date
    Jul 2007
    Location
    the Netherlands
    Posts
    96
    Helped
    15 / 15
    Points
    1,897
    Level
    10

    Re: up down counter

    So you're helped or do you need more information?

    Make a good debounce circuit (RC network and / or schmitt trigger) from your encoder to the flipflops.



  6. #6
    Newbie level 3
    Points: 929, Level: 6

    Join Date
    Oct 2007
    Posts
    4
    Helped
    0 / 0
    Points
    929
    Level
    6

    Re: up down counter

    you helped me a little bit...
    but how to use AND gate and OR gate in the circuit?
    and if i not mistaken 2 D flip flops are needed..
    can you help me...



  7. #7
    Full Member level 1
    Points: 1,897, Level: 10
    plusminus's Avatar
    Join Date
    Jul 2007
    Location
    the Netherlands
    Posts
    96
    Helped
    15 / 15
    Points
    1,897
    Level
    10

    Re: up down counter

    You need only one D-FF to detect the direction. You can use for example an CD4013 wired as a D-FF. (as in the drawing)
    With one of the encoder pulses as a clock and a direction (from the FF) you can make a circuit to count up/down. If you want to control volume use a controller, connect the controller to a digital volume regulator (for example a digital potentiometer with SPI bus) and write some code.

    You can offcourse make the FF with logic components like ORs and ANDs.
    And also the volume regulator can be made with discrete components.

    Can you make more clear what you want to build?



+ Post New Thread
Please login