RS232 ansd RS485
pmartin
Posts: 10
Hello,
I am designing a robot controller board and would like to use the Propeller chip as the controller. Has anyone had experience with hooking up a Prop chip to an external UART for RS485, or coding a RS485 driver?
Also, does anyone know the maximum baudrate of the FullDuplexSerial driver?
Thanks!
I am designing a robot controller board and would like to use the Propeller chip as the controller. Has anyone had experience with hooking up a Prop chip to an external UART for RS485, or coding a RS485 driver?
Also, does anyone know the maximum baudrate of the FullDuplexSerial driver?
Thanks!
Comments
RS485 is a hardware standard (do a Google search on "wiki RS485"). It's normally half-duplex, but can be set up as full duplex as well. A full duplex version could be used with FullDuplexSerial. The FullDuplexSerial driver could be modified fairly easily to accomodate a half duplex connection, but that has not been done.
Please tell us more about what you are trying to do.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
BioProp: Robotics - Powered by Bioloids and controlled by the Propeller
Is this 485 driver in the object exchange?
yes the driver is in the object exchange. Again it's a standard serialdriver which you can combine with RS485, RS422, RS232
because RS485, RS422, RS232 are only different HARDWARE-specifications. RS232 uses +-12V, RS422 uses +-5V
RS485 uses +- CURRENT
the fullduplex serialdriver is the LOGICAL Level ABOVE the hardwarelevel
to make it even more clear you could connect interfaceadapters f.e. rs232 to RS485 then a RS485 to rs422 and then a RS422 to RS232 and everything will still work
as long as both sides use the same LOGICAL protocol (with or without hardwarehandshaking, 3964R XON/OFF or what ever)
the fullduplex serialdriver uses TX/RX without hardwarehandshaking
you can adjust the parameters baudrate number of databits number of stopbits and paritybits
regards
Stefan
Post Edited (StefanL38) : 3/22/2008 6:38:45 PM GMT
As Stefan said, TTL vs. RS485 is all hardware interfacing. We can do TTL with 2 resistors but RS485 requires an interface chip. The software driver is totally separate. A Bioloid specific driver is much better than using the generic full-duplex serial driver. There are links on two Bioloid forums on specific drivers for Bioloid packets using the Propeller. Read these threads for more information...
http://robosavvy.com/forum/viewtopic.php?t=1056
http://forum.crustcrawler.com/phpBB3/viewtopic.php?f=12&t=1050
The threads are somewhat intertwined but in the end I think the community will have a well designed Bioloid object.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
BioProp: Robotics - Powered by Bioloids and controlled by the Propeller