Serial communication Flashcards
(38 cards)
Bit rate
Unit of measurement of number of bits processed per unit time often bps or bits
Baud rate
unit of measurement of sysmbol (symbol per second)
Endianness primarily
describes the order in which the bits are transmitted over a communicaton channel
Big endian: MSB transmitted first
Little endian: MSB transmitted last
full duplex
simultaneous data transmission and reception over one channel
half duplex
uniderectional data transmission and reception over one channel (bidirectional,
not at the same time)
Peripheral communications
it refers to the methods through which microprocessors interact with external devices or peripherals. It is vital for extending the capabilities of microprocessor
how does serial communication transmits
one at a time, sequentially
how does parallel communication transmits
Multiple bits at a time
dicuss, data tranfer, hardware, reliabilty higher clock rate of serial portcommunication
▪ Data transfer: only one bit can be transmitted at a time
▪ hardware: simple hardware, fewer wires and connectors needed. More scalable
▪ Reliability: No cross talk between wires, no clock skew as there is no need to syncronise multiple lines
▪ Higher clock rate: Increased reliabilty means serial data rates can clock faster
dicuss, data tranfer, hardware, reliabilty higher clock rate of parallel portcommunication
▪ Data transfer: multiple bits can be transmitted at once
▪ Hardware: more complex hardware as more wires and connectors needed
▪ Reliabilty: cross talk between different wires
▪ Higher clock rate: reduced reliability means parallel data rates are limited to lower frequencies
Synchronous serial communication
A common clock is shared by the receiver and transmitter, often in the form of a seperate dedicated clock line
Asynchronous serial communication
The transmitter does not need to send a clock signal. Both transmitter and receiver agree on timing parameters in advance
Full form of UART
Universal asynchronous receive transmit
UART communication do?
▪ Converts data from parallel to serial.
▪ Sequential data is transmitted along serial cable from Tx on sending
device to Rx on receiving device
▪ Receives sequential data and transforms it back into parallel data
How is serial port data transmitted
as data packets
what does each data packet contain
Each packet contains overhead bits such as start bit, stop bit(s) an optional parity bit aw well as 5 to 9 data bits
What is parity
Parity is a crude form of error detection. Thers is odd parity and even parity
Even parity
even parity bit will be logic high if there is an odd number of data logic high
Odd parity
parity will be logic high if there is data contains an even number of logic high bits to ensure a constant odd number of logic highs
what does each pack have ?
start + data + parity(optional) + stop
Can the parity check indicate where
the error occurred? Why or why not?
The parity check cannot indicate where the error occurred because it only tells you that the total number of 1’s is not as expected (i.e., the parity is wrong). It gives no information about which specific bit is in error.
What is the logic bit for start and stop bit
start is low logic bit
stop is high logic bit
what is UART sampling
▪transmitter generates data streams
▪receiver tries to sample in middle of bit period to avoid errors due to mistranslation
▪due to lack of syncronising clock, system is system is susceptible to error
what is majority voting
majority voting is a method used in asynchronous serial port communication to ensure the reliability of data transmission especially in noisy environments