Shop OBEX P1 Docs P2 Docs Learn Events
rs485 comunication — Parallax Forums

rs485 comunication

AHMET AKSUAHMET AKSU Posts: 62
edited 2007-12-11 16:39 in Propeller 1
· I have a project abaut prop and sx48.I want to make a half dublex rs485 comunication betwen one master prop and 20 sx48 .the comunication distance betwen master prop and 20 slave sx is 20 meter.is sn75176 suitable . can I use fullduplexserial object to do that.·

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-12-11 15:43
    You could use FullDuplexSerial in a half duplex way. You will have to add a routine to wait for all output to finish before switching directions. Have a look at the version of FullDuplexSerial that's included with the uOLED-96-Basic in the Object Exchange. This has a txflush method that you could copy. You need an additional wait time to allow the last character to actually be transmitted (use 10 bit times ... at 9600 Baud, that's about a millisecond). Don't forget that transmitted characters will be echoed and you'll need to remove them from the receive buffer. There's a mode option that will do that for you.
  • AHMET AKSUAHMET AKSU Posts: 62
    edited 2007-12-11 16:39
    thanks Mike Green .Iwill look that
Sign In or Register to comment.