At 02:44 16.7.1998 -0400, you wrote: >Hi everyone, > I'm trying to find some code for a frequency genetator using a PIC. >0Hz to 10khz 0.5Hz or 1Hz increments. >I have been experiementing with PIC16C84, dividing a known frequency >from the TRM0 Interupt, but dividing freqencies will not give me the >freqency increments I need. >eg 1MHz/100 = 10kHz > 1MHz/101 = 9900.9Hz > > 1MHz/1,000,000 = 1Hz > 1MHz/1,000,001 =0.9999999 > >Any help will be greatly appretiated Hello, in the past, I designed the freq. generator (PIC driven) with DDS (Direct Digital Synthesis) IC. Of course, it was for frequencies around 100 Mhz, but I think that you can use similar approach. The IC I used was AD9850 (from Analog Devices) which work up to 180 Mhz (or similar) with resolution 0.029 Hz. Also, if I remember correctly, there is a design of digitally controlled freq. generator in Maxim datasheet for MAX038 function generator IC. The resolution is 1 Hz, but I am not sure and I don't have the datasheet handy here. Check their web site www.maxim-ic.com Best regards PavelK ************************************************************************** * Pavel Korensky * * DATOR3 LAN Services spol. s r.o. * * Modranska 1895/17, 143 00, Prague 4, Czech Republic * * * * PGP Key fingerprint: F3 E1 AE BC 34 18 CB A6 CC D0 DA 9E 79 03 41 D4 * * * * SUMMA SCIENTIA - NIHIL SCIRE * **************************************************************************