Serial Communication (UART)
Serial communication is perhaps the mostly-used classic communication method for interfacing a PC
or other machines with a micro. With just two wire, we can achieve a full-duplex point-to-point
communication. Owing to its simplicity and wide usage, it is the communication interface backbone
that is used with GSM modems, RF modules, Bluetooth devices like RN-52, Wi-Fi devices like the
popular ESP8266, etc. It is also widely used in industries. Other communications rely on it, for example,
RS-485, LIN, etc.
Most STM8s have at least one UART module. Some have more than one. Different UARTs have
different features as shown:
To learn more about UART visit the following link:
https://learn.mikroe.com/uart-serial-communication/
The UARTs of STM8 micros are so robust and packed with so many features that it is quite impossible
to explain them all in this one article. Here we will explore the basic serial communication only. LIN
and IRDA will hopefully be covered in future articles.