Yes 15 would indeed be simpler. But the 10 second and 20 second modes area part of the project specs.
So i'm beginning to understand how this will work in theory, but the application is still a bit fuzzy. How would I go about setting it up so that, say after a button is pressed, it will count for x seconds and then,once thats done do the multiplication? Would 1 555 suffice?
Thanks for the reply.
Hi again,
Ok then to multiply by 3 you would need an 8 bit adder. You would have to add the 20 second count to itself shifted left 1 time, which means one set of adder inputs comes from the count directly and the other set comes from the count starting at bit 1 instead of bit 0. For the count of 10 seconds you would do the same thing except instead of interpreting the result directly you would interpret it shifted one bit to the left with the leftmost digit made equal to zero.
For example, say for the 20 second count we get a count of 20 which in binary 8 bits is:
00010100
Now we take that and add it to itself after interpreting one bit to the left:
00010100+00101000
and we get:
00111100
which is binary for 60, which means 60 beats per minute.
To do this requires one 8 bit adder, either a single chip if available or multiple chips.
Now if instead for our example we take a 10 second count and get 10 which in binary 8 bits is:
00001010
and then add this to itself after shifting:
00001010+00010100
and we get:
00011110
and then interpreting that one more bit to the left end up with:
00111100
which again is binary for 60.
So for the 10 second count we end up with one additional step at the end.
The nice thing about doing it this way is we dont need any shift registers or clocks. We do need an adder however with it's inputs correctly wired to the counter chips outputs so that it always adds the count to itself shifted once. The output of that is then either interpreted directly or one bit left shifted, but no actual shifts have to take place.