← All CET Flashcard Decks

Digital Logic & Microprocessors Flashcards

7 cards from real CET practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 7 Digital Logic & Microprocessors flashcards as text
  1. A euthanasia system's microcontroller uses SPI (Serial Peripheral Interface) to communicate with a gas flow sensor. Which of the following correctly describes SPI communication?

    Answer: Four-wire, full-duplex, synchronous with a shared clock

    SPI uses four lines (MOSI, MISO, SCK, CS), operates full-duplex simultaneously in both directions, and is synchronous using a shared clock signal from the master.

  2. A parity bit is added to data transmitted from a euthanasia controller to a remote display. Even parity is used. If the data byte is 10110101, what parity bit is appended?

    Answer: 0

    Counting the 1s in 10110101: 1+1+1+1+1 = 5 ones (odd count); even parity requires the parity bit to be 1 to make total 1s even — wait, 5 ones is odd, so parity bit = 1 to make it 6 (even).

  3. A euthanasia equipment controller's EEPROM stores 256 bytes of calibration data. If the memory is byte-addressable, how many address lines are required to access every location?

    Answer: 8

    256 locations require 8 address lines because 2^8 = 256, allowing unique addressing of every byte.

  4. Which I2C (Inter-Integrated Circuit) feature allows multiple sensor devices to share the same two-wire bus in a euthanasia monitoring system?

    Answer: Each device has a unique 7-bit or 10-bit address

    I2C uses unique 7-bit or 10-bit addresses for each device, allowing the master to select any device on the shared SDA/SCL two-wire bus.

  5. A euthanasia system software bug causes the program counter to jump to an uninitialized memory region. What type of fault does this most likely cause?

    Answer: Illegal instruction exception/fault

    When the CPU fetches and attempts to decode random or uninitialized memory as an instruction, it typically triggers an illegal instruction exception or CPU fault trap.

  6. In a euthanasia equipment microcontroller, a 'stack' data structure is used primarily for what purpose?

    Answer: Saving and restoring CPU register states during interrupt service routines and function calls

    The stack is a LIFO (Last In, First Out) memory structure used to save CPU register states, return addresses, and local variables during subroutine calls and interrupts.

  7. A technician notices that a euthanasia system's digital display shows flickering values. Suspecting a signal integrity issue, which logic circuit component would be most appropriate to debounce and clean up noisy digital input signals from mechanical switches?

    Answer: Schmitt trigger inverter

    A Schmitt trigger has hysteresis, meaning it switches at different voltage thresholds for rising and falling signals, effectively eliminating noise and bounce from mechanical inputs.