Computing and Information Technology

Embedded Interfacing & Serial Communication Practice Exam, Flashcards & Questions

Master foundational to advanced Embedded Interfacing & Serial Communication with 390 verified curriculum items, worked engineering solutions, and spaced-repetition cards.

240 Total Questions 60 MCQs 90 Calculations 30 Formulas 60 Flashcards
Free Interactive Preview

Embedded Interfacing & Serial Communication Sample Exam Questions & Rationale

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

Question 1 of 4 CAN Bit Stuffing (5 Consecutive Bits) & Stuff Error Detection

What rule governs bit stuffing in the CAN protocol, and which frame fields are exempt from stuffing?

A After five consecutive bits of identical polarity, an opposite polarity stuff bit is inserted; CRC delimiter, ACK, and End of Frame are exempt
B After eight consecutive bits, a parity bit is inserted across all frame fields including End of Frame
C Stuff bits are inserted only during the 11-bit identifier field to break arbitration ties
D Bit stuffing inverts all data payload bytes that contain the ASCII null character
Accepted Answer: Option A (After five consecutive bits of identical polarity, an opposite polarity stuff bit is inserted; CRC delimiter, ACK, and End of Frame are exempt)

Rationale: To maintain receiver clock resynchronization (which requires signal edges) and ensure that the 6-dominant-bit Active Error Flag is uniquely identifiable, the CAN transmitter automatically inserts a complementary bit after any sequence of 5 identical bits from SOF through the CRC sequence. Fixed-form fields (CRC delimiter, ACK field, and 7-recessive-bit End-of-Frame) are not stuffed; detecting 6 identical bits in stuffed fields triggers a Stuff Error.

Question 2 of 4 CAN Bit Timing: Synchronization Segment, Propagation Delay & Phase Segments (SJW)

In CAN bit timing configuration, why must the Propagation Segment ($t_{\text{Prop\_Seg}}$) be sized to at least twice the maximum bus physical propagation delay plus transceiver delays?

A To allow a dominant bit to travel to the furthest node and return back before the sample point
B To recharge the differential line filter capacitors between consecutive byte frames
C To ensure parity bits align with the microsecond system clock tick
D To prevent the crystal oscillator from drifting during high-temperature engine bay operation
Accepted Answer: Option A (To allow a dominant bit to travel to the furthest node and return back before the sample point)

Rationale: During bitwise arbitration, a node outputs a bit and must sample the bus to verify if another node drove dominant. The signal must propagate from node A to the furthest node B ($t_{\text{prop}}$), pass through node B's transceiver receiver and transmitter ($2 t_{\text{tx}}$), and propagate back to node A ($t_{\text{prop}}$). Thus, $t_{\text{Prop\_Seg}} \ge 2 (t_{\text{bus\_prop}} + t_{\text{transceiver}})$.

Question 3 of 4 CAN Bus Differential Signaling: CAN_H, CAN_L, Dominant (0) & Recessive (1)

In the physical layer of high-speed CAN (ISO 11898-2), how are dominant (logic 0) and recessive (logic 1) states represented differentially on the CAN_H and CAN_L lines?

A Dominant drives CAN_H to 3.5 V and CAN_L to 1.5 V (V_diff = 2.0 V); Recessive floats both lines to 2.5 V (V_diff = 0 V)
B Dominant floats both lines to 0 V; Recessive drives CAN_H to 5.0 V and CAN_L to 0 V
C Dominant drives CAN_H to 12.0 V; Recessive drives CAN_L to -12.0 V
D Dominant inverts the phase of a 1 MHz differential sine wave carrier
Accepted Answer: Option A (Dominant drives CAN_H to 3.5 V and CAN_L to 1.5 V (V_diff = 2.0 V); Recessive floats both lines to 2.5 V (V_diff = 0 V))

Rationale: Under ISO 11898-2 high-speed CAN, the bus relies on open-collector wired-AND differential signaling. During a Recessive bit (logic 1), transceivers are high-impedance and termination resistors pull both CAN_H and CAN_L to $2.5\text{ V}$ ($V_{\text{diff}} = 0\text{ V}$). During a Dominant bit (logic 0), active transistors drive CAN_H to $3.5\text{ V}$ and pull CAN_L to $1.5\text{ V}$ ($V_{\text{diff}} = 2.0\text{ V}$), overriding recessive states.

Question 4 of 4 CAN Error Confinement: Error Counters (TEC/REC), Active, Passive & Bus-Off States

