{
"version": 1,
"author": "Unknown",
"editor": "wokwi",
"parts": [
{ "type": "wokwi-led", "id": "led1", "top": -99.6, "left": 90.2, "attrs": { "color": "red" } },
{
"type": "wokwi-led",
"id": "led2",
"top": -99.6,
"left": 109.4,
"attrs": { "color": "red" }
},
{
"type": "wokwi-led",
"id": "led3",
"top": -99.6,
"left": 128.6,
"attrs": { "color": "red" }
},
{
"type": "wokwi-led",
"id": "led4",
"top": -99.6,
"left": 147.8,
"attrs": { "color": "red" }
},
{
"type": "wokwi-led",
"id": "led5",
"top": -99.6,
"left": 186.2,
"attrs": { "color": "red" }
},
{ "type": "wokwi-led", "id": "led6", "top": -99.6, "left": 167, "attrs": { "color": "red" } },
{
"type": "wokwi-led",
"id": "led7",
"top": -99.6,
"left": 205.4,
"attrs": { "color": "red" }
},
{ "type": "wokwi-74hc595", "id": "sr1", "top": 75.6, "left": 235.84, "attrs": {} },
{ "type": "wokwi-vcc", "id": "vcc1", "top": -114.44, "left": 480, "attrs": {} },
{ "type": "wokwi-gnd", "id": "gnd1", "top": 297.6, "left": 105, "attrs": {} },
{ "type": "wokwi-led", "id": "led8", "top": -99.6, "left": 263, "attrs": { "color": "blue" } },
{
"type": "wokwi-pushbutton",
"id": "btn1",
"top": 25.4,
"left": 412.8,
"attrs": { "color": "LimeGreen", "xray": "1", "bounce": "0" }
},
{
"type": "wokwi-pushbutton",
"id": "btn2",
"top": 92.6,
"left": 412.8,
"attrs": { "color": "Purple", "xray": "1", "bounce": "0" }
},
{
"type": "wokwi-pushbutton",
"id": "btn3",
"top": 159.8,
"left": 412.8,
"attrs": { "color": "Gold", "xray": "1", "bounce": "0" }
},
{
"type": "wokwi-resistor",
"id": "r2",
"top": 225.6,
"left": 325.85,
"rotate": 90,
"attrs": { "value": "10000" }
},
{
"type": "wokwi-resistor",
"id": "r3",
"top": 225.6,
"left": 345.05,
"rotate": 90,
"attrs": { "value": "10000" }
},
{
"type": "wokwi-resistor",
"id": "r4",
"top": -14.4,
"left": 373.85,
"rotate": 90,
"attrs": { "value": "10000" }
},
{
"type": "wokwi-text",
"id": "text2",
"top": 163.2,
"left": 508.8,
"attrs": { "text": "Clock" }
},
{
"type": "wokwi-text",
"id": "text3",
"top": 96,
"left": 508.8,
"attrs": { "text": "Latch" }
},
{
"type": "wokwi-text",
"id": "text4",
"top": 28.8,
"left": 508.8,
"attrs": { "text": "Data" }
},
{
"type": "wokwi-text",
"id": "text5",
"top": -115.2,
"left": 288,
"rotate": -15,
"attrs": { "text": "The missing bit 0" }
},
{
"type": "wokwi-text",
"id": "text1",
"top": -115.2,
"left": 220.8,
"attrs": { "text": "1" }
},
{
"type": "wokwi-text",
"id": "text6",
"top": -115.2,
"left": 201.6,
"attrs": { "text": "2" }
},
{
"type": "wokwi-text",
"id": "text7",
"top": -115.2,
"left": 182.4,
"attrs": { "text": "3" }
},
{
"type": "wokwi-text",
"id": "text8",
"top": -115.2,
"left": 163.2,
"attrs": { "text": "4" }
},
{ "type": "wokwi-text", "id": "text9", "top": -115.2, "left": 144, "attrs": { "text": "5" } },
{
"type": "wokwi-text",
"id": "text10",
"top": -115.2,
"left": 124.8,
"attrs": { "text": "6" }
},
{
"type": "wokwi-text",
"id": "text11",
"top": -115.2,
"left": 105.6,
"attrs": { "text": "7" }
},
{
"type": "wokwi-text",
"id": "text12",
"top": -115.2,
"left": 566.4,
"attrs": {
"text": "Usage.\n\nSuppose the led for bit 3 has to turn on.\nClick three times on the yellow button.\nThen keep the green button pressed with Ctrl+Click.\nClick once on the yellow button.\nRelease the green button by clicking on it.\nClick 4 times on the yellow button for a total of 8.\nClick the purple button."
}
}
],
"connections": [
[ "sr1:VCC", "vcc1:VCC", "red", [ "v-46.8", "h76.8", "v-76.8", "h172.8" ] ],
[ "sr1:GND", "gnd1:GND", "black", [ "v163.2", "h-192" ] ],
[ "sr1:DS", "btn1:1.l", "limegreen", [ "v0" ] ],
[ "sr1:STCP", "btn2:1.l", "purple", [ "v-27.6", "h96", "v57.6" ] ],
[ "sr1:MR", "vcc1:VCC", "red", [ "v-46.8", "h19.2", "v-76.8", "h172.8" ] ],
[ "sr1:SHCP", "btn3:1.l", "gold", [ "v-18", "h67.2", "v115.2" ] ],
[ "vcc1:VCC", "btn2:2.r", "red", [ "v0" ] ],
[ "vcc1:VCC", "btn3:2.r", "red", [ "v0" ] ],
[ "gnd1:GND", "r2:2", "black", [ "v-28.8", "h48" ] ],
[ "gnd1:GND", "r3:2", "black", [ "v-28.8", "h249.6" ] ],
[ "btn2:1.l", "r3:1", "purple", [ "h0" ] ],
[ "btn3:1.l", "r2:1", "gold", [ "h0" ] ],
[ "gnd1:GND", "sr1:OE", "black", [ "v-28.8", "h201.6", "v-201.6", "h-48" ] ],
[ "vcc1:VCC", "led8:A", "red", [ "v38.4", "h-172.8" ] ],
[ "vcc1:VCC", "led7:A", "red", [ "v38.4", "h-211.2" ] ],
[ "vcc1:VCC", "led5:A", "red", [ "v38.4", "h-249.6" ] ],
[ "vcc1:VCC", "led6:A", "red", [ "v38.4", "h-268.8" ] ],
[ "vcc1:VCC", "led4:A", "red", [ "v38.4", "h-288" ] ],
[ "vcc1:VCC", "led3:A", "red", [ "v38.4", "h-307.2" ] ],
[ "vcc1:VCC", "led2:A", "red", [ "v38.4", "h-326.4" ] ],
[ "vcc1:VCC", "led1:A", "red", [ "v38.4", "h-345.6" ] ],
[ "gnd1:GND", "btn1:2.r", "black", [ "v-28.8", "h384", "v-220.8" ] ],
[ "vcc1:VCC", "r4:1", "red", [ "v38.4", "h-86.4" ] ],
[ "btn1:1.l", "r4:2", "limegreen", [ "h0" ] ],
[ "sr1:Q0", "led1:C", "green", [ "v-18", "h-96" ] ],
[ "sr1:Q1", "led2:C", "green", [ "v9.6", "h-76.8" ] ],
[ "sr1:Q2", "led3:C", "green", [ "v19.2", "h-67.2" ] ],
[ "sr1:Q3", "led4:C", "green", [ "v28.8", "h-67.2" ] ],
[ "sr1:Q4", "led6:C", "green", [ "v38.4", "h-57.6" ] ],
[ "sr1:Q5", "led5:C", "green", [ "v48", "h-48" ] ],
[ "sr1:Q6", "led7:C", "green", [ "v57.6", "h-57.6" ] ],
[ "sr1:Q7", "led8:C", "green", [ "v67.2", "h-67.2", "v-211.2", "h48" ] ]
],
"dependencies": {}
}Clock
Latch
Data
The missing bit 0
1
2
3
4
5
6
7
Usage.
Suppose the led for bit 3 has to turn on.
Click three times on the yellow button.
Then keep the green button pressed with Ctrl+Click.
Click once on the yellow button.
Release the green button by clicking on it.
Click 4 times on the yellow button for a total of 8.
Click the purple button.