FreeCalypso > hg > freecalypso-schem2
view venus/src/periph/charging_circuit.v @ 38:32b848a081a3
venus/doc/USB-and-mobile-domains treatise written
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 26 Nov 2021 23:02:19 +0000 |
parents | 1d2b57d4f1c9 |
children | df16d0eabf8a |
line wrap: on
line source
/* * This module encapsulates the battery charging circuit. */ module charging_circuit (GND, VCHG, VBAT, ICTL, PCHG, VCCS, VBATS); input GND, VCHG; inout VBAT; input ICTL, PCHG; output VCCS, VBATS; wire mid1, mid2; Si9407AEY Q401 (.G(ICTL), .S(VCHG), .D(mid1)); capacitor C401 (ICTL, VCHG); resistor Rprech (PCHG, mid1); misc_diode D404 (.A(mid1), .C(mid2)); resistor_with_sense Rmeas (.side1_current(mid2), .side1_sense(VCCS), .side2_current(VBAT), .side2_sense(VBATS) ); endmodule