18F4431 - Complementary mode PWM


Results 1 to 13 of 13

Threaded View

  1. #5
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    If you set a fixed duty cycle of 50% it should work pretty much the same in either mode.

    But if you're going to cycle through changing the duty cycle, you're better off using it with
    independent mode for driving LEDs.

    Look at the attached graphic. Note how signal 0 & signal 1 would make it look like one LED
    was on all the time, while the other was off all the time. Complementary mode is for driving
    N channel & P channel motor drivers. It's a lot different than standard PWM.

    If the duty cycle was say 70%, one pin would be high for 70%, the other would be low for
    70% since they're complementary.

    Signals 2 & 3 are in independent mode, so the high duty cycle is the same for each pin.
    Attached Images Attached Images  
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. 18f4431; driving a stepper IN HARDWARE mode
    By DDDvvv in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st January 2010, 16:49
  2. Half-bridge PWM with a 16F684 ?
    By Byte_Butcher in forum General
    Replies: 7
    Last Post: - 17th January 2010, 22:18
  3. switch mode power supply with PWM
    By iw2fvo in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 14th July 2009, 20:51
  4. Variable PWM PIC18F2431
    By trr1985 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th June 2009, 06:03
  5. 18f4431 pwm4 and pwm 5 issues
    By lothar in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 9th April 2009, 16:48

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