Dmx Solved !!!!!!!


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    oscar's Avatar
    oscar Guest


    Did you find this post helpful? Yes | No

    Default im blind !

    hiya bruce thanx for the reply...
    i have been on the microchip site n secrched the 16f7 series. i cant seem to find a chip with more than 2 comparators/pwm channels...

    do you have a specific chip num please?
    thank's.

    oscar

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    I don't know of any 16F series with more than 2 comparators, but
    the 16F737, 747, 767 and 777 all have 3 PWM channels.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3
    oscar's Avatar
    oscar Guest


    Did you find this post helpful? Yes | No

    Thumbs up thanks bruce..

    thanx for the info bruce. ur a star !!!!!!!!

    found just what i wanted n seems as if the code should be compatible enough.

  4. #4
    Join Date
    Feb 2003
    Location
    Sydney, Australia
    Posts
    126


    Did you find this post helpful? Yes | No

    Smile DMX PIC Code

    Could you share your code - I'd be very interested !!

    Thanks,
    Bill

  5. #5
    Join Date
    Jun 2005
    Posts
    20


    Did you find this post helpful? Yes | No

    Default Re: DMX Solved!

    I would love to see your code on that-- that very problem (DMX in PICBasic only) has been plaguing me for years and I've never had the time on a project to sit down and figure it out. Seeing your code would be immensely helpful! Also, I have a subroutine implemented as inline assembler that you might find helpful-- it does 8 simultaneous channels of PWM. Let me know if you're interested!

    Thanks--

    --Alan

  6. #6
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    Yes, please post your code.

  7. #7
    Join Date
    Nov 2004
    Posts
    61


    Did you find this post helpful? Yes | No

    Default Dmx

    DMX isn't too bad if you spend a while in the datasheet. Depending on the chip you use, there are a few 'optimal' clock speeds which will allow you to send and receive zero error.

    It's just asynchronous serial @ 250 kbaud.

    I've used both '628s @ 20MHz and F88 chips @ 16Mhz, both transmitting and receiving.

    Just receive through an appropriate level shifting chip (MAX485, SN75176 or similar).

    The first thing I do is watch for the 'break' signal. PULSIN works remarkably well for this. I set a reasonable timeout duration and just keep watching for that 80 uS minimum break period.

    Then, I use a WHILE RCIF = 0 : WEND loop to sit there and wait for something else to come through the USART.

    Once I've found a valid break, the next byte is the start code. For dimmers, it should be zero.

    Then I just increment a counter each time a byte comes through and when I've received what I want, I exit the loop.

    I've not ever tried to implement a full interrupt based receiving system, as my other housekeeping code was fairly lightweight. However, it shouldn't be hard to do in theory.

    Transmitting is almost the same: just generate a 'break' signal (I like 120 uS), send out a zero byte and then however many bytes of channel data you need. With tight code, I can output 512 channels @ almost 40 Hz...

    John

Similar Threads

  1. DMX receive issue
    By NoahLD in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 27th August 2014, 14:51
  2. Simple 4 channel DMX controller
    By eggman in forum Code Examples
    Replies: 19
    Last Post: - 18th July 2012, 02:40
  3. Dmx
    By electronicsuk in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 15th November 2008, 08:56
  4. Big Problem in PBP To receive DMX
    By programmer07 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 4th March 2007, 19:49
  5. DMX & PicBasic coding problem
    By magicmarty in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 20th September 2004, 16:35

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