EasyManuals Logo

STMicroelectronics STM8 User Manual

STMicroelectronics STM8
126 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #98 background imageLoading...
Page #98 background image
Communication Overview
STM8 microcontrollers are packed with several communication interfaces. These interfaces are
needed to communicate with external devices like sensors, actuators, drives, etc. The most commonly
used ones are Serial Communication (UART), Serial Peripheral Interface (SPI) and Inter-Integrated
Circuit (I2C). There are also other additional more robust communication interfaces like Controller
Area Network (CAN), Local Interconnect Network (LIN), Infrared Data Association (IrDA) and RS-485.
The latter communications will not be discussed here in this article and are kept for future issues.
These are methods are, however, not frequently used and are special forms of communications. For
example, CAN and LIN are mostly used in automotive industries. Each method communication has its
own advantages and disadvantages. Here we’ll see the individual basics of various methods of
communications.
Comm.
Description
I/O
Max.
Speed
Max.
Distance
Max. Possible Number
of Devices in a Bus
UART
Asynchronous serial point-to-
point communication
2
115.2kbps
15m
2 (Point-to-Point)
SPI
Short-range synchronous
master-slave serial
communication
3/4
4Mbps
0.1m
Virtually unlimited
I2C
Synchronous master-slave serial
communication using one data
and one clock line
2
1Mbps
0.5m
127
RS-485
Asynchronous single master
differential 2 wire serial
communication
2
115.2kbps
1.2km
Several
CAN
Differential communication with
multi-master support
2
1Mbps
5km
Several
LIN
Asynchronous 2 wire serial
communication similar to UART
2
20kbps
40m
Several
IrDA
Wireless serial communication
using infrared medium
2
115.2kbps
<1m
2 (Point-to-Point)
In STM8 microcontrollers, LIN, IrDA, RS-485 and UART all share the UART hardware peripheral. For
other communications, there are dedicated separate hardware. We will now be exploring the basic
ones here.

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the STMicroelectronics STM8 and is the answer not in the manual?

STMicroelectronics STM8 Specifications

General IconGeneral
BrandSTMicroelectronics
ModelSTM8
CategoryMicrocontrollers
LanguageEnglish

Related product manuals