Digital (Boolean) Xor

From Visuino
Revision as of 04:15, 16 August 2025 by Visuino (talk | contribs) (Created page with "Image:TArduinoBooleanXor.png == Summary == Outputs True if an odd number of Boolean inputs are True. == Description == The Digital (Boolean) Xor component performs a logical exclusive OR (XOR) operation across multiple Boolean inputs. The output is True when an odd number of inputs are True. The output is False when all inputs are False or when an even number of inputs are True. This makes it useful for conditions where you want a toggle-like behavior or detect...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Summary

Outputs True if an odd number of Boolean inputs are True.

Description

The Digital (Boolean) Xor component performs a logical exclusive OR (XOR) operation across multiple Boolean inputs.

The output is True when an odd number of inputs are True.

The output is False when all inputs are False or when an even number of inputs are True.

This makes it useful for conditions where you want a toggle-like behavior or detect mismatched states.

Diagram:

Categories

Properties

  • Input Pins – Integer; defines the number of Boolean inputs to include in the XOR operation.

Pins

  • In – Boolean input pins [0] to [N-1], where N is set by Input Pins.
  • Out – Boolean output, True if an odd number of inputs are True.