DMX receive issue


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    If you use DEFINE, you need to use HSERIN/HSEROUT unless, there's no big chance that your USART will be configured properly. However, with DMX, you want to stay away of HSERIN... so you'll need to manually configure the USART registerS manually. RCSTA, SPBRG, TXSTA.

    Next thing... there's several method to detect the DMX break and the start code.. pulsin MAY work.. but usually detecting a framing error is more valuable. There's a few Appnote on Microchip website about that. The one I remember of is AN1076.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Nov 2004
    Posts
    61


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    If you use DEFINE, you need to use HSERIN/HSEROUT unless, there's no big chance that your USART will be configured properly. However, with DMX, you want to stay away of HSERIN... so you'll need to manually configure the USART registerS manually. RCSTA, SPBRG, TXSTA.

    Next thing... there's several method to detect the DMX break and the start code.. pulsin MAY work.. but usually detecting a framing error is more valuable. There's a few Appnote on Microchip website about that. The one I remember of is AN1076.
    Agreed on all counts. HSERIN won't work very well for what you're trying to do.

    Many ways to skin this particular cat, and PBP's access to the processor's registers makes this easy.

Similar Threads

  1. Simple 4 channel DMX controller
    By eggman in forum Code Examples
    Replies: 19
    Last Post: - 18th July 2012, 02:40
  2. Dmx
    By electronicsuk in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 15th November 2008, 08:56
  3. DMX on 250000 baud receive
    By syscoder in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 19th November 2007, 10:50
  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. 18F1320 ... Strange Memory
    By Acetronics2 in forum mel PIC BASIC Pro
    Replies: 43
    Last Post: - 9th April 2006, 10:55

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