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! P.S. I also would like a bit of guidance on PIC power-down schemes that draw less than a microamp when off (run from a 9 volt battery), and wake with a change on port B. Microchip says it can be done with external CMOS gates and a DMOS FET, but again I suspect that there is a much cleaner way. Any ideas? -- Arthur Doerksen, P.Eng. A.D.Comtronics & Engineering - 604-533-4933 20783 - 51 B Avenue, Langley, BC Canada V3A 7T5 http://www.adcomtronics.com "Amazing grace, how sweet the sound..."