Preparation Exercise 10 Solutions - Microprocessors and Digital System | ECE 331, Study notes of Electrical and Electronics Engineering

prep 10 Material Type: Notes; Professor: Mahapatra; Class: Microprocessors & Digital Sys; Subject: Electrical & Computer Egr; University: Michigan State University; Term: Fall 2015;

Typology: Study notes

2015/2016

Uploaded on 01/11/2016

joshlynnkern
joshlynnkern 🇺🇸

11 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ECE 331 Preparation Exercise 10 Solutions
Please refer to Module 9 course notes to answer the following questions.
1. Describe the difference between parallel and serial communications.
Parallel will transmit multiple bits of data at the same time but requires one signal/wire
per bit.
Serial will transmit only 1 bit of data at a time, placing data words/packets on a single line
in a time-sequence manner, and only requires a single data signal/wire.
2. Describe and contrast synchronous vs. asynchronous serial communications.
Synchronous uses a clock to regulate and indicate the timing of a serial bit sequence.
Asynchronous relies on preset timing protocol to determine the timing of a serial bit
sequence. It does not require a clock and thus can be implemented with fewer
signals/wires, but requires negotiation of timing protocol between receiver and
transmitter and can be more prone to errors than synchronous protocols.
3. Discuss the impact, or limitations, of choosing a serial communication standard with a shared receive
and transmit line.
A shared Rx/Tx line minimizes the number of signals/wires needed but eliminates the
opportunity to simultaneously transmit and receive.
4. What term defines the bit rate for asynchronous communications like UART?
baud
5. If a communication hardware block has a FIFO buffer, what does that mean?
Data will be stored and retrieved from the buffer in a first-in, first-out manner, which is
like standing in line to buy a ticket; the first one in line is the first one to finish and
exit the line.
6. Is the following serial communication protocol synchronous or asynchronous?
a) UART?
asynchronous
b) SSI
synchronous
c) I2C
synchronous
7. Sketch the TxD data signal for a UART port transmitting 0xC5. Assume a low start bit and a high
stop bit and no parity bit. Scale your sketch (y-axis) from low (0) to high (1).
pf2

Partial preview of the text

Download Preparation Exercise 10 Solutions - Microprocessors and Digital System | ECE 331 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

ECE 331 Preparation Exercise 10 Solutions

Please refer to Module 9 course notes to answer the following questions.

  1. Describe the difference between parallel and serial communications.

Parallel will transmit multiple bits of data at the same time but requires one signal/wire per bit. Serial will transmit only 1 bit of data at a time, placing data words/packets on a single line in a time-sequence manner, and only requires a single data signal/wire.

  1. Describe and contrast synchronous vs. asynchronous serial communications.

Synchronous uses a clock to regulate and indicate the timing of a serial bit sequence. Asynchronous relies on preset timing protocol to determine the timing of a serial bit sequence. It does not require a clock and thus can be implemented with fewer signals/wires, but requires negotiation of timing protocol between receiver and transmitter and can be more prone to errors than synchronous protocols.

  1. Discuss the impact, or limitations, of choosing a serial communication standard with a shared receive and transmit line. A shared Rx/Tx line minimizes the number of signals/wires needed but eliminates the opportunity to simultaneously transmit and receive.
  2. What term defines the bit rate for asynchronous communications like UART?

baud

  1. If a communication hardware block has a FIFO buffer, what does that mean?

Data will be stored and retrieved from the buffer in a first-in, first-out manner, which is like standing in line to buy a ticket; the first one in line is the first one to finish and exit the line.

  1. Is the following serial communication protocol synchronous or asynchronous?

a) UART? asynchronous b) SSI synchronous c) I^2 C synchronous

  1. Sketch the TxD data signal for a UART port transmitting 0xC5. Assume a low start bit and a high stop bit and no parity bit. Scale your sketch (y-axis) from low (0) to high (1).
  1. For the following serial communication standards, list the typical signal names (using standard acronyms) found in the interface. a) SPI SCLK, MOSI, MISO, SS b) UART RxD, TxD c) I^2 C SDA, SCL
  2. Describe the difference between a) ring and b) independent configurations for master-slave synchronous communication. Ring configurations loop the data signal so that it passes through each node and onto the next node. Compared to an independent configuration, where data lines (in and out) are connected to all slaves and the master, rings require less wiring but must sent all signals to all slave nodes rather than being able to select which slave should receive a data pack.
  3. Which serial communication protocol connects master and slave nodes using shared signals connected in a “wired-OR” configuration? I^2 C: both SCL and SDA are connect to all nodes and shared using wired-OR (or open drain) techniques.
  4. Your boss has asked you to connect six digital peripheral devices to a microcontroller. The peripheral devices have synchronous serial inputs and outputs, and each has a device enable/select pin. You have decided to complete this task using the SSI interface and a general purpose I/O port. List the signals, using standard SSI acronyms, in the bus between the microcontroller and the six peripheral devices. How many total signals are needed? SSI requires clock, in, out, and 1 select line for each device. The signals are thus: SCLK, MOSI, MISO, SS1, SS2, SS3, SS4, SS5, SS which is a total of 9 signals in the bus.
  5. Define the 8-bit byte (in binary) that would be transmitted for each of the following ASCII codes (inside the “”, ignoring the “ symbol) for the given parity. a) “!” with even parity? ! is 2|1 on the table  010.0001, which has 2 1’s (even). Even parity bit is thus a 0. 8-bit value is: 0010. b) “y” with even parity? y is 7|9 on the table  111.1001, which has 5 1’s (odd). Even parity bit is thus a 1. 8-bit value is: 1111. c) “T” with odd parity? T is 5|4 on the table  101.1000, which has 3 1’s (odd). Odd parity bit is thus a 0. 8-bit value is: 0101. d) “?” with odd parity? ? is 3|F on the table  011.1111, which has 6 1’s (even). Odd parity bit is thus a 1. 8-bit value is: 1011.