FreeCalypso > hg > freecalypso-schem2
annotate venus/src/periph/buzzer_circuit.v @ 98:3ab69117b09f default tip
minnie/doc/Design-spec: finished in the first pass
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 01 Oct 2023 08:17:05 +0000 |
parents | 4a7db02ddd3e |
children |
rev | line source |
---|---|
63
4a7db02ddd3e
buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 module buzzer_circuit (GND, VBAT, Digital_input); |
4a7db02ddd3e
buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 |
4a7db02ddd3e
buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 input GND, VBAT; |
4a7db02ddd3e
buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 input Digital_input; |
4a7db02ddd3e
buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 |
4a7db02ddd3e
buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 wire Buzzer_neg; |
4a7db02ddd3e
buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 |
4a7db02ddd3e
buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 buzzer_wrap buz (.Pos(VBAT), .Neg(Buzzer_neg)); |
4a7db02ddd3e
buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 |
4a7db02ddd3e
buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 clamp_diode_pair D_pair (.Signal(Buzzer_neg), .Pos_rail(VBAT), .Neg_rail(GND)); |
4a7db02ddd3e
buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 |
4a7db02ddd3e
buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 transistor_ext_bias npn (.E(GND), .B(Digital_input), .C(Buzzer_neg)); |
4a7db02ddd3e
buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 |
4a7db02ddd3e
buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 endmodule |