In message <34287182.15F@adcomtronics.com>, "Arthur J. Doerksen" writes >I want to build a simple PIC-based (16F84) square wave generator to >produce 5 volts p-p at 1 kHz, 2 kHz...1000 kHz. I thought of using a >CMOS PLL such as the 4046 with a divider by 1000 and feeding the PLL >reference from a PIC output over the range 1 - 1000 Hz. > >Has anyone done this more simply? Any help is welcome! The 4046 VCO (and phase detector, probably) won't cover anything like the range you need, without switching components, or using several 4046s (they are cheap, anyway). A better solution might be one of the DDS chips controlled by the PIC. The Analog Devices ones are really intended for HF, and are probably overkill in your application (they would work, though, at your frequencies), but someone (I can't remember who) makes an LF DDS which is ideal for your purposes. I think it's quite cheap, as well. Try posting to sci.electronics.design, you'll get lots of help. Leon -- Leon Heller: leon@lfheller.demon.co.uk http://www.lfheller.demon.co.uk Amateur Radio Callsign G1HSM Tel: +44 (0) 118 947 1424 See http://www.lfheller.demon.co.uk/rcm.htm for details of a low-cost reconfigurable computing module using the XC6216 FPGA