12f629 freq divider?


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    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.

  2. #2
    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

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    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>
    Both of them...I assign points to each answer, then take the average point out of 7 tries.
    Fine, it can be run on a 12F675. I thought there was only 24 bytes ram on a '675.
    The average Joe isn't going to know to comment out those wsave variables until the compiler/assembler whines about it. Then the average Joe isn't going to know what 'Unable to fit variable wsave3' means after hitting F9. Then what is the average Joe going to do? Ask questions of course. A comment in the sspwm.inc file would fix that.
    I haven't tried it on anything less than a 16F628A. I'll play with it this weekend on an 'F629 and see what happens.
    Last edited by skimask; - 22nd October 2008 at 04:35. Reason: Took out those extra sentences in the beginning...WTH was that?

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    I thought there was only 24 bytes ram on a '675.
    64, but it won't matter much.
    SSPWM uses ASM interrupts. So the issue of saving all the PBP system vars doesn't apply.

    A comment in the sspwm.inc file would fix that.
    Or maybe a note to use the current version.

    SPWM_INT - Multiple Software PWM
    http://www.darreltaylor.com/DT_INTS-14/SPWM.html
    <br>
    DT

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    64, but it won't matter much.
    That's what I get when I get my 10Fxxx's and 12Fxxx's corn-fuzzed...

    SPWM_INT - Multiple Software PWM
    Well then that's the one I'm going to play with some more...

  6. #6
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    Ski, if you get the 24-bit stuff, here is a what a PIC24 will do in this kind of situation:

    1. Hardware PWM from 30Hz to 500KHz+.
    2. Up to 16-bit duty cycle resolution at lower frequencies.
    3. Up to 5 independent hardware PWM's.
    4. 0% processor overhead.
    5. Virtually no coding - except to set up registers.

    All this from a single $2, 28-pin device.

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