PIC and MAX232 in/out


Closed Thread
Results 1 to 11 of 11

Hybrid View

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

    Default

    Usually DMX will use something like a 75176. Open the datasheet, and see how you could trick it.

    But MAX232 is really not what you need to use to meet the real DMX protocol/requirement.
    Steve

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

  2. #2
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697

    Default

    Sorry if i wasnt clear. Im just using DMX wires. The actual circuits will use RS232

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

    Default

    Depending your baudrate and if you need interrupt, SERIN/DEBUG/SERIN2 may have their advantages.

    HSERIN's timeout could be handy in this case. You send data, next line is a HSERIN if the timeout happen, you do something else.

    Maybe i need another coffee
    Steve

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

  4. #4
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697

    Default

    Yes i do need interrupts. Im going to add PWM to this version. Im making sure i have the correct pin connected to the diodes for zero crossing this time too.

    The baud rate will be standard 9600 although im going to try and speed it up a bit. Ill think about that later though

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default

    Maybe need RS485 if you have multiple drops. And yes, you will need the converter if you use the hardware pins. But like MisterE said , lots of options.
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697

    Default

    I have been reading about RS485. It looks like i need a special converter between my PC and the chips (RS232 > RS485 converter). Would it just be easier to continue with RS232 but not allow any of the PICs to act as a master? If im going to need extra hardware to RS485 anyway then i might aswell have a small box that acts as the master. Thinking about it this might be the best way

  7. #7
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default

    With RS485 you would need a driver chip at both ends.

    The other good thing about 485 over 232 is the 485 can handle longer distances with more reliability. If you do go this way and do not need multiple drops, RS422 is good.

    As far as the best way to go for you system is hard to say. I do not fully understand your system and what you want it to do.

    Just giving suggestions
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Direct PIC to PC without MAX232
    By acjacques in forum Serial
    Replies: 14
    Last Post: - 23rd October 2014, 22:32
  2. Interface Pic --> Max232 --> GSM Modem
    By SangkiMangki in forum GSM
    Replies: 1
    Last Post: - 28th September 2013, 13:57
  3. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 11:00
  4. Reading PIC serout in hyperterminal
    By financecatalyst in forum Schematics
    Replies: 5
    Last Post: - 22nd October 2009, 16:13
  5. help my bluetooth and PIC 16F877A?
    By slimpeng in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th March 2008, 07: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