PC Based 1 Communication Protocols - 2024-25 - Report
PC Based 1 Communication Protocols - 2024-25 - Report
PC Based 1 Communication Protocols - 2024-25 - Report
Protocols
Parallel Communication
Serial Communication
Classification of
Communication Protocols
According to communication medium:
Wired
Wireless
According to channel:
Simplex: data sent in one direction only.
Half duplex: two-way transfer, but only in one direction at a time
Full duplex: send and receive data simultaneously.
Classification of Communication
Protocols
According to synchronization:
Synchronous (SPI – I2C):
In synchronous communication, both the
transmitter and receiver share a common
clock. Thus, one line is assigned to the
clock.
Asynchronous (UART)
Definitions
Bit Rate bit/Sec --- bits transmitted in one sec
Buad Rate Baud/Sec --- signal transmitted in
one sec
Most Cases
1 Baud = 1 Bit
Frame
Protocol
The RS 232
RS-232: Recommended Standard 232
communications.
Connecting two microcontrollers
(µC)
By the same way.
12
Connecting a PC to a
µC
• This case is more difficult because The RS 232 logic levels
are different from the (TTL 0&5V) levels.
14
USB to TTL Converter
Tx and Rx must agree on:
16
Numerical Example
Assume that the bit rate is 9600 bit/sec (bps). Find the time
interval of one bit. How many bytes can be sent in one second if
there is one start and one stop bits?
Answer:
18
Report:
Serial Read and
Write?