Computing and Information Technology

Microcontroller Interfacing & Peripherals: SPI, I2C, CAN Bus, UART & Direct Memory Access (DMA) Practice Exam, Flashcards & Questions

Master foundational to advanced Microcontroller Interfacing & Peripherals: SPI, I2C, CAN Bus, UART & Direct Memory Access (DMA) with 66 verified curriculum items, worked engineering solutions, and spaced-repetition cards.

48 Total Questions 12 MCQs 18 Calculations 6 Formulas 12 Flashcards
Free Interactive Preview

Microcontroller Interfacing & Peripherals: SPI, I2C, CAN Bus, UART & Direct Memory Access (DMA) Sample Exam Questions & Rationale

Preview official questions below. The complete pool of 48 items is available in the offline app.

Question 1 of 4 CAN Bus Non-Destructive Bitwise Arbitration and Bit Stuffing

How does the Controller Area Network (CAN) bus achieve non-destructive bitwise arbitration during multi-node message collisions?

A Dominant bits (logic 0) overwrite recessive bits (logic 1); the transmitting node observing a dominant bit while sending recessive backs off silently
B Nodes generate pseudo-random backoff delays identical to Ethernet CSMA/CD protocols
C The central bus master assigns time slices using round-robin token passing rings
D Colliding nodes invert their differential transceiver polarities to cancel out the collision pulse
Accepted Answer: Option A (Dominant bits (logic 0) overwrite recessive bits (logic 1); the transmitting node observing a dominant bit while sending recessive backs off silently)

Rationale: CAN physical layer uses wired-AND logic where dominant (0) overwrites recessive (1). During arbitration, each node monitors the bus. If a node transmits a recessive identifier bit but detects a dominant bit, it immediately ceases transmission without corrupting the winning node's frame.

Question 2 of 4 Direct Memory Access Burst Transfers and Bus Stealing

What operational distinction separates DMA cycle stealing mode from burst transfer mode during high-speed peripheral streaming?

A Cycle stealing relinquishes the system bus to the CPU after every single word transfer, while burst mode holds the bus until the block completes
B Cycle stealing uses hardware DMA channels while burst mode uses software kernel threads
C Burst mode executes byte swapping on floating-point data while cycle stealing does not
D Cycle stealing requires external hardware FIFO buffers while burst mode does not
Accepted Answer: Option A (Cycle stealing relinquishes the system bus to the CPU after every single word transfer, while burst mode holds the bus until the block completes)

Rationale: In cycle stealing mode, the DMA controller interleaves single-word transfers between CPU memory cycles, minimizing CPU freeze latency. In burst mode, DMA holds continuous bus ownership until an entire buffer block is transferred, maximizing transfer throughput.

Question 3 of 4 GPIO Slew Rate Alternate Functions and Pin Multiplexing

Why is it standard engineering practice to configure microcontroller GPIO output drivers to the slowest allowable slew rate that still satisfies signal timing constraints?

A Minimizes high-frequency electromagnetic interference (EMI) radiation and ground bounce transient noise
B Doubles the maximum clock frequency of internal hardware multiplier units
C Enables pull-up resistors to charge capacitive bus loads instantaneously
D Eliminates the requirement for decoupling capacitors adjacent to microcontroller VDD pins
Accepted Answer: Option A (Minimizes high-frequency electromagnetic interference (EMI) radiation and ground bounce transient noise)

Rationale: Fast slew rates produce sharp di/dt and dv/dt transients that induce severe electromagnetic radiation (EMI) and power/ground rail bounce through package lead inductances. Reducing slew rate softens transitions, mitigating noise.

Question 4 of 4 I2C Open-Drain Bus Pull-Up Sizing and Bus Capacitance

Why is an open-drain bus with pull-up resistors utilized for the I2C interface rather than standard CMOS push-pull drivers?

A Enables multi-master wire-AND arbitration and slave clock stretching without driving output short circuits
B Reduces signal propagation delay to match fiber-optic speeds across PCB backplanes
C Prevents parasitic substrate diode latch-up during power-down sleep states
D Eliminates the necessity for ground reference connections between communicating ICs
Accepted Answer: Option A (Enables multi-master wire-AND arbitration and slave clock stretching without driving output short circuits)

Rationale: Open-drain outputs can only pull the bus low (to GND); lines are passively pulled high by resistors. This wire-AND behavior allows multiple masters or slaves to pull SCL or SDA low simultaneously without contention or electrical damage.

Active Recall Spaced Repetition Cards (Preview)

Card 1 • CAN Bus Non-Destructive Bitwise Arbitration and Bit Stuffing
CAN bit stuffing inserts an inverted bit after {{c1::five consecutive identical bits}}.
Bit stuffing ensures sufficient edge transitions for receiver clock resynchronization.
Card 2 • Direct Memory Access Burst Transfers and Bus Stealing
DMA scatter-gather links multiple non-contiguous memory buffers using {{c1::descriptor linked lists}}.
Descriptors contain next-pointer addresses, enabling seamless chaining of dispersed memory blocks.

Microcontroller Interfacing & Peripherals: SPI, I2C, CAN Bus, UART & Direct Memory Access (DMA) Curriculum Modules & Topics Covered

Modules
Serial Communication InterfacesIndustrial Buses and High-Speed Transfers
Core Exam Topics
  • UART Framing Error Baud Rate Matching and Bit Timing
  • SPI Clock Polarity Phase and Maximum Bus Throughput
  • I2C Open-Drain Bus Pull-Up Sizing and Bus Capacitance
  • CAN Bus Non-Destructive Bitwise Arbitration and Bit Stuffing
  • Direct Memory Access Burst Transfers and Bus Stealing
  • GPIO Slew Rate Alternate Functions and Pin Multiplexing
Learning Objectives
  • Develop core conceptual recall and analytical problem-solving in Serial Communication Interfaces.
  • Develop core conceptual recall and analytical problem-solving in Industrial Buses and High-Speed Transfers.

Free Downloadable Microcontroller Interfacing & Peripherals: SPI, I2C, CAN Bus, UART & Direct Memory Access (DMA) Study Packs (.ZIP / .TSV)

Full Spreadsheet Data (TSV)
TSV • 48 items
Complete Course Pack
ZIP • 48 items
Elements (Standard)
ZIP • 48 items
Active Recall Flashcards
ZIP • 48 items
Formula Codex
ZIP • 48 items
Problem Solving (Mastery)
ZIP • 48 items
Artificial Intelligence (1,579) Artificial Intelligence and Machine Learning (507) Cloud Computing and DevOps (144) Compiler Design & Formal Languages (1,579) Computational Contact Mechanics: Penalty Function Method, Lagrange Multipliers & Mortar Contact Formulations (128) Computer Engineering & Algorithms (1,365)
Full Question Pool: 48 Verified Items

Unlock All 48 Microcontroller Interfacing & Peripherals: SPI, I2C, CAN Bus, UART & Direct Memory Access (DMA) Practice Questions

Study the full question pool with 13 active recall battle modes, FSRS v5 spaced repetition, and 1-click printable PDF mock exams with full answer keys on Android and Windows PC.

Get on Google Play (Android) Get on Microsoft Store (Windows PC)