Logic gates, flip-flops, state machines, microcontrollers, GPIO, interrupts, I2C, SPI, UART and Arduino concepts.
40 cards · basic cards · AI-written, checked twice. Edit anything.
- What is the output of an AND gate when all inputs are 1?
Show answer
1 (or HIGH). AND outputs 1 only when all inputs are 1.
- What is the output of an OR gate when both inputs are 0?
Show answer
0 (or LOW). OR outputs 0 only when all inputs are 0.
- What does a NOT gate produce?
Show answer
The opposite of its input: 1 becomes 0, and 0 becomes 1.
- A NAND gate output is 0 only when ___?
Show answer
All inputs are 1. It is NOT AND.
- An XOR gate output is 1 when ___?
Show answer
Inputs are different (one is 1 and the other is 0).
- What is a truth table?
Show answer
A table that shows all possible input combinations and their corresponding outputs.
- How many possible output combinations exist for a 2-input logic gate?
Show answer
4 (from inputs 00, 01, 10, 11). With n inputs, there are 2^n combinations.
- What is a flip-flop?
Show answer
A digital circuit that can store one bit of information and retain its state.
- What does a D flip-flop capture?
Show answer
The value at its D input when the clock edge occurs.
- What are the SET and RESET functions of an SR flip-flop?
Show answer
SET forces the output to 1, RESET forces the output to 0.
- What unique feature does a JK flip-flop have?
Show answer
When both J and K inputs are 1, it toggles (switches) its output on each clock pulse.
- What is a finite state machine?
Show answer
A computational model with a finite number of states and transitions based on inputs.
- Name the two main types of FSMs based on output logic.
Show answer
Moore machine (output depends on current state) and Mealy machine (output depends on state and input).
- What determines transitions between states in an FSM?
Show answer
Input signals and the current state.
- What is a state in a finite state machine?
Show answer
A distinct condition or configuration that the system can be in, defined by its stored values.