"get's out calculator.. punch punch.." if you divide 32,768 by 5554 you get 5.8998... Hz. 5554 is even so reset counter after 2777 and then a divide by two as the last step to get your square wave.
The way I read his requirement is to start with 32,768 Hz, and do some logic to get outputs at 32,762.1 Hz, another at 32,756.2 Hz, another at 32,750.3 Hz, etc., etc., etc.
Seems that a microprocessor would be the best solution. Start with 32,768 Hz, multiply it up by some factor, then use a software counter to click off the outputs.
Clarification, Ken??? How many outputs are you after, and what are the specific frequencies?
So, in clear language, you'd like to create 32Hz, 26.1Hz, 20.2Hz,
14.3Hz, etc, down to ???, from one 32768Hz source, all with 50% duty cycle. That's probably not trivial in old-fashioned logic, but a multiple DDS algorithm in a tiny microcontroller could come pretty close with relative ease.
Do you mind telling us why you want to do so? Often the *real* problem is easier to solve that someone's weird idea of a solution.
take 32 and 'multiply' it 8 in something like a MC1496
if done well, that will produce 40, 32, 27, and 8
a MUCH simpler way is to drive your stupid soundcard with a .wav repetitively. use the standard 48kS/s to be an EXACT multiple, use octave to make the .wav file and you can get equal amplitude ANY phase you want, complete control and not even have to breadboard anything. All these tools are FREE to work with, too.
Since I don't have coding skills, it seems the opnly viable solutuion is to build a separate generator for each frequency. "
Are you measuring output from subwoofers ?
If you are trying to get better than the pink noise method, you have to filter the input, to where it does not pick up harmnics of the frequency put into the woofer.
If the application is something else, sorry to waste your time.
but I did not notice the exact purpose of this device. Maybe you got your reasons.
Ken Knowles wrote in news: snipped-for-privacy@4ax.com:
Completely the wrong approach.
Assuming it is *ESSENTIAL* to lock the frequency to the 32768 Hz crystal, I'd start by squaring it up and doubling the frequency with a RC delay and an XOR. Then use a programmable divider chip (or rather chips as you'll probaby need to cascade them) to get pulses at a rate as close as possible to N*11.8 Hz.
Finaly a flipflop divides by two to get a good square wave.
If you dont need to start with 32768 Hz, its much more accurate if you use a significantly higher crystal frequency - at the expense of needing a longer divider chain and more bits for the division ratio to program it.
You need some way of storing the division ratio which could be programmed with a hard wired diode matrix + a 10 way rotary switch (for n=1 to 10) to ground one column at a time of the matrix, with the rows giving the binary division ratio.
Ditch the 4060, its no help at all. The oscillator can be built from the spare gates on the XOR.
However all this grief and considerable expense could be avoided if you can call in any favours to get someone to write a suitable program for a small PIC and program one for you.
--
Ian Malcolm. London, ENGLAND. (NEWSGROUP REPLY PREFERRED)
ianm[at]the[dash]malcolms[dot]freeserve[dot]co[dot]uk
[at]=@, [dash]=- & [dot]=. *Warning* HTML & >32K emails --> NUL
The problem is, 32 Hz has a period of 0.312500 seconds, which is
1024 'ticks' of a 32768 Hz clock. And 26.1 Hz has a period of .03831417625 seconds, which is 1255.478927.. ticks of that clock. There's no digital way to directly generate frequencies without approximations, unless the frequencies of interest line up 'just right' with your digital clock.
This is NOT a digital composition. A roughly square waveform may be possible that contains arbitrarily few lower harmonics (e.g., a magic sinewave approximation), but I doubt it is near trivial to compose from the source frequencies alone.
You've also suddenly changed your requirement, as I don't see how 40, 32,
24 (or 27) or 8 have anything whatsoever to do with 5.9 as a subtractive or divisive factor.
Perhaps if you could tell us a little about the underlying enigmatic purpose, we could suggest something both better suited and easier to construct.
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.