12F683 HPWM Usage


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2005
    Posts
    23

    Red face 12F683 HPWM Usage

    I am using a 12F683 to use the PWM module in it. I am strictly limited to an 8 pin device due to size constraints and PCB layout.
    I realize that the CCP1 pin is GP2. What I need to do is occasionally use another pin, such as GP5 for the PWM output. Is this even possible with this device? If so, does anyone have information and maybe sample code so that this can be done with PBP?
    There is only one pin to be used for the HPWM output at a time. (either GP2 OR GP5) They will never be used together at the same time in this setup!
    If it is not possible to do this with the 12F683, can anyone suggest another 8 pin chip that may have this capability?
    Thanks for the help!
    Ron

  2. #2


    Did you find this post helpful? Yes | No

    Default You can only use what the hardware has.

    The data sheet for the 12F683 shows no CCP multiplex facility. That means the HPWM signal can only ever appear at pin 5.

    You can of course generate software PWM on any output pin but this will not run in background in the way that HPWM will.

    HTH
    Brian

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    If i remind correctly the 12f615 allow an alternate PWM output as it have a ECCP module built-in... weird for a 8 pin device. But read the datasheet first as i'm not 100% it will work as you expect. Maybe the alternate pin will ONLY work in Half-bridge mode...
    <hr>
    EDIT yup, by the datasheet, it seems to work only when used in half-bridge mode...
    Last edited by mister_e; - 15th November 2007 at 03:04.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Maximum HPWM freq. 12F683
    By Ryan7777 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 12th August 2008, 15:55
  2. HPWM of the port of two HPWM
    By ja2rqk in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th April 2007, 15:05
  3. sound command & music
    By trying in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 26th May 2006, 14:14
  4. 3 HPWM channels
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 4th April 2006, 02:43
  5. HPWM usage with the 18F6520
    By slxrti in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th November 2005, 16:57

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