Communication Flashcards

UART, SPI, I^2C, CAN

1
Q

What do two conductors isolated from each other form

A

A Capacitor

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

What does the Capacitive Reactance Formula imply about capacitors

A

That capacitors act as resistors, and at higher frequencys this resistance is higher

For embedded communication, this means that higher frequencies will result in more degradation in the signal

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

If the quantification of information is entropy, how can we measure the information content of a message

A

We can measure the surprise value of the message

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

Parallel preceded Serial, what can the challenge of this be at high speeds

A

For parallel to work correctly all signals need to arrive at the same time, this can be challenging at higher speeds

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

What does Baud rate describe

A

The number of bits per second, i.e. 9600 Baud = 9600 pulses per second

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

How can the Baud rate be recognised automatically

A

Make the first character always the same. such as 0x55

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

What simple hardware can be used when implementing SPI, what does this mean

A

A shift register, this makes them cheap

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

To connect one master with 2 slaves for SPI, how many wires are required and what are they (Assume a common ground)

A

5:
- SCLK - Serial Clock driven by the master
- MOSI - Master Out, Slave In
- MISO - Master In, Slave Out
- CS1 - Chip Select for the first slave (Active Low)
- CS2 - Chip Select for the second slave (Active Low)

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

What does it mean for communication to be Full-Duplex

A

Full-Duplex means that devices can send and receive signals simultaneously

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

What does it mean for communication to be Half-Duplex

A

It means devices can either be sending OR receiving, but not both (at one time)

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

I2C uses two wires pulled to high, what do chips need to do to send a signal on this

A

Pull the line to low with a transistor

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

Where is I2C used

A

On PCB’s due to the capacitance of the lines

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

What should you use as the pull up resistor if you want fast com’s on an I2C bus

What is the drawback of this

A

A Low resistance resistor such that the line charges faster,

This will result in higher power usage

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

What should you use as the pull up resistor if you want low power usage on an I2C bus

What is the drawback of this

A

A high resistance resistor such that less power is lost charging the line

This will result in slower communications

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

Who assigns the addresses of I2C devices, what issue can arise as a result of this

A

The device manufacturers, this can cause issues as addresses may clash

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

Two masters can be used on one I2C bus, with bus arbitration being used to decide who can talk and who has priority. What is the issue with this for Real-Time Systems

A

Bus arbitration takes a non-deterministic amount of time if it is not done carefully

17
Q

How many devices can be connected via SPI

A

One SPI Bus can connect one Master to an unlimited number of devices (limited by the number of chip selects)

18
Q

How many devices can be connected via UART

A

One UART connection can connect two devices

19
Q

How many devices can be connected via I2C

A

128 if 7 bit addressing is used, or 1024 if 10 bit addressing is used

20
Q

Is SPI Full-Duplex or Half-Duplex

A

Full-Duplex

21
Q

Is UART Full-Duplex or Half-Duplex

A

Full-Duplex

22
Q

Is I2C Full-Duplex or Half-Duplex

A

Half-Duplex

23
Q

An I2C is 1 Byte what does this contain (by default)

A

A 7 bit address and 1 bit to signify if the device with that address should read or write