Serial communication Flashcards

(38 cards)

1
Q

Bit rate

A

Unit of measurement of number of bits processed per unit time often bps or bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Baud rate

A

unit of measurement of sysmbol (symbol per second)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Endianness primarily

A

describes the order in which the bits are transmitted over a communicaton channel
Big endian: MSB transmitted first
Little endian: MSB transmitted last

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

full duplex

A

simultaneous data transmission and reception over one channel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

half duplex

A

uniderectional data transmission and reception over one channel (bidirectional,
not at the same time)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Peripheral communications

A

it refers to the methods through which microprocessors interact with external devices or peripherals. It is vital for extending the capabilities of microprocessor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

how does serial communication transmits

A

one at a time, sequentially

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

how does parallel communication transmits

A

Multiple bits at a time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

dicuss, data tranfer, hardware, reliabilty higher clock rate of serial portcommunication

A

▪ 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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

dicuss, data tranfer, hardware, reliabilty higher clock rate of parallel portcommunication

A

▪ 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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Synchronous serial communication

A

A common clock is shared by the receiver and transmitter, often in the form of a seperate dedicated clock line

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Asynchronous serial communication

A

The transmitter does not need to send a clock signal. Both transmitter and receiver agree on timing parameters in advance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Full form of UART

A

Universal asynchronous receive transmit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

UART communication do?

A

▪ 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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How is serial port data transmitted

A

as data packets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what does each data packet contain

A

Each packet contains overhead bits such as start bit, stop bit(s) an optional parity bit aw well as 5 to 9 data bits

17
Q

What is parity

A

Parity is a crude form of error detection. Thers is odd parity and even parity

18
Q

Even parity

A

even parity bit will be logic high if there is an odd number of data logic high

18
Q

Odd parity

A

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

19
Q

what does each pack have ?

A

start + data + parity(optional) + stop

20
Q

Can the parity check indicate where
the error occurred? Why or why not?

A

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.

21
Q

What is the logic bit for start and stop bit

A

start is low logic bit
stop is high logic bit

22
Q

what is UART sampling

A

▪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

23
Q

what is majority voting

A

majority voting is a method used in asynchronous serial port communication to ensure the reliability of data transmission especially in noisy environments

24
what principal does majority voting work on
majority voting operates on the principal of redundancy by sampling each bit multiple times at RX, the binary value that appears most often in the RX data is considered the true value of the bit
25
what does majority voting do ?
Majority voting significantly reduces the probability of bit errors due to noise BUT introduces additional complexity and latency in communication
26
Advantages of majority voting
▪ Noise immunity: can increase the likelihood of the correct bit value chosen in a noisy environment ▪ Improved reliability: Reduces risk of bit errors
27
Disadvantages of majority voting
▪ Latency: Must complete ALL sampling before deciding bit value ▪ Complexity: Requires additional logic or software for voting ▪ Not foolproof: If noise dominates entire sampling, risk of error exists
28
Transmit timing formula
Duration of single data packet is (n+3)τTX ▪ τTX is the reciprocal of the baud rate ▪ All bits sampled in the middle of bit period this can be achieved by using various methods
29
How does data transmission occur
Data transmission normally occurs under interrupt control. This frees up the processor to perform other tasks
30
What are FIFO
▪ FIFO Buffers are a type of hardware memory that stores data in queue fashion. ▪ FIFOs need to be big enough to not lose characters. FIFO depth is a key characteristic. ▪ Typically generated by leaving data where it is in memory and pointers are used to access the data. When pointers get to the end of the reserved area they need to wrap around.
31
what is the RS232
▪ RS232 is a standard describing a type of serial asynchronous communication. ▪ The standard defines connector type, pin assignments, voltage levels, max bit rate, cable length etc. ▪ There are a minimum of three pins Tx, Rx, GND with other pins used for data flow control.
32
what does USB stand for
USB – Universal Serial Bus
33
what is USB used for
▪ USB can be used to connect one microprocessor to a number of devices, limited only by load and number of address bits – typically 127 devices ▪ It can be used to supply power to connected devices
34
what is usb endpoints
Host reads and writes to a set of memory addresses that act as in/out baskets on each device called endpoints
35
what is enumeration
The control point is important for enumeration which is the process whereby a connected device is detected and configured and its list of endpoints are added to those the host can access.
36
USB communication
▪All communication initiated by the host ▪ Host controls communication timing using time intervals called frames. Time interval determined by the USB speed ▪ Each frame starts with a Start of Frame sequence ▪ Host communicates with devices during the frame – called transactions
37