Unit 5: Serial Communication & Industrial Interfaces - Practice Quiz

ECE140 — Workshop On Iot For Digital Society 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What does UART stand for?

UART serial communication protocol Easy
A. Universal Asynchronous Receiver-Transmitter
B. Unified Analog Receiver-Transmitter
C. Universal Automatic Routing Terminal
D. Unified Asynchronous Register Transfer

2 Which two signal lines are commonly used for basic UART communication?

UART serial communication protocol Easy
A. MOSI and MISO
B. SDA and SCL
C. TX and RX
D. A and B

3 What must two UART devices normally share for successful communication?

UART serial communication protocol Easy
A. The same baud rate
B. The same device address
C. The same clock line
D. The same chip-select pin

4 Which two lines are used by the I2C protocol?

I2C serial communication protocol Easy
A. TX and RX
B. SDA and SCL
C. A and B
D. MOSI and MISO

5 How does an I2C controller normally select a particular target device?

I2C serial communication protocol Easy
A. By its stop bit
B. By its parity setting
C. By its device address
D. By its baud register

6 What is the main purpose of pull-up resistors on I2C lines?

I2C serial communication protocol Easy
A. To amplify analog signals
B. To select the clock speed
C. To hold the lines high
D. To store transmitted data

7 Which SPI signal carries data from the controller to a peripheral?

SPI serial communication protocol Easy
A. RX
B. SCL
C. MOSI
D. MISO

8 Which SPI line is used to select a specific peripheral?

SPI serial communication protocol Easy
A. Bus Address
B. Receive Data
C. Chip Select
D. Serial Data

9 Which statement describes a common feature of SPI?

SPI serial communication protocol Easy
A. It requires device addresses
B. It uses only one data wire
C. It uses asynchronous timing
D. It supports full-duplex transfer

10 What is the purpose of bus arbitration?

Bus arbitration and addressing Easy
A. To convert digital data into analog data
B. To choose which device controls the bus
C. To increase the supply voltage
D. To store data in permanent memory

11 What is the main purpose of an address on a shared communication bus?

Bus arbitration and addressing Easy
A. To generate the supply voltage
B. To determine the wire length
C. To identify a specific device
D. To calculate the clock frequency

12 What does a protocol analyzer primarily help a developer inspect?

Protocol analyzers and debugging Easy
A. Communication signals and data
B. Mechanical dimensions and weight
C. Battery chemistry and capacity
D. Enclosure color and finish

13 Which tool is commonly used to capture multiple digital communication lines over time?

Protocol analyzers and debugging Easy
A. Logic analyzer
B. Signal lamp
C. Soldering iron
D. Power adapter

14 What type of standard is RS485 primarily?

Interfacing industrial modules using Modbus and RS485 Easy
A. An electrical signaling standard
B. A processor instruction standard
C. A display graphics standard
D. A file storage standard

15 Which communication method is used by RS485 to improve noise resistance?

Interfacing industrial modules using Modbus and RS485 Easy
A. Optical signaling
B. Infrared signaling
C. Differential signaling
D. Single-ended signaling

16 What is Modbus commonly used for?

Interfacing industrial modules using Modbus and RS485 Easy
A. Designing mechanical components
B. Rendering three-dimensional graphics
C. Compressing multimedia files
D. Communicating with industrial devices

17 What is a key benefit of using an I2C interface with an LCD module?

I2C LCD and OLED display interfacing Easy
A. It reduces the required data pins
B. It converts text into audio
C. It removes the need for power
D. It increases the display thickness

18 Which characteristic is commonly associated with OLED displays?

I2C LCD and OLED display interfacing Easy
A. Pixels require a mechanical switch
B. Pixels communicate through UART
C. Pixels produce their own light
D. Pixels store data permanently

19 What is the main purpose of a data logging system?

High-speed data logging systems Easy
A. To generate device addresses
B. To increase motor torque
C. To regulate supply voltage
D. To record data over time

20 Which factor is especially important when logging rapidly changing sensor data?

High-speed data logging systems Easy
A. A low screen brightness
B. A high sampling rate
C. A small connector size
D. A short device address

21 A UART link uses 8 data bits, no parity, and 1 stop bit. At 115200 baud, what is the maximum theoretical payload rate?

UART serial communication protocol Medium
A. 115200 bits/s
B. 92160 bits/s
C. 103680 bits/s
D. 128000 bits/s

22 A UART receiver repeatedly reports framing errors even though the TX and RX wires are connected correctly. Which configuration mismatch is the most likely cause?

