Inverting PWM duty time


+ Reply to Thread
Results 1 to 6 of 6

Thread: Inverting PWM duty time1358 days old

  1. #1
    Member yvesmazzon's Avatar
    Join Date
    Jul 2006
    Posts
    213
    Thumbs Up
    Received: 6
    Given: 34
    Total Downloaded
    11.21 GB

    0 Not allowed!

    Default Inverting PWM duty time

    Is It possible to Invert PWM by some setup so the duty cycle decreases as its value increases so duty=255 will be the shorter duty time or shall I do by software? Many thanks

    Regards,

    Yves

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.

  • #2
    Prolific Poster joesaliba's Avatar
    Join Date
    Sep 2004
    Posts
    2,468
    Thumbs Up
    Received: 71
    Given: 29
    Total Downloaded
    6.17 GB

    1 Not allowed!

    Default Re: Inverting PWM duty time

    Try do it by software: -

    output = (255 - input)
    Regards

    Joseph

  • 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
    Fanatical Contributor Tim's Avatar
    Join Date
    Jan 2003
    Posts
    7,676
    Thumbs Up
    Received: 47
    Given: 95
    Total Downloaded
    1.32 GB

    0 Not allowed!

    Default Re: Inverting PWM duty time

    So I had this issue myself

    f you using 10bit then you can try

    PWM = ~ PWM&nbsp

    Then if you need to mask it, you can try something like this

    PWM = PWM & 001111111111111111
    Tim

  • 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.

  • #4
    Prolific Poster joesaliba's Avatar
    Join Date
    Sep 2004
    Posts
    2,468
    Thumbs Up
    Received: 71
    Given: 29
    Total Downloaded
    6.17 GB

    0 Not allowed!

    Default Re: Inverting PWM duty time

    Tim,

    What is nbsp please?
    Regards

    Joseph

  • 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
    Prolific Poster hadv215's Avatar
    Join Date
    Sep 2009
    Posts
    1,135
    Thumbs Up
    Received: 66
    Given: 26
    Total Downloaded
    3.46 GB

    0 Not allowed!

    Default Re: Inverting PWM duty time

    I think it is 'non breaking space'. At least it has something to do with the makeup of this forum and it is NOT a PDS thing

    Regards
    Harm

  • 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.

  • #6
    Member yvesmazzon's Avatar
    Join Date
    Jul 2006
    Posts
    213
    Thumbs Up
    Received: 6
    Given: 34
    Total Downloaded
    11.21 GB

    0 Not allowed!

    Default Re: Inverting PWM duty time

    Thanks Joesaliba,
    Simple and elegant solution
    Yves

  • 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. 8bit PWM duty cycle adjust
      By Tim in forum Proton Plus Compiler v3
      Replies: 1
      Last Post: 9th March 2018, 08:27
    2. PIC16F1575 - PWM Output with Variabe Duty Cycle
      By gdesantis in forum Capture Compare / PWM Modules and Enhanced versions
      Replies: 0
      Last Post: 25th April 2016, 02:08
    3. Fast PWM Duty Register update problem -18F25k22
      By xldaedalus in forum Capture Compare / PWM Modules and Enhanced versions
      Replies: 8
      Last Post: 28th August 2015, 14:21
    4. [SOLVED !] PWM duty cycle adjustment
      By inspired in forum Proton Plus Compiler v3
      Replies: 18
      Last Post: 17th December 2009, 00:31
    5. REad PWM/Duty
      By chuckieboy in forum The Lounge
      Replies: 5
      Last Post: 16th November 2007, 16:03

    Members who have read this thread : 29

    Actions :  (Set Date)

    You do not have permission to view the list of names.

    Tags for this Thread

    Posting Permissions

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