FreeCalypso > hg > freecalypso-schem2
comparison venus/src/periph/charging_circuit.v @ 33:1d2b57d4f1c9
intnoconn approach to charging current sense resistor
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 22 Nov 2021 03:03:15 +0000 |
parents | 85fbd582af88 |
children | df16d0eabf8a |
comparison
equal
deleted
inserted
replaced
32:85fbd582af88 | 33:1d2b57d4f1c9 |
---|---|
8 inout VBAT; | 8 inout VBAT; |
9 | 9 |
10 input ICTL, PCHG; | 10 input ICTL, PCHG; |
11 output VCCS, VBATS; | 11 output VCCS, VBATS; |
12 | 12 |
13 wire mid; | 13 wire mid1, mid2; |
14 | 14 |
15 Si9407AEY Q401 (.G(ICTL), .S(VCHG), .D(mid)); | 15 Si9407AEY Q401 (.G(ICTL), .S(VCHG), .D(mid1)); |
16 capacitor C401 (ICTL, VCHG); | 16 capacitor C401 (ICTL, VCHG); |
17 | 17 |
18 resistor Rprech (PCHG, mid); | 18 resistor Rprech (PCHG, mid1); |
19 | 19 |
20 misc_diode D404 (.A(mid), .C(VCCS)); | 20 misc_diode D404 (.A(mid1), .C(mid2)); |
21 | 21 |
22 resistor Rmeas (VCCS, VBATS); | 22 resistor_with_sense Rmeas (.side1_current(mid2), |
23 | 23 .side1_sense(VCCS), |
24 starpoint VBATS_join (VBAT, VBATS); | 24 .side2_current(VBAT), |
25 .side2_sense(VBATS) | |
26 ); | |
25 | 27 |
26 endmodule | 28 endmodule |