timing for dmx??


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    oscar's Avatar
    oscar Guest

    Angry timing for dmx??

    hello to you all. my name is oscar and i am for want of a better word "newbie"..lol.

    i reciently purchased pbp in the hope of making a dmx512 reciever to control 3 pins that run some leds.. i have failed totally !! ..... i have tryed several commands such as serin , hserin , shiftin etc but to no avail... i think that maybe the commands take to much time to run hence the data i have tryed to recieved has long gone by the time the instruction has been completed.!!!

    is there any way that this can be done in pbp? asm is just to much for me to get my head around.!!!!!!!!!!!!
    i am using a pic 16f876a at 16mhz to set the baud rate of the usart to 250000 but i cant figure out how to decode the data stream?????

    is anyone out there genius enough lol to help me out on this pleaseeeee..

    im loosing hair at this stage.

    thank you

    oscar.

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


    Did you find this post helpful? Yes | No

    Default

    Baudrate= 250 000 Bauds sure of it?

    If so, you'll have to use the HSERIN,HSEROUT statement of PBP.

    Setting for 16MHZ crystal.
    DEFINE HSER_TXSTA 24h
    DEFINE HSER_RCSTA 90h
    DEFINE HSER_SPBRG 3

    by using a 20MHZ crystal
    DEFINE HSER_TXSTA 24h
    DEFINE HSER_RCSTA 90h
    DEFINE HSER_SPBRG 4

    Once you're able to grab data from your DMX stuff, use SERIN/SEROUT on other pins to send that data to your PC.
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default

    have a look this link

    Here
    Last edited by mister_e; - 7th May 2005 at 17:25.
    Steve

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

  4. #4
    oscar's Avatar
    oscar Guest


    Did you find this post helpful? Yes | No

    Default quick responce..

    just wanted to say thanks steve for your quick responce to my post......

    it seems like the usart is the only wat to go if i want to decode the dmx stream at 250000 hm pretty quick ...lol.. i shall start again !!!!!!!

Similar Threads

  1. 12F683 serout timing
    By Hobie Cat in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 21st December 2009, 16:57
  2. 18F2550 timing
    By sstt1976 in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 22nd August 2008, 00:30
  3. Timing inaccuracy - any ideas?
    By Optech in forum General
    Replies: 6
    Last Post: - 7th February 2008, 09:37
  4. Timing different events on PBC vs. PBP
    By Rifraf in forum General
    Replies: 4
    Last Post: - 5th December 2007, 22:45
  5. HSEROUT buffering and timing - 16F88
    By picster in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 5th March 2006, 17:52

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