Hpwm @ Pic16f777


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    fuhr3r,

    since you are new to the forum you should have a look at THIS
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  2. #2
    fuhr3r's Avatar
    fuhr3r Guest


    Did you find this post helpful? Yes | No

    Default

    Hi, the code is very big, almost 8k and commented in portugueese

    This PIC have 2 pins for CCP2, selected with the fuses, so does it need the DEFINES?

  3. #3
    fuhr3r's Avatar
    fuhr3r Guest


    Did you find this post helpful? Yes | No

    Default

    DEFINE CCP2_REG PORTB ' Hpwm 2 pin port
    DEFINE CCP2_BIT 3 ' Hpwm 2 pin bit

    Now HPWM 2 works, but HPWM3 still not working.

    I tryed DEFINE CCP3_REG PORTB and CCP2_BIT 5, but did not work. (only CCP has 2 choices of pins).

    Tomorrow i will try simulate with MPLAB or put a LCD showing CCP3CON.

    Nobody ever used 3 HPWMs?

  4. #4
    fuhr3r's Avatar
    fuhr3r Guest


    Did you find this post helpful? Yes | No

    Default

    http://www.picbasic.co.uk/forum/showthread.php?t=1770

    "Nope. The HPWM command only supports 2 channels. CCP1 & CCP2. You
    would need to modify the 16F library to support CCP3. It's much easier to
    just configure hardware PWM manually."

    Problem solved....

Similar Threads

  1. High Resolution Timer & Speed Calculator
    By WOZZY-2010 in forum Code Examples
    Replies: 4
    Last Post: - 7th February 2010, 17:45
  2. sound command & music
    By trying in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 26th May 2006, 15:14
  3. 3 HPWM channels
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 4th April 2006, 03:43
  4. help
    By zugvogel1 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th February 2005, 21:42
  5. Need once your help one please
    By zugvogel1 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 9th February 2005, 21:33

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