This chip provides eight mutually exclusive outputs. The Select range control enables and sets the active-high output.
Select | D8 | D7 | D6 | D5 | D4 | D3 | D2 | D1 |
---|---|---|---|---|---|---|---|---|
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
4 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
5 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
6 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
7 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
To use this chip in your project, include it as a dependency in your diagram.json
file:
"dependencies": {
"chip-1-of-8-decoder": "github:Dlloydev/Wokwi-Chip-1-of-8-Decoder@1.0.1"
}
Then, add the chip to your circuit by adding a chip-1-of-8-decoder
item to the parts
section of diagram.json
:
"parts": {
...,
{ "type": "chip-1-of-8-decoder", "id": "chip-1-of-8-decoder1" }
},
The actual source code for the chip lives in src/main.c, and the pins are described in chip.json.
This project is licensed under the MIT license. See the LICENSE file for more details.