Darrel's Multiple Software PWM


Results 1 to 11 of 11

Threaded View

  1. #5
    Join Date
    May 2007
    Posts
    66


    Did you find this post helpful? Yes | No

    Default

    Steve

    Thank you for pointing me in the right direction!

    I just realized that Darrel's code is a slow SPWM and cannot handle high frequencies (e.g. up to 20KHz).

    I would like to generate two frequencies simultaneously where the one is a
    multiple of the other, e.g Freq 1 = 10 kHz, Freq 2 = 20KHz
    I do not need to vary the duty cycle. I only need a duty cycle of 50%, thus
    either on or off.

    Darrel's code would have been perfect if it could handle higher frequencies.

    I cannot use the hardware PWM because all PICs with multiple PWM outputs that I know of, share the same timebase.
    Thus the frequency must be the same on all the outputs, but the duty cycles are individually controllable. I don't know of a PIC that's an exception

    In short, I am looking for a software PWM that is capable of handling 2 different frequencies simultaneously, where each frequency may vary up to 20KHz. I have looked everywhere but could not find any example code to this.

    I will appreciate any help or suggestions.
    Last edited by passion1; - 31st May 2007 at 08:16.

Similar Threads

  1. Software PWM
    By muqasim in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th December 2009, 15:21
  2. Software PWM using Timer1
    By muqasim in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th December 2009, 12:49
  3. Variable PWM PIC18F2431
    By trr1985 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th June 2009, 07:03
  4. Variable PWM on 2 Channels using software.
    By Tissy in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd September 2006, 02:34
  5. Software PWM Problems
    By surfer0815 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 28th November 2005, 14:53

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