UART serial communication protocol Medium
A. Different buffer sizes
B. Different variable names
C. Different pin colors
D. Different baud rates

23 Two UART devices are configured for 9600 baud, 8 data bits, even parity, and 1 stop bit. How many bits are transmitted for each data byte?

UART serial communication protocol Medium
A. 10 bits
B. 9 bits
C. 12 bits
D. 11 bits

24 An I2C bus works at 100 kHz but becomes unreliable after several modules are added. The observed SDA and SCL rising edges are too slow. What is the most appropriate correction?

I2C serial communication protocol Medium
A. Configure SDA as push-pull output
B. Add resistors in series with SDA
C. Use lower-value pull-up resistors
D. Remove the common ground connection

25 An I2C scanner reports address 0x3C. A device data sheet describes its address byte as 0x78 for writing. Why do the values differ?

I2C serial communication protocol Medium
A. 0x3C includes an ACK bit
B. 0x3C is the register address
C. 0x78 is a 10-bit address
D. 0x78 includes the R/W bit

26 An I2C master writes a register address and then needs to read data from the same slave without releasing the bus. Which bus event should it generate?

I2C serial communication protocol Medium
A. A general-call condition
B. A clock-stretching condition
C. A prolonged STOP condition
D. A repeated START condition

27 An SPI sensor changes its output data on the falling clock edge and expects the controller to sample it on the rising edge. The clock is idle low. Which SPI mode should be selected?

SPI serial communication protocol Medium
A. Mode 2
B. Mode 1
C. Mode 0
D. Mode 3

28 A controller connects to three standard SPI sensors that share SCLK, MOSI, and MISO. How should the controller normally select one sensor for communication?

SPI serial communication protocol Medium
A. Disconnect MISO from the other sensors
B. Assert only that sensor's chip-select line
C. Change the clock frequency for that sensor
D. Transmit that sensor's seven-bit bus address

29 An SPI ADC sends one 16-bit sample during each transaction. With a 4 MHz SPI clock and no transaction overhead, how long does one sample transfer take?

SPI serial communication protocol Medium
A. 2 microseconds
B. 16 microseconds
C. 4 microseconds
D. 8 microseconds

30 Two I2C masters begin transmitting simultaneously. One sends a 1 while the other sends a 0 at the same bit position. What happens to the master that sends the 1?

Bus arbitration and addressing Medium
A. It changes the bus to push-pull operation
B. It loses arbitration and stops transmitting
C. It wins arbitration and continues transmitting
D. It forces both masters to restart immediately

31 Two I2C temperature sensors have the same fixed 7-bit address and must operate on one controller. Which solution is most appropriate when their addresses cannot be changed?

Bus arbitration and addressing Medium
A. Use different clock frequencies for each sensor
B. Place them on separate multiplexer channels
C. Assign different UART baud rates to them
D. Connect one sensor without pull-up resistors

32 A logic analyzer decodes an SPI transaction into incorrect byte values, but the captured clock and data waveforms look stable. What should be checked first?

Protocol analyzers and debugging Medium
A. The RS485 termination resistor value
B. The UART parity and stop-bit settings
C. The configured CPOL and CPHA settings
D. The I2C pull-up resistor values

33 An I2C protocol analyzer shows the address followed by a NACK on every transaction. The electrical levels and clock frequency are valid. Which issue should be investigated next?

Protocol analyzers and debugging Medium
A. An incorrect SPI clock phase
B. A reversed RS485 termination resistor
C. A missing UART stop bit
D. An incorrect slave address

34 A UART capture appears as unreadable bytes in a protocol analyzer, but the measured bit period is approximately 104 microseconds. Which decoder baud rate should be tried?

Protocol analyzers and debugging Medium
A. 9600 baud
B. 19200 baud
C. 115200 baud
D. 4800 baud

35 An RS485 Modbus RTU network is unstable only when a long cable is installed. Where should termination resistors normally be placed?

Interfacing industrial modules using Modbus and RS485 Medium
A. At both physical ends of the bus
B. Only beside the Modbus master
C. At every slave device on the bus
D. Only at the cable's midpoint

36 A Modbus RTU master needs to read a block of holding registers from a slave. Which standard function code should it use?

Interfacing industrial modules using Modbus and RS485 Medium
A. 0x05
B. 0x06
C. 0x03
D. 0x04

37 A two-wire RS485 transceiver receives its own transmitted data correctly but no remote reply is detected. Which control error is most likely?

