generating 50/60Hz from a 74HC4060
Lamct, you won't be able to generate 50 or 60Hz using only a 74HC4060 and a crystal, because the necessary input frequencies are not standard crystal frequencies. In addition to the 74HC4060 (14 stage binary counter), you will need an odd modulo divide-by-N counter to get 50/60Hz.
In other words, the 4060 can only divide by powers of 2. Trying (60Hz x 2^14) gives a required input frequency of 983.04Khz. You won't find a standard crystal at that frequency or at any integer multiple.
However, by following the 4060 with a two stage divide-by-N counter, a 50 or 60Hz output can be generated.
The easiest way to do this is to pick a standard crystal frequency in the 1 - 20Mhz range. Just don't use simple integer multiples like 6.000 or 10.000Mhz, we need something that a binary counter can divide down to a useful intermediate frequency.
Examples:
1) Try 11.0592Mhz (a common value for baud-rate generators)
(11.0592Mhz/60Hz) = 184320; (184320/2^12) = 45
A two stage divide-by-N counter with N1 = 5 and N2 = 9 will produce a 60Hz output.
Likewise,
(11.0592Mhz/50Hz) = 221184; (221184/2^11) = 108
N1 = 9, N2 = 12 will produce 50Hz.
2) Try 6.144Mhz (another standard crystal frequency)
(6.144Mhz/60Hz) = 102400; (102400/2^12) = 25; N1 = 5, N2 = 5.
(6.144Mhz/50Hz) = 122880; (122880/2^12) = 30; N1 = 5, N2 = 6.
A simple two stage divide-by-N circuit can be found here:
**broken link removed**
The CD4018 also works well for building divide-by-N counters.
There are plenty of other ways to generate 50/60Hz from a crystal, such as dividing down to 1Hz and using a phase locked loop like the 4046 to multiply back up to the desired frequency. However, a two stage divide-by-N counter is still required in the PLL feedback loop to get 50 or 60Hz (where N1, N2 = 5, 10 or 6, 10).
National Semiconductor used to make the MM5369, a nice part that used a cheap TV colorburst crystal (3.58Mhz) to accomplish what you're trying to do, although only at 60Hz.
**broken link removed**
The part is now obsolete, but you may still be able to find some. Note that it shouldn't be too hard to program a small PIC micro (like the 12C508) to duplicate the function of the MM5369.
Hope this answers your question!
- CAL