FreeCalypso > hg > freecalypso-schem2
comparison venus/src/periph/charging_circuit.v @ 32:85fbd582af88
Venus src: charging circuit captured
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 21 Nov 2021 20:20:38 +0000 |
parents | |
children | 1d2b57d4f1c9 |
comparison
equal
deleted
inserted
replaced
31:d0b6c4915397 | 32:85fbd582af88 |
---|---|
1 /* | |
2 * This module encapsulates the battery charging circuit. | |
3 */ | |
4 | |
5 module charging_circuit (GND, VCHG, VBAT, ICTL, PCHG, VCCS, VBATS); | |
6 | |
7 input GND, VCHG; | |
8 inout VBAT; | |
9 | |
10 input ICTL, PCHG; | |
11 output VCCS, VBATS; | |
12 | |
13 wire mid; | |
14 | |
15 Si9407AEY Q401 (.G(ICTL), .S(VCHG), .D(mid)); | |
16 capacitor C401 (ICTL, VCHG); | |
17 | |
18 resistor Rprech (PCHG, mid); | |
19 | |
20 misc_diode D404 (.A(mid), .C(VCCS)); | |
21 | |
22 resistor Rmeas (VCCS, VBATS); | |
23 | |
24 starpoint VBATS_join (VBAT, VBATS); | |
25 | |
26 endmodule |