# Frustrated With D flip flop assignment

We are doing a project at school with AOI, NAND and NOR logic. The logic is used sequentially to display a number on an LED display, more specifically it is suppose to display the numbers of your birthday in this order: MM-DD-YY. The output of the LED display is determined by 3 switches that are used as inputs. I labeled my inputs X Y and Z. When you turn the switches on and off to represent counting in binary, it displays your birthday. Now, my teacher said that anyone who can display the numbers using a counter or flip flops would get extra credit (much needed). The problem is, is that I cannot figure out how to get my Positive-Edge-Triggered D flip flop to work properly. I am unfamiliar with flip flops and i have been trying to research them on the internet with no luck. Every page i read i get lost and frustrated. How can i use Positive Edge triggered flip flops to count in binary to 7? All relevant answers are appreciated!

• take one D-FF, wire its ~Q output back to D. Now whenever it sees a positive edge, the output toggles. So on the output, you will have one positive edge for every two positive edges seen at the input. You've made a divide-by-two. Now, use that output to clock a 2nd D-FF, similarly wired ~Q back to D. This divides by 2 a second time, or one pos edge for every 4 in the input. You now have a two bit counter. The 1st D-FF is the LSB, the 2nd one is the MSB. Add a 3rd unit and you can count from 0 to 7, over and over – JustJeff Dec 17 '11 at 3:25