12f629 freq divider?


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    My output frequency will be constantly changing. but that's a good idea to remember, certainly gets around pwm limit. my whole circuit is reading time of an input pulse, displaying the frequency, adding or subtracting a variable amount (from button inputs to a counter) and outputting the new frequency. had it all done up with logic, counters, a pll, display drivers etc. just moving to a cleaner(simpler) solution with a pic. as an after thought was thinking the divide by 50 could also use internal DAC 25 steps up then down and get a dirty little sine wave out. ?

  2. #2
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    Using the method I suggested, you could easily change the frequency by changing the number that you subtract from the timer.

  3. #3


    Did you find this post helpful? Yes | No

    Talking

    ok, guess i was looking for the easy way out. am a newbie and haven't dealt with the timers yet. just assumed it would be difficult to change on the fly. having it all done in the one pic would be best. i'll read up and let you know how it turns out. thanks!

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    the easy way out ...

    Slow speed Software PWM
    http://www.pbpgroup.com/modules/wfse...hp?articleid=6

    Set the dutycycle to 50%
    Then change the frequency at will.
    <br>
    DT

  5. #5


    Did you find this post helpful? Yes | No

    Talking Silver platter even!

    Thanks! now to go read and understand it. Really appreciate the replies.

  6. #6
    talat's Avatar
    talat Guest


    Did you find this post helpful? Yes | No

    Question urgent help

    Quote Originally Posted by Darrel Taylor View Post
    the easy way out ...
    Slow speed Software PWM
    http://www.pbpgroup.com/modules/wfse...hp?articleid=6

    Set the dutycycle to 50%
    Then change the frequency at will.
    <br>
    Hi,
    how I can use SSPWM (Slow Speed PWM) code with 12F675?

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by talat View Post
    Hi,
    how I can use SSPWM (Slow Speed PWM) code with 12F675?
    You can't.
    Not enough on chip register space for the variables required.

  8. #8
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Where do you come up with your answers skimask?

    8-Ball?
    Dart board?

    Of course you can run it on a 12F675.
    Just comment out the wsave1 wsave2 and wsave3 variables, since the 12F675 doesn't have GP RAM in those banks.
    <br>
    DT

Similar Threads

  1. Input problems with 12F629?
    By achilles03 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 24th April 2018, 06:25
  2. 12F629 LDR - Light Dependant Resistor
    By Dennis in forum Schematics
    Replies: 15
    Last Post: - 18th February 2010, 22:33
  3. Basic help for 12F629
    By Gene Choin in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd September 2009, 04:06
  4. Servo control with 12F629
    By achilles03 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd June 2005, 23:34
  5. HPWM on a 628 is not changing freq.
    By dtit in forum General
    Replies: 2
    Last Post: - 25th February 2005, 09:34

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