Yet Another (Sigh!) DMX-512 Post...


Closed Thread
Results 1 to 1 of 1
  1. #1
    Join Date
    Nov 2004
    Posts
    61

    Default Yet Another (Sigh!) DMX-512 Post...

    ...but this time I'm sharing.

    Code is written for a 16F688 using the internal 8 MHz oscillator.

    It receives DMX-512 and outputs 3 channels of PWM at nearly 100 Hz refresh rate. Resolution is 8 bits minus 1, or 255 states. PWM data comes from three consecutive DMX channels, and the start address can be set at compile time.

    No crystal required! The internal PLL module in the EUSART oversamples the incoming serial data string at a high enough rate that the reception is very, very stable.

    I tried like crazy to make this all work in PicBasic Pro, but even using assembly interrupts the timing wasn't working out. The PWM routine needs a 40 uS tick and it was just taking too long (even with an assembly interrupt routine) to get things done smoothly.

    Nice thing is that it compiles to just a few hundred words. The chip has 4K of space, so there's lots of room for expansion.

    This is my first-ever 100% assembly program, so there may be some rough edges in the code.

    Anyway, I just wanted to say thanks to all the friendly and helpful people who post here. I've lurked since 2004 and learned a great deal. Your generosity and wisdom are invaluable.

    Source code, schematics & more can be found here:

    http://www.response-box.com/rgblights

    Comments and suggestions are always appreciated.

    - JEC
    Last edited by JEC; - 25th June 2007 at 06:51.

Similar Threads

  1. Simple 4 channel DMX controller
    By eggman in forum Code Examples
    Replies: 19
    Last Post: - 18th July 2012, 01:40
  2. Replies: 1
    Last Post: - 8th February 2009, 19:29
  3. Dmx
    By electronicsuk in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 15th November 2008, 07:56
  4. Big Problem in PBP To receive DMX
    By programmer07 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 4th March 2007, 18:49
  5. DMX & PicBasic coding problem
    By magicmarty in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 20th September 2004, 15:35

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