30 PWM outputs on one chip?


Results 1 to 5 of 5

Threaded View

  1. #1
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429

    Default 30 PWM outputs on one chip?

    I've got a 40-pin PIC that I would like to use 30 of the i/o pins as pwm outputs in order to drive 10 RGB LEDs. I would be using a frequency 60Hz for all and an 8-bit resolution on the duty cycle.

    My thought is to use a timer interrupt of 60*256=15360Hz and have the interrupt for it set each output according to its individual duty cycle value.

    I realise that this will be processor intensive, but I am planning on having 6 of these for a total of 180 PWM outputs all controlled by a main master PIC which will do most of the processing and simply send the duty cycle values to the other PICs.

    Can anyone see any problems with this?

    One thing I have thought of is the current - unless i have a transistor on each output i will only be able to draw about 6.7mA per output due to the PIC's max current sink/source of 200mA.

    Alternately, does anyone have any better ideas on how to drive 60 RGB LEDs?
    Last edited by Kamikaze47; - 24th September 2009 at 07:28.
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

Similar Threads

  1. 12F683 2 x PWM Outputs
    By retepsnikrep in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 23rd July 2021, 20:20
  2. DMX512 Reception + 3 * 8-Bit PWM Outputs
    By JEC in forum Code Examples
    Replies: 5
    Last Post: - 16th February 2015, 15:21
  3. Half-bridge PWM with a 16F684 ?
    By Byte_Butcher in forum General
    Replies: 7
    Last Post: - 17th January 2010, 22:18
  4. Variable PWM PIC18F2431
    By trr1985 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th June 2009, 06:03
  5. Multiplexing PWM pin with other outputs
    By bcd in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 19th September 2006, 11:24

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