DMX512 Problem ..Schema+Code


Closed Thread
Results 1 to 22 of 22

Hybrid View

  1. #1
    Join Date
    Feb 2007
    Posts
    12


    Did you find this post helpful? Yes | No

    Default Dmx Problem

    sorrry i forgot it to say,
    i use microcode studio and Pbp 2,47
    and as a pic16f628A and 20Mhz

    DEFINE OSC 20
    DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
    DEFINE HSER_TXSTA 24h ' Enable transmit, BRGH = 1
    DEFINE HSER_CLROERR 1 ' Clear overflow automatically
    'DEFINE HSER_SPBRG 129
    DEFINE HSER_BAUD 250000


    many peoples say that it is impossible to receive dmx512 in pbp.i dont know it is true or not? and i see that usart interputs is very big problem to receive 512dmx.

    is it possible to receive dmx512 in 250000 baudrate?

    can you make a code example to me how can i use Hserin command to receive dmx512. you can see my schema that what i want to make i have 3 chanel on my devices and i will make intensty control

    0 -255 data = %0 -%100 intentsy
    Last edited by programmer07; - 1st March 2007 at 15:23. Reason: Forgot

  2. #2
    Join Date
    Feb 2007
    Posts
    12


    Did you find this post helpful? Yes | No

    Default Dmx Problem

    Dear mister_e thanks for you help you have said me so;
    but they say that it is impossible to receive dmx in pbp code cause of usart interputs
    is it true?

    but can you send an example here how to receive dmx512 with "hserin" command?
    you can look my schema and say cause i have 9 dip on my schema and it is with 3 leds (3 chanel adress).and i must make intensty for my leds

    0-255 = %0 - %100 intensty for each led.
    --------------------------------------------------------------------------------

    DMX baudrate is 250 000 Baud, 9600 will never ever work.

    AND as you dont use any HSERIN/HSEROUT, the DEFINE HSER_xxx are useless. You need to write the right value directly to the SPBRG, RCSTA, TXSTA register

    AND @4MHZ... good luck to have a reliable 250K baud serial comm. 12MHZ and up will work.
    -------------------------------------------------------------------------

Similar Threads

  1. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 9th December 2008, 00:40
  2. 16f887 44 pin demo board code problem?
    By jessey in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 7th December 2008, 15:17
  3. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 09:26
  4. 4 Chanel Dmx512 ready assembly code to PBP ?
    By syscoder in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 22nd March 2007, 00:55
  5. Code problem
    By chai98a in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 20th May 2006, 05:43

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