Electronic – For connecting two micro which one is better, UART or RS232

microcontrollerpicrs232uart

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?

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.