FreeCalypso > hg > freecalypso-schem2
annotate venus/src/periph/bl_current_sink.v @ 63:4a7db02ddd3e
buzzer circuit implemented
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Wed, 01 Dec 2021 20:22:47 +0000 |
| parents | d55824058cfc |
| children |
| rev | line source |
|---|---|
|
47
9f5a3567d699
progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 module bl_current_sink (GND, Vio, BL_GPIO9, BL_GPIO11, BL_GPIO12, LEDK); |
|
9f5a3567d699
progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 |
|
9f5a3567d699
progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 input GND, Vio; |
|
9f5a3567d699
progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 input BL_GPIO9, BL_GPIO11, BL_GPIO12; |
|
9f5a3567d699
progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 output [1:3] LEDK; |
|
9f5a3567d699
progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 |
|
9f5a3567d699
progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 wire SET; |
|
9f5a3567d699
progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
|
9f5a3567d699
progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 MAX1916 MAX1916 (.GND(GND), |
|
9f5a3567d699
progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 .EN(BL_GPIO9), |
|
9f5a3567d699
progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 .SET(SET), |
|
9f5a3567d699
progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 .LEDK(LEDK) |
|
9f5a3567d699
progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 ); |
|
9f5a3567d699
progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 |
|
48
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
47
diff
changeset
|
15 resistor BL_EN_pulldown (BL_GPIO9, GND); |
|
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
47
diff
changeset
|
16 |
|
47
9f5a3567d699
progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 bl_current_select cursel (.GND(GND), |
|
9f5a3567d699
progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 .Vio(Vio), |
|
9f5a3567d699
progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 .BL_GPIO11(BL_GPIO11), |
|
9f5a3567d699
progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 .BL_GPIO12(BL_GPIO12), |
|
9f5a3567d699
progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 .SET(SET) |
|
9f5a3567d699
progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 ); |
|
9f5a3567d699
progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 |
|
9f5a3567d699
progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 endmodule |