Under the CAN error confinement state machine, what counter thresholds trigger transitions between Error Active, Error Passive, and Bus-Off states?

A Error Active (TEC <= 50) -> Error Passive (TEC > 50) -> Bus-Off (REC > 100)
B Error Active (TEC, REC <= 127) -> Error Passive (either > 127) -> Bus-Off (TEC > 255)
C Error Active (0 errors) -> Error Passive (1 error) -> Bus-Off (5 errors)
D Error Active (TEC <= 1024) -> Error Passive (TEC > 1024) -> Bus-Off (TEC > 4096)
Accepted Answer: Option B (Error Active (TEC, REC <= 127) -> Error Passive (either > 127) -> Bus-Off (TEC > 255))

Rationale: CAN nodes maintain a Transmit Error Counter (TEC) and Receive Error Counter (REC). When both $\le 127$, the node is Error Active (transmits 6-dominant-bit active error flags). When either exceeds $127$, the node transitions to Error Passive (transmits 6-recessive-bit passive flags, preventing it from corrupting the bus). If TEC exceeds $255$, the node enters Bus-Off, electrically disconnecting its transceiver from the bus.

Active Recall Spaced Repetition Cards (Preview)

Card 1 • CAN Bit Stuffing (5 Consecutive Bits) & Stuff Error Detection
CAN bit stuffing inserts an opposite bit after {{c1::five consecutive bits}} of the same polarity.
Guarantees periodic voltage transitions for receiver clock resynchronization.
Card 2 • CAN Bit Timing: Synchronization Segment, Propagation Delay & Phase Segments (SJW)
CAN bit time is partitioned into Sync_Seg, Prop_Seg, Phase_Seg1, and {{c1::Phase_Seg2}}.
Standard CAN nominal bit timing architecture specified in ISO 11898-1.

Embedded Interfacing & Serial Communication Curriculum Modules & Topics Covered

Modules
Controller Area Network (CAN Bus) & Physical/Data LayersSerial Peripheral Interface (SPI) Protocol & TimingInter-Integrated Circuit (I2C) Bus MechanicsUniversal Asynchronous Receiver-Transmitter (UART)Direct Memory Access (DMA) & Peripheral Control
Core Exam Topics
  • CAN Bus Differential Signaling: CAN_H, CAN_L, Dominant (0) & Recessive (1)
  • Non-Destructive Bitwise Arbitration & Identifier Priority (11-bit vs 29-bit)
  • CAN Bit Timing: Synchronization Segment, Propagation Delay & Phase Segments (SJW)
  • CAN Bit Stuffing (5 Consecutive Bits) & Stuff Error Detection
  • CAN Error Confinement: Error Counters (TEC/REC), Active, Passive & Bus-Off States
  • CAN FD (Flexible Data-Rate) & Dual Bit-Rate Switching Mechanics
  • SPI 4-Wire Architecture: SCLK, MOSI, MISO & Active-Low Chip Select (CS/SS)
  • SPI Clock Polarity (CPOL) and Clock Phase (CPHA) Modes 0, 1, 2, 3
  • SPI Data Setup Time ($t_{\text{SU}}$) and Hold Time ($t_{\text{HD}}$) Margin Verification
  • Multi-Slave Topologies: Dedicated Chip Selects vs Daisy-Chaining
Learning Objectives
  • Develop core conceptual recall and analytical problem-solving in Controller Area Network (CAN Bus) & Physical/Data Layers.
  • Develop core conceptual recall and analytical problem-solving in Serial Peripheral Interface (SPI) Protocol & Timing.
  • Develop core conceptual recall and analytical problem-solving in Inter-Integrated Circuit (I2C) Bus Mechanics.
  • Develop core conceptual recall and analytical problem-solving in Universal Asynchronous Receiver-Transmitter (UART).
  • Develop core conceptual recall and analytical problem-solving in Direct Memory Access (DMA) & Peripheral Control.

Free Downloadable Embedded Interfacing & Serial Communication Study Packs (.ZIP / .TSV)

Full Spreadsheet Data (TSV)
TSV • 240 items
Complete Course Pack
ZIP • 240 items
Elements (Standard)
ZIP • 240 items
Active Recall Flashcards
ZIP • 240 items
Formula Codex
ZIP • 240 items
Problem Solving (Mastery)
ZIP • 240 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: 240 Verified Items

Unlock All 240 Embedded Interfacing & Serial Communication 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)