FreeCalypso > hg > freecalypso-schem2
comparison venus/src/periph/buzzer_circuit.v @ 63:4a7db02ddd3e
buzzer circuit implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 01 Dec 2021 20:22:47 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
62:a1b55af7f04d | 63:4a7db02ddd3e |
---|---|
1 module buzzer_circuit (GND, VBAT, Digital_input); | |
2 | |
3 input GND, VBAT; | |
4 input Digital_input; | |
5 | |
6 wire Buzzer_neg; | |
7 | |
8 buzzer_wrap buz (.Pos(VBAT), .Neg(Buzzer_neg)); | |
9 | |
10 clamp_diode_pair D_pair (.Signal(Buzzer_neg), .Pos_rail(VBAT), .Neg_rail(GND)); | |
11 | |
12 transistor_ext_bias npn (.E(GND), .B(Digital_input), .C(Buzzer_neg)); | |
13 | |
14 endmodule |