Interfacing industrial modules using Modbus and RS485 Medium
A. The receiver uses an even parity setting
B. The driver remains enabled after transmission
C. The cable has termination at both ends
D. The slave has a valid unique address

38 An I2C character LCD acknowledges commands, but only dark blocks appear on the first row. What should be checked first?

I2C LCD and OLED display interfacing Medium
A. The UART receive buffer size
B. The LCD initialization sequence
C. The RS485 slave termination
D. The SPI chip-select polarity

39 A monochrome OLED has a resolution of 128 by 64 pixels and stores one bit per pixel. How much memory is required for a full frame buffer?

I2C LCD and OLED display interfacing Medium
A. 2048 bytes
B. 8192 bytes
C. 1024 bytes
D. 512 bytes

40 A logger samples four 16-bit channels at 20 kHz per channel. Ignoring headers and timestamps, what minimum sustained storage write rate is required?

High-speed data logging systems Medium
A. 320 kB/s
B. 80 kB/s
C. 640 kB/s
D. 160 kB/s

41 A UART uses a 48 MHz peripheral clock, 16-times oversampling, and an integer baud-rate divisor , where . Which divisor gives the smallest error for a target of 115200 baud?

UART serial communication protocol Hard
A. , producing about 115385 baud and a error
B. , producing 120000 baud and a error
C. , producing about 111111 baud and a error
D. , producing about 107143 baud and a error

42 A UART link operates at 115200 baud using 8 data bits, even parity, one start bit, and one stop bit. Assuming continuous transmission with no gaps, what is the maximum application-data throughput?

UART serial communication protocol Hard
A. Approximately 10473 bytes/s
B. Approximately 11520 bytes/s
C. Approximately 12800 bytes/s
D. Approximately 9600 bytes/s

43 A UART receives at 921600 baud in 8N1 format using circular DMA. Software may take up to 3 ms between buffer checks. Ignoring interrupt latency, what is the minimum usable DMA-buffer capacity that prevents overwrite during one such interval?

UART serial communication protocol Hard
A. 288 bytes
B. 277 bytes
C. 272 bytes
D. 256 bytes

44 A 3.3 V Fast-mode I2C bus has 200 pF capacitance. The rise-time limit is 300 ns, with . Devices can sink 3 mA while keeping V. Which pull-up range satisfies both constraints?

I2C serial communication protocol Hard
A. Approximately 1.77 kOhm to 3.30 kOhm
B. Approximately 0.47 kOhm to 0.97 kOhm
C. Approximately 0.97 kOhm to 1.77 kOhm
D. Approximately 3.30 kOhm to 4.70 kOhm

45 To read from a 10-bit-addressed I2C target after selecting an internal register, which address-phase sequence is required without issuing a STOP?

I2C serial communication protocol Hard
A. 10-bit write header, register byte, low address byte, repeated START, data byte
B. 10-bit read header, register byte, repeated START, low address byte, write header
C. 10-bit write header, low address byte, register byte, repeated START, 10-bit read header
D. 10-bit read header, low address byte, register byte, repeated START

46 During an I2C read, a protocol trace shows SCL held low for 600 microseconds immediately after the target ACKs the register address, while SDA remains stable. What is the most appropriate controller behavior?

I2C serial communication protocol Hard
A. Drive SCL high actively to override the target's low level
B. Wait for SCL to be released, subject to a configured transaction timeout
C. Continue generating clocks because the target has violated arbitration
D. Issue a STOP by driving SDA low while SCL remains low

47 An SPI peripheral specifies that SCLK idles high, data changes on falling edges, and data is sampled on rising edges. Which SPI mode matches this timing?

SPI serial communication protocol Hard
A. Mode 0: ,
B. Mode 2: ,
C. Mode 1: ,
D. Mode 3: ,

48 Three 12-bit SPI output devices are daisy-chained as MCU to A to B to C. A common latch signal updates all devices after shifting. To load words , , and into A, B, and C respectively, what sequence is required?

SPI serial communication protocol Hard
A. Shift , pulse the latch, then shift and
B. Shift , pulse the latch, then shift and
C. Shift , , using 36 clocks, then pulse the latch
D. Shift , , using 36 clocks, then pulse the latch

49 Two I2C controllers begin simultaneously and transmit identical address and data bits until one sends a logic 1 while the other sends a logic 0. What happens at that bit?

Bus arbitration and addressing Hard
A. Both controllers abort because any simultaneous transmission is invalid
B. The controller sending 0 loses because dominant-low indicates a collision
C. Both controllers continue because arbitration ends after the address byte
D. The controller sending 1 loses because it observes 0 while SCL is high

