Hello all of you,
I'm supposed to build a synchronous binary counter for all prime numbers between 0 and 20 using T or JK Flip-Flops for a university project.
The counter is supposed to count up from 2 to 19, then go to 0 (the start signal) and start counting up all over again.
Now I know I've got five outputs due to the fact that 19 as the highest required prime number has five digits in binary.
I need to present it in a schematic way, but so far I've only got the logical function, which is
y = (x4¬x3¬x2x0) v (¬x4x2¬x1x0) v (¬x4¬x3x1x0) v (¬x4x3¬x2x1x0) v (¬x4¬x3¬x2x1¬x0)
with x4 being the output for the first digit, x3 being the second and so on. (So that in 00011 resembling the 3, x4 to x2 are a 0 and x1 and x0 are a 1)
And now I'm stuck. I do know how a standard synchronous binary counter looks like, but I'm really unsure what to do, to make it skip numbers and make it come to an end after 19 to repeat the said numbers from 2 to 19.
If there's someone who could help me, I'd be very grateful.
F.
I'm supposed to build a synchronous binary counter for all prime numbers between 0 and 20 using T or JK Flip-Flops for a university project.
The counter is supposed to count up from 2 to 19, then go to 0 (the start signal) and start counting up all over again.
Now I know I've got five outputs due to the fact that 19 as the highest required prime number has five digits in binary.
I need to present it in a schematic way, but so far I've only got the logical function, which is
y = (x4¬x3¬x2x0) v (¬x4x2¬x1x0) v (¬x4¬x3x1x0) v (¬x4x3¬x2x1x0) v (¬x4¬x3¬x2x1¬x0)
with x4 being the output for the first digit, x3 being the second and so on. (So that in 00011 resembling the 3, x4 to x2 are a 0 and x1 and x0 are a 1)
And now I'm stuck. I do know how a standard synchronous binary counter looks like, but I'm really unsure what to do, to make it skip numbers and make it come to an end after 19 to repeat the said numbers from 2 to 19.
If there's someone who could help me, I'd be very grateful.
F.