Shop OBEX P1 Docs P2 Docs Learn Events
Max 485? — Parallax Forums

Max 485?

electromanjelectromanj Posts: 270
edited 2014-01-27 09:46 in Propeller 1
Hello.

I have a project that uses a TTL to 485 converter. I have spent more then enough time tracking down open connections on the current converter. Project: VB.net <-> Xbee <-> <-> Xbee <-> Custom Prop board <-> TTL-485 converter <-> VFD. With so many components there is quite a few things to check when communications fail. The most frustrating thing is when the failure is a poorly soldered connection on the ttl to 485 converter DB9 to terminal block connector! I am happy to accept that I have a fault in my code, but when I spend time trying to correct the timing between different entities, and find that a commercial product was not soldered correctly is the reason for my problem... My.Settings.traVis = frustrated.

I did a continuity test on the 485 connector and found the +5 connection open. Here are a few photos after I cut the rubber off of the connector, and a photo of a working unit.

I remember seeing many posts about the Max232 chip here and was wondering if there is an equivalent recommended chip for Propeller to RS 485? I am working on a complete revision to a custom board, and would like to have 485 conversion directly on the PCB.

Thank you very much.

traVis.
1024 x 768 - 90K
1024 x 768 - 67K
1024 x 768 - 76K

Comments

  • jmgjmg Posts: 15,173
    edited 2014-01-26 14:15
    There are some MAX232 derivatives that do both RS485 and RS232, then you can cover all choices in one design
    Check Maxim, Linear, and Intersil ?
    (This probably is not a Prop2 question, but a General one)
  • TubularTubular Posts: 4,703
    edited 2014-01-26 15:46
    As jmg says you'd probably get a better response in the general forum. But for prop1 i've been happy with ADM3483 and family
  • electromanjelectromanj Posts: 270
    edited 2014-01-26 17:54
    Whoops! meant to post this in the Prop 1 forum. Little help from the mods?

    Thanks.

    P.S. I am however, proud to have my first post in a Prop2 thread!
  • PublisonPublison Posts: 12,366
    edited 2014-01-27 03:43
    Thread moved to Prop 1.

    Jim
  • Mark_TMark_T Posts: 1,981
    edited 2014-01-27 07:27
    I've used the SN65176 before, it needs 5V supply of course but the logic inputs are TTL compatible (0.8, 2.4V thresholds) and the
    logic output on receive can be safely schottky-clamped to 3.3V rail as it can only source a few mA above 3V. Well from
    what I make of Figure 11 in the datasheet: http://www.farnell.com/datasheets/1718787.pdf
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2014-01-27 08:01
    The MAX485 is a Maxim product. It is for RS422-RS485 asynchronous serial.

    RS422/RS485 were intended to replace RS232 as these drivers provide longer distances with greater noise immunity. But to do full-duplex, you nee 4 wires in two twisted pairs.

    I believe the MAX485 is a transceiver that will switch back and forth between send and receive over one twisted pair. There are chips that can be powered by 5v or by 3.3v.

    At first, it may seem handy to just have one twisted pair; but for most duplex use, the 4 wire, 2 twisted pair set up is superior and closer to what you expect from RS232.

    MAX1487-MAX491.pdf

    Here is a PDF of the Maxim product line. The SNxxxxx devices also include RS232 and RS422/485 drivers, receivers, and transceivers. Be very care to get the right part number for the right use.

    If you go to Futurlec.com, they have a nice catalog with PDFs for all these devices. It will save a lot of poking around.
  • Tracy AllenTracy Allen Posts: 6,664
    edited 2014-01-27 08:40
    I recommend the LTC2862. Operation from 3V to 5V, +/-25V common mode range, and Linear Tech goes the extra mile for fault and esd protection. That is the half-duplex version. LTC2863-LTC2865 are full duplex.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2014-01-27 09:46
    Wondering why I am so biased toward setting up a 4 wire full duplex... even if you have a half-duplex device at one end?

    These half duplex transceiver devices must know when to listen and when to transmit. That adds an extra layer of complexity to both the programing and the construction. You need at least one extra i/o to toggle the send/listen feature. And you need to design your connection protocol as a Master/Slave. Only one device can really decide when communications should start. And with only one twisted pair, transmission collisions are possible.

    In a 4 wire scheme, a half-duplex device (like a BasicStamp2) can connect to a full-duplex device (like a PC) and still get the attention of the PC while it is trying to send to the BasicStamp2. It may be a bit sloppy, but something gets through.

    If you have a remote device that must send messages without a request from the PC, such as an alarm message; having the 4 wire full-duplex is important. You would need two MAX485 chips to make a full duplex and one would be permanently locked in received while the other is permanently locked in transmit. It can be done that way. Or you can buy another chip that provides for full-duplex.

    In sum, when in doubt... buy RS422 full-duplex adapters and chips, not the RS485 half-duplex chips. Canbus ins about the only setup that uses the RS485 half-duplex well.
Sign In or Register to comment.