I'm trying to connect two devices which in both of them use pic micro. I am curious to select best connection solution. I can use uart for connection between them and also with helping of MAX232 rs232 connection could be used. Anyone with experience have recommendations about it? Which is better and what are their advantages and disadvantages?
Electronic – For connecting two micro which one is better, UART or RS232
microcontrollerpicrs232uart
Related Topic
- Electronic – Reading from multiple sensors and synchronizing data
- Electronic – need to use multi drop bus protocol (MDB) in vending machine and How
- Electronic – Need help with a sub-standard RS232
- PIC MCU to PC Serial Communication Problem
- Electronic – Routing one UART Tx output to multiple UART Rx using MOSFET
- Electrical – Upon setting up serial UART between two boards I can only monitor send or receive, not both, Why
Best Answer
UART
Cheaper, since you don't need any extra hardware.
EIA-232
(the name RS-232 is obsolete.) Will give you better noise-immunity, because it uses higher voltages and has lower impedance.
EIA-422
has an even better noise-immunity, thanks to the balanced signal, but unless your environment is extremely noisy (think high power electric machines, like several kW) you probably won't need it. You would need differential transceivers, and twisted wire cable.