Low frequency generator


Closed Thread
Results 1 to 18 of 18

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: Low frequency generator

    Why not easily generate 1000 - 25000 Hz ( straight with PBP ...) and use a , say, CD 4518 or 74LS390 as a 100 divider on the output ...

    as duty cycle is supposed to always be 50% ... no problem then !

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: Low frequency generator

    If you can't make your pic16f88 work. The pic18f2431 with a 4mhz clock can output a pwm about 2hz using the power control pwm module. I know you said simple, but simple isn't always easy.

  3. #3
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default Re: Low frequency generator

    I need to control frequency and Duty cycle (I mentioned earlier 50% Dutycycle cause I can easily get any Dutycycle the problem is frequency, but variable dutycycle is better) . I also want to output the frequency and dutycycle on a LCD.I had this thin g going out high and low pins.... but obviously LCDout played a destructive role in the timing. ...
    I will check out all the possibilities and the power control pwm module with the F2431
    Last edited by lerameur; - 26th May 2013 at 22:20.

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,170


    Did you find this post helpful? Yes | No

    Default Re: Low frequency generator

    Going out on a limb with this.

    PIC 1 outputs signal on a pin, PIC 2 reads signal and displays on LCD, interrupt on 4 input pins on PIC 1 adjust duty and frequency. This way the LCDOUT doesn't interfere with the pwm.

    Can we even read PWM signals with PICs (never even got close to doing this)?

    Robert
    Last edited by Demon; - 27th May 2013 at 02:37.

  5. #5
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default Re: Low frequency generator

    HUmm.. two pics.. well
    I thought about going to a waveform chip like the ICL8038.. but I wanted a more 'modern' solution going with a single Pic,
    I am going try tonight what Henrik mentioned above.

    K

  6. #6
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default Re: Low frequency generator

    I tried different value of PR2, (had tried it before..)
    Still am getting 60Hz at PR2 255 and at 200 I get 77hz at 100 I get a steady 5v out...
    Here is the link of the program I use for mytest: http://www.warburtech.com/products/compilers/picbasic.pro.compiler/sample.code/hardpwm.pbp/

  7. #7
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default Re: Low frequency generator

    I was playing around with internal frequency, just to let you know that it do not work. Decreasing the int freq to 500Khz decreases the min freq to 30Hz but also the max freq at 130Hz !!

    K

  8. #8
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default Re: Low frequency generator

    Quote Originally Posted by lerameur View Post
    I tried different value of PR2, (had tried it before..)
    Still am getting 60Hz at PR2 255 and at 200 I get 77hz at 100 I get a steady 5v out...
    Here is the link of the program I use for mytest: http://www.warburtech.com/products/compilers/picbasic.pro.compiler/sample.code/hardpwm.pbp/
    That is not your only issue. Because you are dealing with reciprocal values, granularity (resolution) is going to be very poor throughout. At high PR2 values, you will see very little change in frequency - eg. reducing PR2 from 255 to 254 you may not be able to detect any change in frequency. However, at the other end of scale, incrementing PR2 will result in a huge change in frequency.
    Why pay for overpriced toys when you can have
    professional grade tools for FREE!!!

Similar Threads

  1. HPWM at very low frequency
    By lerameur in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 9th May 2013, 08:41
  2. Frequency generator
    By lerameur in forum General
    Replies: 3
    Last Post: - 11th November 2010, 11:32
  3. Frequency Generator
    By ExYu in forum Off Topic
    Replies: 2
    Last Post: - 22nd January 2008, 18:25
  4. Low cost audio function generator(DDS)
    By sougata in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 8th February 2007, 13:23
  5. Low-Frequency Counter
    By Zeke in forum General
    Replies: 7
    Last Post: - 19th January 2006, 18:06

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts