Synchronous and Asynchronous Serial Communication Flashcards

1
Q

What is the basic definition of asynchronous serial communication?

A

Sender doesn’t provide a clock
Transfer managed by UART (universal asynchronous receiver transmitter)
Both ends must apply same message protocol

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

What is the baud rate?

A

No. symbols sent per second
bit rate > baud rate

1 symbol can represent multiple bits
simplest form is 1 symbol = 1 bit (0 or 1)

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

What is the format of a message?

A
Baud rate
1 start bit
5-9 data bits
Parity bit (none, odd, even)
1-2 stop bits

e.g. 9600 8-N-1

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

What is the parity bit?

A

Used to determine whether a message has been transmitted/received correctly.

Counts the no. 1s in a message and adds a 1 to make the count either odd or even (depending on protocol chosen)

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

What is a UART and how does it work?

A

Universal Asynchronous Receiver Transmitter

Exchanges parallel data with a data bus and converts to/from serial form.

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

What are the 5 challenges of busses?

A
Maintaining synchronisation
Differentiating between valid bits and an idle line
Knowing the intended recipient
Message collisions
Establishing priority
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Describe serial peripheral interface

A

Shift registers form a circular buffer

Data can be transmitted in either direction using MISO and MOSI pins

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

How is a message transmitted using SPI?

A

The master sends a request and activates the clock for enough cycles for the slave to transfer

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

How does SPI deal with multiple slaves?

A

The master will have a slave select pin for each slave
OR
All slaves are daisy-chained and all slaves participate in all transactions

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

What are the advantages and disadvantages of SPI?

A
\+ full duplex
\+ simple
\+ good for high data connections
- requires 3+n pins for n slaves
- multi-master is awkward
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Describe inter integrated circuit

A

Two wires, the serial data line (SDA) and serial clock line (SCL) are required.
Devices can drive a zero onto the wire, when no devices are driving the wire is high

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

How are messages transmitted using I2C?

A

The master sends the slave’s address with a read/write bit.
For every 8 bits sent an ACK must be returned

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

How are the lines effected by sending a message using I2C?

A

start (SDA high -> low, SCL high)
address and read/write (8 bits then ACK)
data (8 bits then ACK)
stop (SDA low -> high, SCL high)

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

How does I2C deal with multi-master?

A

Arbitration:

if a master tries to transmit a 1 and the line is low another master is transmitting and it stops sending

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

What are the advantages and disadvantages of I2C?

A
\+ ACKs mean masters know if data is received 
\+ only requires two wires
\+ multi-master is easy to implement
- low speed
- high power drain
- half duplex
- includes overheads
How well did you know this?
1
Not at all
2
3
4
5
Perfectly