Rise and rise again until lambs become lions

Rise and rise again until lambs become lions Logic Design LAB 10 授課老師:伍紹勳 課程助教:邱麟凱、江長庭

Outlines Up/down counter JK flip flop T flip flop Up/down counter of using T flip flops Lab Rise and rise again until lambs become lions

Rise and rise again until lambs become lions Up/down counter 4 -bit up/down counter 0000 0001 0010 0011 +1 1111 0101 1110 0110 1101 1100 0111 -1 1010 1001 1000

JK flip flop and 74 LS 76 Rise and rise again until lambs become lions

Rise and rise again until lambs become lions T flip flop Transition table T=0 Hold T=1 Toggle T Implement by a JK flip flop

4 -bit up counter of using 4 T flip flops Rise and rise again until lambs become lions Inputs of the 4 T flip flops – T 0, T 1, T 2, and T 3 T 0 Q 0 T 1 Q 1 T 2 Q 2 T 3 Q 3 Outputs of the 4 T flip flops – Q 0, Q 1, Q 2 and Q 3 +1 +1 T 0 =1 and Q 0=1 - - > T 1=1 +1 T 0 =1 and Q 0=0 - - > T 1=0 +1 T 0 =1 and Q 0=1 - - > T 1=1 T 1 =1 and Q 1=1 - - > T 2=1 Clock

Rise and rise again until lambs become lions 4 -bit down counter of using 4 T flip flops Inputs of the 4 T flip flops – T 0, T 1, T 2, and T 3 T 0 Q 0 T 1 Q 1 T 2 Q 2 T 3 Q 3 Outputs of the 4 T flip flops – Q 0, Q 1, Q 2 and Q 3 -1 -1 T 0 =1 and Q 0=0 - - > T 1=1 -1 T 0 =1 and Q 0=1 - - > T 1=0 -1 T 0 =1 and Q 0=0 - - > T 1=1 T 1 =1 and Q 1=0 - - > T 2=1 Clock

Circuit of 4 -bit up/down counter Two inputs Four outputs Up = 0 Up = 1 Down = 0 Hold Up Count Down = 1 Down Count Up Count Rise and rise again until lambs become lions

Rise and rise again until lambs become lions Lab Implement a up/down counter – IC: • • • 7404(Inverter) x 1 7408(AND) x 2 7432(OR) x 1 7476(JK) x 2 LED x 4
- Slides: 9