50 A datasheet lists an I2C device's write address as 0xA0 and read address as 0xA1. What 7-bit address should be passed to an API that accepts the address separately from the read/write direction?

Bus arbitration and addressing Hard
A. 0xA0
B. 0x51
C. 0x50
D. 0xA1

51 A logic analyzer decodes an I2C NACK, but the controller reports that an ACK was received. An oscilloscope shows SDA rising slowly and crossing the analyzer threshold before crossing the controller's guaranteed input-high threshold. What is the most likely cause?

Protocol analyzers and debugging Hard
A. The bus pull-up is too weak for its total capacitance
B. The controller is losing multi-controller arbitration
C. The analyzer is interpreting a repeated START as a STOP
D. The target is using an unsupported 10-bit address

52 Rare RS485 frame failures occur only when a nearby motor starts. A digital analyzer shows syntactically valid bytes but occasional CRC errors. Which measurement is most useful for identifying the physical-layer cause?

Protocol analyzers and debugging Hard
A. Measure differential voltage and common-mode voltage at the receiver
B. Measure the controller's CPU utilization during each failed frame
C. Measure only the transmitter-enable signal with respect to logic ground
D. Measure only decoded byte timing with a deeper digital capture

53 A Modbus RTU link runs at 9600 baud with 11 transmitted bits per character. Using the 3.5-character frame-separation rule, what minimum silent interval is required?

Interfacing industrial modules using Modbus and RS485 Hard
A. Approximately 4.01 ms
B. Approximately 3.65 ms
C. Approximately 1.56 ms
D. Approximately 2.01 ms

54 A Modbus RTU implementation computes a CRC value of 0x4B37 for a frame. In what order must the CRC bytes be transmitted?

Interfacing industrial modules using Modbus and RS485 Hard
A. 0x73 followed by 0xB4
B. 0x37 followed by 0x4B
C. 0xB4 followed by 0x73
D. 0x4B followed by 0x37

55 A half-duplex RS485 Modbus network uses a single linear cable with several short device stubs. Which termination and bias arrangement is generally correct?

Interfacing industrial modules using Modbus and RS485 Hard
A. Terminate every device and place bias resistors at both cable ends
B. Terminate no devices and rely on each transceiver's input hysteresis
C. Terminate both physical cable ends and bias the bus at one controlled point
D. Terminate only the master and place bias resistors at every slave

56 A character LCD is connected through a PCF8574-style quasi-bidirectional I2C expander. Why must firmware write logic 1 to the expander pin connected to LCD D7 before reading the LCD busy flag?

I2C LCD and OLED display interfacing Hard
A. Writing 1 generates the LCD enable pulse without another write
B. Writing 1 releases the pin so the LCD can drive its state
C. Writing 1 selects the LCD's instruction register automatically
D. Writing 1 converts the expander pin into a push-pull input

57 A 128 by 64 monochrome OLED uses a 1024-byte framebuffer over 400 kHz I2C. One address byte and one control byte are sent per frame, and every transmitted byte requires 9 clock pulses including ACK. Ignoring START and STOP timing, what is the maximum full-frame update rate?

I2C LCD and OLED display interfacing Hard
A. Approximately 43.3 frames/s
B. Approximately 390.6 frames/s
C. Approximately 48.8 frames/s
D. Approximately 24.4 frames/s

58 A logger samples eight 16-bit channels at 50 ksample/s per channel. Its storage device can stall for 120 ms. What minimum usable buffering is required solely to absorb data produced during the stall?

High-speed data logging systems Hard
A. 80 kB
B. 48 kB
C. 96 kB
D. 120 kB

59 A data source produces 4 MB/s continuously. Storage writes at 20 MB/s when active but may pause for 200 ms once every 5 seconds. Assuming no other overhead, which buffer size is the minimum needed to survive one pause while remaining sustainable afterward?

High-speed data logging systems Hard
A. 4.0 MB
B. 0.8 MB
C. 1.0 MB
D. 0.4 MB

60 A logger timestamps records with a 32-bit unsigned microsecond counter. Which method correctly handles a single counter wrap when computing the interval between consecutive records?

High-speed data logging systems Hard
A. Reset the counter whenever its most significant bit changes from 0 to 1
B. Use unsigned subtraction and ensure fewer than microseconds separate records
C. Use signed subtraction and ensure fewer than microseconds separate records
D. Treat every new timestamp smaller than the previous one as invalid data