FreeCalypso > hg > freecalypso-schem2
annotate venus/src/periph/led_npn.v @ 94:4502eec1e805
D405: use Nexperia part sourced from Digi-Key direct
The previously selected part was from a Digi-Key marketplace vendor,
and they seem to not actually have that part, as the order has been
in limbo for over a month - so I put in the time and effort to look
around, and found a readily available equivalent part from Nexperia.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 11 Jan 2022 19:11:22 +0000 |
parents | 06e95ff0023b |
children |
rev | line source |
---|---|
52
06e95ff0023b
ON_nOFF indicator LED implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /* |
06e95ff0023b
ON_nOFF indicator LED implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 * This module captures the circuit for showing the state of a digital signal |
06e95ff0023b
ON_nOFF indicator LED implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 * on a LED using an NPN transistor instead of a MOSFET, like we did for PWL |
06e95ff0023b
ON_nOFF indicator LED implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 * on Caramel2. |
06e95ff0023b
ON_nOFF indicator LED implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 */ |
06e95ff0023b
ON_nOFF indicator LED implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 |
06e95ff0023b
ON_nOFF indicator LED implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 module led_npn (GND, VBAT, Signal); |
06e95ff0023b
ON_nOFF indicator LED implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
06e95ff0023b
ON_nOFF indicator LED implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 input GND, VBAT, Signal; |
06e95ff0023b
ON_nOFF indicator LED implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
06e95ff0023b
ON_nOFF indicator LED implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 wire R_to_LED, LED_to_Q; |
06e95ff0023b
ON_nOFF indicator LED implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 |
06e95ff0023b
ON_nOFF indicator LED implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 resistor R (VBAT, R_to_LED); |
06e95ff0023b
ON_nOFF indicator LED implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 basic_LED led (.A(R_to_LED), .C(LED_to_Q)); |
06e95ff0023b
ON_nOFF indicator LED implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 transistor_slot Q (.E(GND), .B(Signal), .C(LED_to_Q)); |
06e95ff0023b
ON_nOFF indicator LED implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 |
06e95ff0023b
ON_nOFF indicator LED implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 endmodule |