decoder
Reverse operation of the encoder chip. Decodes a binary number, setting the output pin that corresponds to the input binary value, on.
on Wikipedia
source code
I/O setup
- Must have at least 2 inputs.
- input pin 0 (write): When set to high, the input state is decoded and the result is sent to the output pins.
- input pins 1 and above (data): The bit-set to decode.
- Can have any number of output pins up to 2 to the power of number of inputs plus 1. i.e. 2in - 2out, 3in - 4out, 4in - 8out, 5in - 16out, and so forth.
Sign text
decoder
Version history: Added to BasicCircuits 0.1