view lunalcd2/src/vsrc/current_select.v @ 68:8bfa10553e36

lunalcd2/src/MCL: different part for two-post VBAT supply header The tin-plated part is currently out of stock at Digi-Key, but the better gold-plated part is in stock and still reasonably inexpensive.
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 26 Jun 2021 20:40:29 +0000
parents d5d14b426faa
children
line wrap: on
line source

module current_select (Vio, SET);

input Vio;
output SET;

wire sw_1mA, sw_2mA, sw_4mA, sw_8mA;

pkg_DIP_SW_x4 dipsw (	.pin_1(Vio),
			.pin_2(sw_8mA),
			.pin_3(Vio),
			.pin_4(sw_4mA),
			.pin_5(Vio),
			.pin_6(sw_2mA),
			.pin_7(Vio),
			.pin_8(sw_1mA)
	);

resistor R_1mA (sw_1mA, SET);
resistor R_2mA (sw_2mA, SET);
resistor R_4mA (sw_4mA, SET);
resistor R_8mA (sw_8mA, SET);

endmodule