FreeCalypso > hg > freecalypso-schem2
diff venus/src/periph/led_mosfet.v @ 52:06e95ff0023b
ON_nOFF indicator LED implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 27 Nov 2021 18:34:05 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/venus/src/periph/led_mosfet.v Sat Nov 27 18:34:05 2021 +0000 @@ -0,0 +1,17 @@ +/* + * This module captures the circuit for showing the state of a digital signal + * on a LED without loading that digital signal by driving the LED from VBAT + * and using a MOSFET to control it. + */ + +module led_mosfet (GND, VBAT, Signal); + +input GND, VBAT, Signal; + +wire R_to_LED, LED_to_Q; + +resistor R (VBAT, R_to_LED); +basic_LED led (.A(R_to_LED), .C(LED_to_Q)); +mosfet Q (.G(Signal), .S(GND), .D(LED_to_Q)); + +endmodule