Professional Documents
Culture Documents
ELEC3300 08-Series Communication
ELEC3300 08-Series Communication
Topic 8
Serial Communication and its Standard
Prof. Tim Woo
Microcontroller Structure
A/D Port
Buffering and
Serial Port Direct Memory Access
CPU
(DMA)
External Memory Port
Memory,
Interfacing to Memory,
External Interrupt Port
Memory Timing
Interrupt and applications
External Timer Port Interfacing LCD
Organization Timer and
Counter Simple I/O Port
Motor Interfacing
In this course, STM32 is used as a driving vehicle for delivering the concepts.
To be covered In progress Done
Data rate
Overheads
• Serial transmits one bit at a time over a single wire Programming Language
Communication Protocol
Physical connection (Pins assignment)
– Parallel communications Hardware devices
• transmits multiple bits over multiple wires (Microcontroller, Peripherals)
• Typical applications:
– Bits are sent over wire (TX) to terminal (or back from Physical connection (Pins assignment)
Hardware devices
terminal to computer) (Microcontroller, Peripherals)
– Half-duplex communication
• One signal wire for both transmitting and receiving TX / RX
– Simplex communication
• One signal wire for transmitting only TX
Baud rates
(Measured by number of symbols per second)
Number of bits are conveyed per symbol
Number of symbols
* In STM32, you can configure the number of stop bits as 0.5, 1, 1.5 or 2
# : STM32_Reference_Manual.pdf
RxD RxD
TxD TxD
The concepts: How is the information being transmitted in the serial communication ?
# : STM32_Reference_Manual.pdf
Example:
36 106
2400
16 USARTDIV
USARTDIV 937.5
# : STM32_Reference_Manual.pdf
• The USB was designed by the computer industry to replace the USART
serial port technology.
• The USB was designed with the following goals:
– allow many peripherals to be connected using a single standardized
interface socket
– Data-transfer rates at different versions
• A low speed (USB 1.0) rate of 1.5 Mbit/s.
• The full speed (USB 1.1) rate of 12 Mbit/s
• A high-speed (USB 2.0) rate of 480 Mbit/s
• A SuperSpeed (USB 3.0) rate of 5.0 Gbit/s
– Economical implementation
– True “plug-n-play” device support by allowing hot swapping
– Bus-powered devices.
• Robust
• System-independent devices
• Split transactions
– enhance the performance of an USB 2.0 host working with a compliant hub,
to which a collection of low/medium and high speed devices is connected.
• Technical Specifications
– Support for communication with various slow, on-board peripheral devices
that are accessed intermittently, while being extremely modest in its
hardware resource needs.
• There's no need for chip select or arbitration logic, making it cheap and
simple to implement in hardware.
• Technical Specifications
– a synchronous serial data link operates in full duplex mode.
– Multiple slave devices are allowed with individual slave select (chip
select) lines.
– SPI can also achieve significantly higher data rates than I2C. SPI-
compatible interfaces often range into the tens of megahertz
Microcontroller Structure
A/D Port
Buffering and
Serial Port Direct Memory Access
CPU
(DMA)
External Memory Port
Memory,
Interfacing to Memory,
External Interrupt Port
Memory Timing
Interrupt and applications
External Timer Port Interfacing LCD
Organization Timer and
Counter Simple I/O Port
Motor Interfacing
In this course, STM32 is used as a driving vehicle for delivering the concepts.
To be covered In progress Done