Digital communication protocols (week 6) Flashcards

1
Q

What types of devices share information amongst themselves ?

A

-multiple controller system
-master slave setups
-microcontroller with external sensors

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

Why do we need communication protocols ?

A

Because usually several digital devices need to share information amongst themselves.

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

How do communication protocol propose to implement communication ?

A

On an external bus.

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

They are different architectures for a given system. What are they ?

A
  • centralised architecture
    -hierarchical architecture
    -distributed architecture
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is centralised architecture ? What are the pros and cons

A

use of one central computer to control entire plant.
Pros: easy to implement, inexpensive (single control unit)
cons: interdependency, if the central fails, all control is lost. Old day to do things, as now most Systems are multi-computer based.

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

What is the hierarchical architecture? Pros and cons ?

A

It is a hierarchy of computers.
The labour is divided between the commuters according to the function involved.
There is a specialisation of computers.
There are units handling routine tasks, supervised by units with greater authority.

Pros: Allowing specialisation of tasks allocated. More flexible than centralised. Easy to replace sub-part of the overall system.

Cons: Interdependency is still high. Relies on top level which can be a problem if it doesn’t function well.

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

What is the distributed architecture? Pros and cons ?

A

All the devices perform similar tasks and coordinate with each other.

Pros: Specialisation (less than hierarchical). Much more flexible. Can exploit parallelisms & redundancy to improve reliability. In case of failure, work can be transmitted from one computer to another.

Cons: hard to design.

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

DATA TRANSFER - second decision after deciding the architecture. What are the two main families?

A

1) parallel communication
2) serial communication

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

What is parallel communication ? PROS AND CONS

A

all the bits transferred SIMULTANEOUSLY
Pros: achieve high data transfer rates
Cons: one physical where required for EACH bit, wiring is complex

application: used on very short distances (SMALL WIRES FOR HIGH DATA RATE)
EXAMPLE: GPIB

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

What is Serial communication ? PROS AND CONS

A

Data transferred bit by bit in sequence.

Pros: only two wires for DATA and the CLOCK. Easy wiring. Cheaper method
Available in Arduino

Cons: lower data transfer rate.

APPLICATION: used to interface multiple multiple microcontrollers (e.g. CAN bus in automotive), or to communicate with external devices (e.g. SPI and I2C for sensors )

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

What are serial and parallel communications based on ?

A

PROTOCOLS (SET OF RULES), such as syntax, semantic, timing

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

DATA TRANSFER-PARALLEL COMMUNICATION-WHAT IS GPIB?

A

Used in instruments controlling. It is the General Purpose Instrument Bus (GPIB). It is a very common bus

APPLICATION: Used to communicate with instruments such as oscilloscopes, multimeters.

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

What are the families of devices of GPIB

A

Talker (write data to bus)
listener (accept data from bus)
controller (control flow)

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

What is the protocol of GPIB

A
  • up to 15 devices connected to bus (with different adresses)
  • uses negative logic (i.e. 1 corresponds to V<0.8v and 0 corresponds to V>2v.
  • data lines can transmit 8-bit data in parallel
    -Handshake used to control flow (ATN=0/1, NFRD=0, NDAC=0, DAV=1)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

DATA TRANSFER-SERIAL COMMUNICATION- what is I2C?

A

Serial bus designed for communication between integrated circuits.

families
master clock
slave

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

What is the protocol of I2C?

A

SCL=SDA=HIGH indicates bus is NOT busy
SDA HIGH->LOW while SCK=HIGH indicates start of transmission.
Data is read while clock is high
every 8 bits, receiver acknowledge: transmitter =high, receiver=low
SDA LOW-> HIGH while SCK=HIGH indicates stop of transmission.

16
Q

I2C with Arduino

A

Arduino provides the wire library to manage I2C communication

17
Q

DATA TRANSFER-SERIAL COMMUNICATION-WHAT IS SPI?

A

serial bus designed for communication in embedded systems.

families:
Master
slave

lines needed:
SCLK
MOSI
MISO
SS (active low)

18
Q

What is the protocol of SPI?

A

Master configures clock signal.
Master selects peripherals
Data transfer can then happen:
FULL DUPLEX TRANSFER. Master reads on MISO and simultaneously write on MOSI
Master releases peripherals => SS= HIGH