HPWM the hard way


Results 1 to 2 of 2

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Set CCP module to full-bridge mode...
    Code:
    CCP1CON = %01001100 'set the CCP1CON
    For 50% duty cycle, CCPR1L should be half of PR2
    Code:
    PR2 = 124   'SET FREQ 
    CCPR1L = 62 'set to 50% duty cycle
    Added: For Full-bridge mode, you'll probably need to change the PWM1CON value to limit transition currents.

    hth,
    Last edited by Darrel Taylor; - 6th February 2008 at 21:06. Reason: PWM1CON
    DT

Similar Threads

  1. Multiple HPWM question
    By Johan in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 17th October 2007, 13:00
  2. need help on hpwm
    By helmut in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 28th August 2007, 15:49
  3. HPWM of the port of two HPWM
    By ja2rqk in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th April 2007, 15:05
  4. sound command & music
    By trying in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 26th May 2006, 14:14
  5. 3 HPWM channels
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 4th April 2006, 02:43

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