FreeCalypso > hg > freecalypso-schem2
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/venus/src/periph/buzzer_circuit.v Wed Dec 01 20:22:47 2021 +0000 @@ -0,0 +1,14 @@ +module buzzer_circuit (GND, VBAT, Digital_input); + +input GND, VBAT; +input Digital_input; + +wire Buzzer_neg; + +buzzer_wrap buz (.Pos(VBAT), .Neg(Buzzer_neg)); + +clamp_diode_pair D_pair (.Signal(Buzzer_neg), .Pos_rail(VBAT), .Neg_rail(GND)); + +transistor_ext_bias npn (.E(GND), .B(Digital_input), .C(Buzzer_neg)); + +endmodule