PWM conflict


Results 1 to 8 of 8

Thread: PWM conflict

Threaded View

  1. #5
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    Hello Srig,

    Srig>>Hi Dwayne, Thanks for your reply. Here is the thing. when I only try to control one of the LED with PWM to turns it on and off smoothly and the program works fine.. but when I try to control two of them at the same time.. I am noticing flickering and not getting what I wanted. I dont know why this is the case. I konw I have the code fine with compliance with PBP. Can anyone help me with some answers.. thanksss in <<

    Ok, this explains everything.... Remember when I said in a Software PWM, you must wait until the entire command is done? What you are doing, is switching between two LED's and because of the time it takes to switch, you are getting this "Flickering" effect. In other words the Software PWM can Probably only handle 1 LCD at a time on the "Fade" effect.

    If you had a hardware PWM, you would have no probems at all. Hardware PWMS operate continuosly, while your chip does other things. Thus, while your chip is switching loops, Jumping around in the program, your PWM is still outputting a continuous stream of Pulses. (Software PWM can't do this).

    You *may* be able to adjust your "Cycle" to make the "Flickering" less noticeable", but between your Duty Cycle and your Cycling, it may be difficult to remove this "Flicker" to the eye using two LCD's... and the problem compounds itself, the more Pins you use to simulate a Software PWM...

    Dwayne

    Dwayne
    Last edited by Dwayne; - 31st August 2004 at 20:52.
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

Similar Threads

  1. Half-bridge PWM with a 16F684 ?
    By Byte_Butcher in forum General
    Replies: 7
    Last Post: - 17th January 2010, 22:18
  2. Variable PWM PIC18F2431
    By trr1985 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th June 2009, 06:03
  3. PWM 'channels ...what's that all about then!
    By HankMcSpank in forum General
    Replies: 5
    Last Post: - 23rd April 2009, 16:49
  4. PWM setting PIC16F887
    By Gevo in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 12th June 2008, 07:24
  5. Tidying Up PWM Routine
    By Tissy in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st February 2005, 00:26

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