Electronic Communication
Fleeting- see,
UART vs RS232
- External reference: https://barenakedembedded.com/uart-vs-rs232/ UART vs RS232
UART or Universal Asynchronous Receiver Transmitter, is a hardware module that allows for serial communication between devices
Serial communication is a stream of bits that are transmitted or received on a single wire, one bit at a time
Since both devices share the same baud rate, no clock signal needs to be shared between devices
majority of microcontrollers work between 0V and Vcc with Vcc being 3.3V or 5V. These voltage levels are called TTL (Transistor-Transistor Logic) representing 0V as a logic 0 and Vcc as a logic 1.
UARTs that are output on a microcontroller’s pins use TTL to differentiate between a 0 or a 1 while sending or receiving data.
RS232 (Recommended Standard 232) is just a standard that defines what voltage levels should specify a logic 0 or logic 1 in UART serial communication.
Instead of using TTL, RS232 defines a logic 0 as a voltage between +3V and +15V, and logic 1 as a voltage between -3V and -25V.
trying to read RS232 directly out of a microcontroller will not work.
FTDI (Future Technologies Devices International) has an extremely popular chipset, the FT232R, which acts as a UART to USB converter.
converts a UART at TTL to USB protocol which can be read by your computer USB port
USB Bridge ICs - FTDI
-
External reference: https://ftdichip.com/usb-bridge-ics/ USB Bridge ICs - FTDI
manufacturers produce USB to UART interface chips that effortlessly change any logic-level serial signal to its USB equivalent.
benefits of using Bridge ICs include the following:
The entire USB protocol is managed on the chip. There is no requirement of USB-specific firmware programming.
The connection to a DCP (Dedicated Charging Port) USB port can be detected
overvoltage or ESD spikes on the USB bus may damage the bridge in-lieu of the microcontroller
small bridge chip is less expensive and simpler to replace than the microcontroller.
FT232 UART-USB Bridge IC, a powerful chip with a complete USB protocol stuffed within it.
Comprendre et Sélectionner en 2024 : I2C, SPI, UART Expliqués
-
External reference: https://www.parlezvoustech.com/comparaison-protocoles-communication-i2c-spi-uart/
— https://www.parlezvoustech.com/en/comparaison-protocoles-communication-i2c-spi-uart/
Characteristic I2C SPI UART Vitesse Average (up to a few Mbit/s) High (several Mbit/s to a few tens of Mbit/s) Moderate (lower than that of SPI) Complexity Moderate (2 wires, several slaves) Moderate to high (4-wire, full-duplex) Moderate (2 wires, full-duplex) Use Ideal for short-distance with multiple devices Perfect for fast data transfers Suitable for simple, long-distance serial comms Duplex Half-duplex (not simultaneous) Full-duplex (simultaneous) Full-duplex (simultaneous) — https://www.parlezvoustech.com/en/comparaison-protocoles-communication-i2c-spi-uart/
I2C : Communication Intuitive
— https://www.parlezvoustech.com/comparaison-protocoles-communication-i2c-spi-uart/
l’I2C (Inter-Integrated Circuit)
— https://www.parlezvoustech.com/comparaison-protocoles-communication-i2c-spi-uart/
SPI : Haute Vitesse et Efficacité
— https://www.parlezvoustech.com/comparaison-protocoles-communication-i2c-spi-uart/
SPI (Serial Peripheral Interface)
— https://www.parlezvoustech.com/comparaison-protocoles-communication-i2c-spi-uart/
Malgré sa simplicité et rapidité, le SPI nécessite plus de broches que l’I2C, ce qui peut être un facteur à considérer dans la conception de circuits.
— https://www.parlezvoustech.com/comparaison-protocoles-communication-i2c-spi-uart/
UART : La Solution Universelle
— https://www.parlezvoustech.com/comparaison-protocoles-communication-i2c-spi-uart/
L’UART (Universal Asynchronous Receiver/Transmitter)
— https://www.parlezvoustech.com/comparaison-protocoles-communication-i2c-spi-uart/
Contrairement à l’I2C et au SPI, l’UART ne nécessite que deux fils pour fonctionner : TX (transmission) et RX (réception)
— https://www.parlezvoustech.com/comparaison-protocoles-communication-i2c-spi-uart/
Baud Rate : Le taux de baud, qui mesure la vitesse de transfert de données, doit être approximativement le même pour les deux UARTs. Les taux de baud les plus courants sont 9600, 19200, 38400, 57600 et 115200 bits par seconde. La différence de taux de baud entre les deux UARTs ne doit pas dépasser 10%
— https://www.parlezvoustech.com/comparaison-protocoles-communication-i2c-spi-uart/
Vitesse de communication : SPI pour la rapidité, UART pour la flexibilité, et I2C pour les configurations moins exigeantes en vitesse.
Conception du circuit : I2C pour une gestion efficace de l’espace avec plusieurs périphériques, SPI pour la performance dans les designs plus vastes, et UART pour la simplicité et la polyvalence.
Distance et environnement de communication : UART est robuste sur de longues distances, tandis que l’I2C est mieux adapté aux distances courtes.
Exigences de duplex : SPI et UART offrent des capacités full-duplex, tandis que l’I2C est limité au half-duplex.
— https://www.parlezvoustech.com/comparaison-protocoles-communication-i2c-spi-uart/