HWPW on Pic 24FJ64GB004 - Not Recognized ?


Today 01:28
Forum: Proton Plus Compiler v3
Starter: BenBarber
Views: 4587
Replies: 43
Go to last post By: david
Yesterday 23:42
Forum: Proton 24
Starter: hadv215
Views: 0
Replies: 8
Go to last post By: shantanu@india
Yesterday 14:45
Forum: The Lounge
Starter: Tim
Views: 0
Replies: 17
Yesterday 14:03
Forum: USB
Starter: towlerg
Views: 0
Replies: 5
Yesterday 11:10
Forum: Proton Studio
Starter: johngb
Views: 0
Replies: 3
Yesterday 07:48
Forum: Proton 24
Starter: craig
Views: 0
Replies: 2
Yesterday 07:10
Forum: The Lounge
Starter: shantanu@india
Views: 0
Replies: 25
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member craig's Avatar
    Join Date
    Dec 2010
    Posts
    181
    Thumbs Up
    Received: 11
    Given: 0
    Total Downloaded
    709.12 MB

    0 Not allowed!

    Default HWPW on Pic 24FJ64GB004 - Not Recognized ?

    Hi All

    When I use the HPWM Command on the 24FJ64GB004 I get a compilation error: Device is not suitable for the compiler's HPWM Command!
    I have looked in the Def and PPi files but, they look correctthey declare: HPWM=5 ; Amount of Output Compare channels!Am I setting up something incorrectly or why is it giving out this Compilation error?
    Device = 24FJ64GB004
    Declare Xtal = 32
    CLKDIV = 0 ' CPU peripheral clock ratio set to 1:1
    Write_OSCCONH($10) ' Enable the PLL to operate the device at 32MHz
    Declare CCP1_Pin PORTC.9 ' Select Hpwm port and bit for OCP1 module - BUZZER
    PPS_Output(cOut_Pin_RP25, cOut_Fn_OC1) ' Map OC1 to Portc.9 - RP25

    HPWM 1,250,3000
    DelayMS 1000
    HPWM 1,0,0


    Kind Regards

    Craig

  2. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  3. #2
    Fanatical Contributor Les's Avatar
    Join Date
    Feb 2002
    Posts
    3,163
    Thumbs Up
    Received: 361
    Given: 130
    Total Downloaded
    1.53 GB

    0 Not allowed!

    Default Re: HWPW on Pic 24FJ64GB004 - Not Recognized ?

    There's much more to the HPWM command than the amount of PWM peripherals on the device.

    Some of the microcontrollers have a very different way of setting up and implementing the HPWM peripherals, and the compiler looks to see if the device is one that its library code supports, and if not, gives the error message.

    It was something I was going to look into and create library code for other PIC24 and dsPIC devices, then my injury happened and I totally forgot. If time permits, I'll look into it at a future date, but for now, you will need to setup the SFRs to enable PWM.
    For more example programs for Proton and Proton24 or updates, please visit: Proton WIKI or Proton Files

  4. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  5. #3
    Member craig's Avatar
    Join Date
    Dec 2010
    Posts
    181
    Thumbs Up
    Received: 11
    Given: 0
    Total Downloaded
    709.12 MB

    0 Not allowed!

    Default Re: HWPW on Pic 24FJ64GB004 - Not Recognized ?

    Thanks Les I will do that, I don't like this particular device and will rather look at something like the 24FJ64GA004 in the future. I would like to have a look at the dsPic's in the future, Les which is a decent device to look at with 44pins which is well supported by the compiler?

    Kind Regards

    Craig

  6. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Very High speed coms between Master Pic- Slave pic (needed)
    By Tim in forum Proton Plus Compiler v3
    Replies: 28
    Last Post: 27th April 2016, 15:25
  2. Replies: 2
    Last Post: 17th February 2016, 23:00
  3. CTMUCONH is not recognized by the compiler
    By VaGyver in forum Proton Plus Compiler v3
    Replies: 7
    Last Post: 17th August 2012, 23:53
  4. ISIS recognized as a trojan
    By geoff_c in forum Proton Plus Compiler v3
    Replies: 3
    Last Post: 5th September 2008, 08:21
  5. USB device not recognized
    By Alan in forum Proton Plus Compiler v3
    Replies: 1
    Last Post: 27th March 2006, 20:35

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts