HPWM with zero duty cycle on PIC18F2550


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Feb 2011
    Posts
    60


    Did you find this post helpful? Yes | No

    Default Re: HPWM with zero duty cycle on PIC18F2550

    if dutycycle left > 255 then
    dutycycleleft = 0
    endif

    Or whatever -- HPWM value must be 0 to 255.
    Last edited by SUNFLOWER; - 27th February 2014 at 02:24.

  2. #2
    Join Date
    Feb 2011
    Posts
    60


    Did you find this post helpful? Yes | No

    Default Re: HPWM with zero duty cycle on PIC18F2550

    if dutycycle left > 32777 then
    dutycycleleft = 0
    elseif dutycycle left > 255 then dutycycleleft = 255
    endif

    Or whatever -- HPWM value must be 0 to 255.

Similar Threads

  1. Duty Cycle
    By Gord11 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 29th September 2011, 09:53
  2. how to generate 83.33khz with 16.7% duty cycle?
    By donatelo in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 23rd September 2008, 18:08
  3. How can I measure Duty cycle ?
    By MaxiBoost in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 28th December 2006, 16:02
  4. PWM _ Duty Cycle in Tenths
    By rwskinner in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 17th May 2004, 13:09
  5. Duty Cycle Dilemmas
    By crankshaft in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 27th February 2003, 13:40

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