16-48 pin Multi slow PWM


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2007
    Posts
    50

    Default 16-48 pin Multi slow PWM

    Hello Everyone,

    Finally, after reading dozens of posts I have gotten the configuration fuses and MPASM working for my 18F migration. WOW three months ago I was using basic stamps, what a great help this forum has been.

    I have seen several commercial products using a single PIC18F to do up to 48 channels of PWM for controlling RGB LEDs. I would really like to try this. I really only need 16 channels but would love to know how 48 channels is accomplished. I have looked at Darrel’s Multi SPWM and think it is really cool but do not believe you could do 48 channels at 100 cycles per second and still have the horsepower to decode DMX on a single chip. In Microchip application note AN1074 the author shows a method of using a common leading edge and common frequency software PWM with different duty cycles. The example is for three channels. I am not ready to try a assembly project like this yet as I just starting to get comfortable with PBP. I am wondering if anyone has employed a similar method in PBP, and could this be expanded to more channels.

    Microchip application note AM1074:
    http://www.microchip.com/stellent/id...pnote=en524189

    Here is the website of the product that can do an amazing 48 channels:
    http://celestialaudio.com/dmx_led/index.html

    Everything I read about software PWM leads me to believe that 48 channels is quite an accomplishment.

    Thank You for your time.
    Best Regards,

    Kurt A. Kroh
    KrohTech

    “Goodbye and thanks for all the fish”

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    To my knowledge, 48 simultaneous PWMs at 100hz with 8-bit resolution is not possible using a single PIC.

    However, that many channels using BAM (bit angle modulation) instead of PWM is very possible. Might even have time left for the DMX reception.

    Bit Angle Modulation (BAM) in a PIC
    http://www.picbasic.co.uk/forum/showthread.php?t=7393
    <br>
    DT

  3. #3
    Join Date
    Sep 2007
    Posts
    50


    Did you find this post helpful? Yes | No

    Default BAM in PBP?

    Thanks Darrel

    That’s very interesting, how is BAM coded in PBP?
    Best Regards,

    Kurt A. Kroh
    KrohTech

    “Goodbye and thanks for all the fish”

  4. #4
    Join Date
    Mar 2009
    Posts
    19


    Did you find this post helpful? Yes | No

    Default i can do it

    Quote Originally Posted by Darrel Taylor View Post
    To my knowledge, 48 simultaneous PWMs at 100hz with 8-bit resolution is not possible using a single PIC.

    However, that many channels using BAM (bit angle modulation) instead of PWM is very possible. Might even have time left for the DMX reception.

    Bit Angle Modulation (BAM) in a PIC
    http://www.picbasic.co.uk/forum/showthread.php?t=7393
    <br>
    see here:http://www.seachip.com.cn/product.files/SC-DMX-48D.htm

    i can get the 100Hz 8 bit pwm at least.

Similar Threads

  1. 16 bit PWM using CCP1
    By Normnet in forum mel PIC BASIC Pro
    Replies: 60
    Last Post: - 27th August 2014, 08:13
  2. Multi Slow speed PWM and Instant Interrupts
    By DaveC3 in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 2nd November 2010, 12:50
  3. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  4. Another RTC, DS1287
    By DavidK in forum Code Examples
    Replies: 0
    Last Post: - 12th December 2006, 17:07
  5. Multi slow speed PWM
    By willem in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 14th August 2006, 07:51

Members who have read this thread : 1

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