"Design a Synchronous Counter Mod-12 Up/Down, using only Flip-Flop Type D. A binary input \(U\) that determines if the counter has to increase (\(U = 1\)) or decrease (\(U = 0\))"
I know the formula for a Flip-Flop Type D is \(Q_{t + 1} = D\)
So, this is the truth table I did:
\(\begin{array}{|c|c|c|c|c|c|c|c|c|c|c|c|c|}
\hline
\large{q_3} & \large{q_2} & \large{q_1} & \large{q_0} \large{q_3'} & \large{q_2'} & \large{q_1'} & \large{q_0'} \large{D_3} & \large{D_2} & \large{D_1} & \large{D_0} & \large{U}\\
\hline\\
\hline\\
0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 & 1 & -\\
\hline\\
0 & 0 & 0 & 1 & 0 & 0 & 1 & 0 & 0 & 0 & 1 & 0 & -\\
\hline\\
0 & 0 & 1 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 1 & 1 & -\\
\hline\\
0 & 0 & 1 & 1 & 0 & 1 & 0 & 0 & 0 & 1 & 0 & 0 & -\\
\hline\\
0 & 1 & 0 & 0 & 0 & 1 & 0 & 1 & 0 & 1 & 0 & 1 & -\\
\hline\\
0 & 1 & 0 & 1 & 0 & 1 & 1 & 0 & 0 & 1 & 1 & 0 & -\\
\hline\\
0 & 1 & 1 & 0 & 0 & 1 & 1 & 1 & 0 & 1 & 1 & 1 & -\\
\hline\\
0 & 1 & 1 & 1 & 1 & 0 & 0 & 0 & 1 & 0 & 0 & 0 & -\\
\hline\\
1 & 0 & 0 & 0 & 1 & 0 & 0 & 1 & 1 & 0 & 0 & 1 & -\\
\hline\\
1 & 0 & 0 & 1 & 1 & 0 & 1 & 0 & 1 & 0 & 1 & 0 & -\\
\hline\\
1 & 0 & 1 & 0 & 1 & 0 & 1 & 1 & 1 & 0 & 1 & 1 & -\\
\hline\\
1 & 0 & 1 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & -\\
\hline\\
1 & 1 & 0 & 0 & - & - & - & - & - & - & - & - & -\\
\hline\\
1 & 1 & 0 & 1 & - & - & - & - & - & - & - & - & -\\
\hline\\
1 & 1 & 1 & 0 & - & - & - & - & - & - & - & - & -\\
\hline\\
1 & 1 & 1 & 1 & - & - & - & - & - & - & - & - & -\\
\hline
\end{array}\)
I actually don't know what I should put in the \(U\) column, since that one is up to the one using the device, meaning that the one using it says if he wants to count up or count down. Should I put all "don't care" ( "-" ) like I did?
I did the Karnaugh maps already but without counting the \(U\) column and the results are the following:
\(D_3 = q_3 q_2 q_0 + q_3 q_1 q_0\)
\(D_2 = \overline{q_3} \overline{q_2} q_1 q_0 + q_2\)
\(D_1 = \overline{q_1} q_0 + q_1 \overline{q_0}\)
\(D_1 = \overline{q_0}\)
Are these correct?
P. S. It seems that the truth table is not loading correctly. Maybe it's too big? In any case, this is the LaTeX code of it:
I know the formula for a Flip-Flop Type D is \(Q_{t + 1} = D\)
So, this is the truth table I did:
\(\begin{array}{|c|c|c|c|c|c|c|c|c|c|c|c|c|}
\hline
\large{q_3} & \large{q_2} & \large{q_1} & \large{q_0} \large{q_3'} & \large{q_2'} & \large{q_1'} & \large{q_0'} \large{D_3} & \large{D_2} & \large{D_1} & \large{D_0} & \large{U}\\
\hline\\
\hline\\
0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 & 1 & -\\
\hline\\
0 & 0 & 0 & 1 & 0 & 0 & 1 & 0 & 0 & 0 & 1 & 0 & -\\
\hline\\
0 & 0 & 1 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 1 & 1 & -\\
\hline\\
0 & 0 & 1 & 1 & 0 & 1 & 0 & 0 & 0 & 1 & 0 & 0 & -\\
\hline\\
0 & 1 & 0 & 0 & 0 & 1 & 0 & 1 & 0 & 1 & 0 & 1 & -\\
\hline\\
0 & 1 & 0 & 1 & 0 & 1 & 1 & 0 & 0 & 1 & 1 & 0 & -\\
\hline\\
0 & 1 & 1 & 0 & 0 & 1 & 1 & 1 & 0 & 1 & 1 & 1 & -\\
\hline\\
0 & 1 & 1 & 1 & 1 & 0 & 0 & 0 & 1 & 0 & 0 & 0 & -\\
\hline\\
1 & 0 & 0 & 0 & 1 & 0 & 0 & 1 & 1 & 0 & 0 & 1 & -\\
\hline\\
1 & 0 & 0 & 1 & 1 & 0 & 1 & 0 & 1 & 0 & 1 & 0 & -\\
\hline\\
1 & 0 & 1 & 0 & 1 & 0 & 1 & 1 & 1 & 0 & 1 & 1 & -\\
\hline\\
1 & 0 & 1 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & -\\
\hline\\
1 & 1 & 0 & 0 & - & - & - & - & - & - & - & - & -\\
\hline\\
1 & 1 & 0 & 1 & - & - & - & - & - & - & - & - & -\\
\hline\\
1 & 1 & 1 & 0 & - & - & - & - & - & - & - & - & -\\
\hline\\
1 & 1 & 1 & 1 & - & - & - & - & - & - & - & - & -\\
\hline
\end{array}\)
I actually don't know what I should put in the \(U\) column, since that one is up to the one using the device, meaning that the one using it says if he wants to count up or count down. Should I put all "don't care" ( "-" ) like I did?
I did the Karnaugh maps already but without counting the \(U\) column and the results are the following:
\(D_3 = q_3 q_2 q_0 + q_3 q_1 q_0\)
\(D_2 = \overline{q_3} \overline{q_2} q_1 q_0 + q_2\)
\(D_1 = \overline{q_1} q_0 + q_1 \overline{q_0}\)
\(D_1 = \overline{q_0}\)
Are these correct?
P. S. It seems that the truth table is not loading correctly. Maybe it's too big? In any case, this is the LaTeX code of it:
\begin{array}{|c|c|c|c|c|c|c|c|c|c|c|c|c|}
\hline
\large{q_3} & \large{q_2} & \large{q_1} & \large{q_0} \large{q_3'} & \large{q_2'} & \large{q_1'} & \large{q_0'} \large{D_3} & \large{D_2} & \large{D_1} & \large{D_0} & \large{U}\\
\hline\\
\hline\\
0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 & 1 & -\\
\hline\\
0 & 0 & 0 & 1 & 0 & 0 & 1 & 0 & 0 & 0 & 1 & 0 & -\\
\hline\\
0 & 0 & 1 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 1 & 1 & -\\
\hline\\
0 & 0 & 1 & 1 & 0 & 1 & 0 & 0 & 0 & 1 & 0 & 0 & -\\
\hline\\
0 & 1 & 0 & 0 & 0 & 1 & 0 & 1 & 0 & 1 & 0 & 1 & -\\
\hline\\
0 & 1 & 0 & 1 & 0 & 1 & 1 & 0 & 0 & 1 & 1 & 0 & -\\
\hline\\
0 & 1 & 1 & 0 & 0 & 1 & 1 & 1 & 0 & 1 & 1 & 1 & -\\
\hline\\
0 & 1 & 1 & 1 & 1 & 0 & 0 & 0 & 1 & 0 & 0 & 0 & -\\
\hline\\
1 & 0 & 0 & 0 & 1 & 0 & 0 & 1 & 1 & 0 & 0 & 1 & -\\
\hline\\
1 & 0 & 0 & 1 & 1 & 0 & 1 & 0 & 1 & 0 & 1 & 0 & -\\
\hline\\
1 & 0 & 1 & 0 & 1 & 0 & 1 & 1 & 1 & 0 & 1 & 1 & -\\
\hline\\
1 & 0 & 1 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & -\\
\hline\\
1 & 1 & 0 & 0 & - & - & - & - & - & - & - & - & -\\
\hline\\
1 & 1 & 0 & 1 & - & - & - & - & - & - & - & - & -\\
\hline\\
1 & 1 & 1 & 0 & - & - & - & - & - & - & - & - & -\\
\hline\\
1 & 1 & 1 & 1 & - & - & - & - & - & - & - & - & -\\
\hline
\end{array}
\hline
\large{q_3} & \large{q_2} & \large{q_1} & \large{q_0} \large{q_3'} & \large{q_2'} & \large{q_1'} & \large{q_0'} \large{D_3} & \large{D_2} & \large{D_1} & \large{D_0} & \large{U}\\
\hline\\
\hline\\
0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 & 1 & -\\
\hline\\
0 & 0 & 0 & 1 & 0 & 0 & 1 & 0 & 0 & 0 & 1 & 0 & -\\
\hline\\
0 & 0 & 1 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 1 & 1 & -\\
\hline\\
0 & 0 & 1 & 1 & 0 & 1 & 0 & 0 & 0 & 1 & 0 & 0 & -\\
\hline\\
0 & 1 & 0 & 0 & 0 & 1 & 0 & 1 & 0 & 1 & 0 & 1 & -\\
\hline\\
0 & 1 & 0 & 1 & 0 & 1 & 1 & 0 & 0 & 1 & 1 & 0 & -\\
\hline\\
0 & 1 & 1 & 0 & 0 & 1 & 1 & 1 & 0 & 1 & 1 & 1 & -\\
\hline\\
0 & 1 & 1 & 1 & 1 & 0 & 0 & 0 & 1 & 0 & 0 & 0 & -\\
\hline\\
1 & 0 & 0 & 0 & 1 & 0 & 0 & 1 & 1 & 0 & 0 & 1 & -\\
\hline\\
1 & 0 & 0 & 1 & 1 & 0 & 1 & 0 & 1 & 0 & 1 & 0 & -\\
\hline\\
1 & 0 & 1 & 0 & 1 & 0 & 1 & 1 & 1 & 0 & 1 & 1 & -\\
\hline\\
1 & 0 & 1 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & -\\
\hline\\
1 & 1 & 0 & 0 & - & - & - & - & - & - & - & - & -\\
\hline\\
1 & 1 & 0 & 1 & - & - & - & - & - & - & - & - & -\\
\hline\\
1 & 1 & 1 & 0 & - & - & - & - & - & - & - & - & -\\
\hline\\
1 & 1 & 1 & 1 & - & - & - & - & - & - & - & - & -\\
\hline
\end{array}