Hi All,
I was asked by a friend if i can build him a clock multiplier circuit for his euro-modular synthesis stuff.
I said "sure, it shouldn't be too hard"....and that was the beginning of my failure lol ;-)
On the commercial multiplier modules, they accept an input clock anywhere from 0.1hz to maybe 10 or 20 hz, then they multiply that input clock by a factor chosen by the front panel switch, e.g. multiply by 2,4,8,16 etc.....some of them even multiply by 1,2,3,4,5,6,7,8....
So,if the multiplier switch is set to "8", then the 1hz clock input would now provide a burst of 8 output pulses (8 hz) that occur within the original 1hz(1 sec) time period.
(NOT to be mistaken with 8x 1hz output clocks).
I started thinking about reading/measuring the input clock period and doing some math to calculate the new frequency required, but that calculation worked (on paper) only for a known frequency.
Would reading the input frequency/period interrupt the timing of the output clock? maybe there's a better way to read the incoming clock pulse?
If an odd input clock of say 57.3 hz arrived, i'm not too sure how to re-calculate the multiplier output.
For the example of 1 hz input and an 8 hz burst output, would i do something like reading the input clock period and maybe multiply it by 10 to give me a larger number to then divide into the 8 smaller periods, then use that answer as the new clock period to send out of the picaxe?
In fact, i think i need to dive the number by 16, to give me 8 equal sized pulses with 8 equal sized spaces in between each pulse.
My friend has shown me one of these multiplier devices and it's all done with a PIC18F2550 with a couple of transistors to buffer the clock input/output signals to the required logic levels and 8 leds to indicate which of the 8 multipliers are selected and that's about all that is in this module
How does one achieve such black magic? I'm a bit lost now lol ;-)
I was asked by a friend if i can build him a clock multiplier circuit for his euro-modular synthesis stuff.
I said "sure, it shouldn't be too hard"....and that was the beginning of my failure lol ;-)
On the commercial multiplier modules, they accept an input clock anywhere from 0.1hz to maybe 10 or 20 hz, then they multiply that input clock by a factor chosen by the front panel switch, e.g. multiply by 2,4,8,16 etc.....some of them even multiply by 1,2,3,4,5,6,7,8....
So,if the multiplier switch is set to "8", then the 1hz clock input would now provide a burst of 8 output pulses (8 hz) that occur within the original 1hz(1 sec) time period.
(NOT to be mistaken with 8x 1hz output clocks).
I started thinking about reading/measuring the input clock period and doing some math to calculate the new frequency required, but that calculation worked (on paper) only for a known frequency.
Would reading the input frequency/period interrupt the timing of the output clock? maybe there's a better way to read the incoming clock pulse?
If an odd input clock of say 57.3 hz arrived, i'm not too sure how to re-calculate the multiplier output.
For the example of 1 hz input and an 8 hz burst output, would i do something like reading the input clock period and maybe multiply it by 10 to give me a larger number to then divide into the 8 smaller periods, then use that answer as the new clock period to send out of the picaxe?
In fact, i think i need to dive the number by 16, to give me 8 equal sized pulses with 8 equal sized spaces in between each pulse.
My friend has shown me one of these multiplier devices and it's all done with a PIC18F2550 with a couple of transistors to buffer the clock input/output signals to the required logic levels and 8 leds to indicate which of the 8 multipliers are selected and that's about all that is in this module
How does one achieve such black magic? I'm a bit lost now lol ;-)