All courses › Embedded Systems and Instrumentation › Serial Communication
Serial Communication
UART, SPI and I2C are the most common serial protocols between a microcontroller and external devices. UART is asynchronous with no shared clock and uses start and stop bits; SPI is synchronous with a shared clock and no start/stop bits; I2C uses just two lines with open-drain outputs and requires pull-up resistors.
throughput for SPI (no start/stop bits)
Symbols
| clock frequency of the SPI bus | Hz |
Example
SPI clock MHz:
Throughput bytes/s.
UART has start and stop bits, SPI and I2C normally do not – count the right number of bits per transfer.
Practise microcontrollers for free →
← PWM · Accuracy and Precision →
Part of Embedded Systems and Instrumentation: Microcontrollers.