(kicad_sch
	(version 20231120)
	(generator "eeschema")
	(generator_version "7.99")
	(paper "A4")
	(lib_symbols
		(symbol "Simulation_SPICE:VPULSE"
			(pin_numbers hide)
			(pin_names
				(offset 0.0254)
			)
			(exclude_from_sim no)
			(in_bom yes)
			(on_board yes)
			(property "Reference" "V"
				(at 2.54 2.54 0)
			)
			(property "Value" "VPULSE"
				(at 2.54 0 0)
			)
			(property "Footprint" ""
				(at 0 0 0)
			)
			(property "Datasheet" "~"
				(at 0 0 0)
			)
			(property "Description" "Voltage source, pulse"
				(at 0 0 0)
			)
			(property "Sim.Pins" "1=+ 2=-"
				(at 0 0 0)
			)
			(property "Sim.Type" "PULSE"
				(at 0 0 0)
			)
			(property "Sim.Device" "V"
				(at 0 0 0)
			)
			(property "Sim.Params" "y1=0 y2=1 td=2n tr=2n tf=2n tw=50n per=100n"
				(at 2.54 -2.54 0)
			)
			(property "ki_keywords" "simulation"
				(at 0 0 0)
			)
			(symbol "VPULSE_0_0"
				(polyline
					(pts
						(xy -2.032 -0.762) (xy -1.397 -0.762) (xy -1.143 0.762) (xy -0.127 0.762) (xy 0.127 -0.762) (xy 1.143 -0.762)
						(xy 1.397 0.762) (xy 2.032 0.762)
					)
					(fill
						(type none)
					)
				)
				(text "+"
					(at 0 1.905 0)
				)
			)
			(symbol "VPULSE_0_1"
				(circle
					(center 0 0)
					(radius 2.54)
					(fill
						(type background)
					)
				)
			)
			(symbol "VPULSE_1_1"
				(pin passive line
					(at 0 5.08 270)
					(length 2.54)
					(name "~")
					(number "1")
				)
				(pin passive line
					(at 0 -5.08 90)
					(length 2.54)
					(name "~")
					(number "2")
				)
			)
		)
		(symbol "power:GND"
			(power)
			(pin_names
				(offset 0)
			)
			(exclude_from_sim no)
			(in_bom yes)
			(on_board yes)
			(property "Reference" "#PWR"
				(at 0 -6.35 0)
			)
			(property "Value" "GND"
				(at 0 -3.81 0)
			)
			(property "Footprint" ""
				(at 0 0 0)
			)
			(property "Datasheet" ""
				(at 0 0 0)
			)
			(property "Description" "Power symbol creates a global label with name \"GND\" , ground"
				(at 0 0 0)
			)
			(property "ki_keywords" "global power"
				(at 0 0 0)
			)
			(symbol "GND_0_1"
				(polyline
					(pts
						(xy 0 0) (xy 0 -1.27) (xy 1.27 -1.27) (xy 0 -2.54) (xy -1.27 -1.27) (xy 0 -1.27)
					)
					(fill
						(type none)
					)
				)
			)
			(symbol "GND_1_1"
				(pin power_in line
					(at 0 0 270)
					(length 0) hide
					(name "GND")
					(number "1")
				)
			)
		)
		(symbol "up-down:Up-Down"
			(pin_names
				(offset 1.016)
			)
			(exclude_from_sim no)
			(in_bom yes)
			(on_board yes)
			(property "Reference" "U"
				(at -7.62 8.89 0)
			)
			(property "Value" "up-down"
				(at -7.62 -8.89 0)
			)
			(property "Footprint" ""
				(at 0 0 0)
			)
			(property "Datasheet" ""
				(at 0 0 0)
			)
			(property "Description" "3 Bit Up-Down Counter"
				(at 0 0 0)
			)
			(property "ki_keywords" "CMOS"
				(at 0 0 0)
			)
			(property "ki_fp_filters" "DIP?16*"
				(at 0 0 0)
			)
			(symbol "Up-Down_1_0"
				(pin input clock
					(at -12.7 0 0)
					(length 5.08)
					(name "CK")
					(number "1")
				)
				(pin input line
					(at -12.7 -2.54 0)
					(length 5.08)
					(name "Up-down")
					(number "2")
				)
				(pin output line
					(at 12.7 2.54 180)
					(length 5.08)
					(name "Q1")
					(number "3")
				)
				(pin output line
					(at 12.7 0 180)
					(length 5.08)
					(name "Q2")
					(number "4")
				)
				(pin output line
					(at 12.7 -2.54 180)
					(length 5.08)
					(name "Q3")
					(number "5")
				)
			)
			(symbol "Up-Down_1_1"
				(rectangle
					(start -7.62 5.08)
					(end 7.62 -5.08)
					(fill
						(type background)
					)
				)
			)
		)
	)
	(wire
		(pts
			(xy 213.36 80.01) (xy 226.06 80.01)
		)
	)
	(wire
		(pts
			(xy 213.36 101.6) (xy 213.36 80.01)
		)
	)
	(wire
		(pts
			(xy 222.25 87.63) (xy 222.25 82.55)
		)
	)
	(wire
		(pts
			(xy 222.25 82.55) (xy 226.06 82.55)
		)
	)
	(text "Up-Down Counter"
		(exclude_from_sim no)
		(at 242.57 115.57 0)
	)
	(label "q1"
		(at 251.46 77.47 0)
		(fields_autoplaced yes)
	)
	(label "clk"
		(at 213.36 87.63 0)
		(fields_autoplaced yes)
	)
	(label "ud"
		(at 222.25 87.63 0)
		(fields_autoplaced yes)
	)
	(label "q2"
		(at 251.46 80.01 0)
		(fields_autoplaced yes)
	)
	(label "q3"
		(at 251.46 82.55 0)
		(fields_autoplaced yes)
	)
	(symbol
		(lib_id "power:GND")
		(at 213.36 111.76 0)
		(unit 1)
		(exclude_from_sim no)
		(in_bom yes)
		(on_board yes)
		(dnp no)
		(fields_autoplaced yes)
		(property "Reference" "#PWR02"
			(at 213.36 118.11 0)
		)
		(property "Value" "GND"
			(at 213.36 116.84 0)
		)
		(property "Footprint" ""
			(at 213.36 111.76 0)
		)
		(property "Datasheet" ""
			(at 213.36 111.76 0)
		)
		(property "Description" "Power symbol creates a global label with name \"GND\" , ground"
			(at 213.36 111.76 0)
		)
		(pin "1")
		(instances
			(project "up-down-c"
				(path
					(reference "#PWR02")
					(unit 1)
				)
			)
		)
	)
	(symbol
		(lib_id "Simulation_SPICE:VPULSE")
		(at 222.25 92.71 0)
		(unit 1)
		(exclude_from_sim no)
		(in_bom yes)
		(on_board yes)
		(dnp no)
		(fields_autoplaced yes)
		(property "Reference" "Vupd1"
			(at 226.06 90.0401 0)
		)
		(property "Value" "VPULSE"
			(at 226.06 92.5801 0)
		)
		(property "Footprint" ""
			(at 222.25 92.71 0)
		)
		(property "Datasheet" "~"
			(at 222.25 92.71 0)
		)
		(property "Description" "Voltage source, pulse"
			(at 222.25 92.71 0)
		)
		(property "Sim.Pins" "1=+ 2=-"
			(at 222.25 92.71 0)
		)
		(property "Sim.Type" "PULSE"
			(at 222.25 92.71 0)
		)
		(property "Sim.Device" "V"
			(at 222.25 92.71 0)
		)
		(property "Sim.Params" "y1=0 y2=5 td=1u tr=1u tf=1u tw=500u per=1m"
			(at 226.06 95.1201 0)
		)
		(pin "2")
		(pin "1")
		(instances
			(project "up-down-c"
				(path
					(reference "Vupd1")
					(unit 1)
				)
			)
		)
	)
	(symbol
		(lib_id "up-down:Up-Down")
		(at 238.76 80.01 0)
		(unit 1)
		(exclude_from_sim no)
		(in_bom yes)
		(on_board yes)
		(dnp no)
		(fields_autoplaced yes)
		(property "Reference" "U1"
			(at 238.76 69.85 0)
		)
		(property "Value" "up-down"
			(at 238.76 72.39 0)
		)
		(property "Footprint" ""
			(at 238.76 80.01 0)
		)
		(property "Datasheet" ""
			(at 238.76 80.01 0)
		)
		(property "Description" "3 Bit Up-Down Counter"
			(at 238.76 80.01 0)
		)
		(property "Sim.Library" "state-machine-3b-count.lib"
			(at 238.76 80.01 0)
		)
		(property "Sim.Name" "3bcounter"
			(at 238.76 80.01 0)
		)
		(property "Sim.Device" "SUBCKT"
			(at 238.76 80.01 0)
		)
		(property "Sim.Pins" "1=clock 2=updown 3=out_b0 4=out_b1 5=out_b2"
			(at 238.76 80.01 0)
		)
		(pin "5")
		(pin "1")
		(pin "3")
		(pin "4")
		(pin "2")
		(instances
			(project "up-down-c"
				(path
					(reference "U1")
					(unit 1)
				)
			)
		)
	)
	(symbol
		(lib_id "Simulation_SPICE:VPULSE")
		(at 213.36 106.68 0)
		(unit 1)
		(exclude_from_sim no)
		(in_bom yes)
		(on_board yes)
		(dnp no)
		(fields_autoplaced yes)
		(property "Reference" "Vclk1"
			(at 217.17 104.0101 0)
		)
		(property "Value" "VPULSE"
			(at 217.17 106.5501 0)
		)
		(property "Footprint" ""
			(at 213.36 106.68 0)
		)
		(property "Datasheet" "~"
			(at 213.36 106.68 0)
		)
		(property "Description" "Voltage source, pulse"
			(at 213.36 106.68 0)
		)
		(property "Sim.Pins" "1=+ 2=-"
			(at 213.36 106.68 0)
		)
		(property "Sim.Type" "PULSE"
			(at 213.36 106.68 0)
		)
		(property "Sim.Device" "V"
			(at 213.36 106.68 0)
		)
		(property "Sim.Params" "y1=0 y2=5 td=1u tr=1u tf=1u tw=10u per=24u"
			(at 217.17 109.0901 0)
		)
		(pin "1")
		(pin "2")
		(instances
			(project "up-down-c"
				(path
					(reference "Vclk1")
					(unit 1)
				)
			)
		)
	)
	(symbol
		(lib_id "power:GND")
		(at 222.25 97.79 0)
		(unit 1)
		(exclude_from_sim no)
		(in_bom yes)
		(on_board yes)
		(dnp no)
		(property "Reference" "#PWR01"
			(at 222.25 104.14 0)
		)
		(property "Value" "GND"
			(at 224.79 101.092 0)
		)
		(property "Footprint" ""
			(at 222.25 97.79 0)
		)
		(property "Datasheet" ""
			(at 222.25 97.79 0)
		)
		(property "Description" "Power symbol creates a global label with name \"GND\" , ground"
			(at 222.25 97.79 0)
		)
		(pin "1")
		(instances
			(project "up-down-c"
				(path
					(reference "#PWR01")
					(unit 1)
				)
			)
		)
	)
	(sheet_instances
		(path
			(page "1")
		)
	)
)