FreeCalypso > hg > freecalypso-schem2
annotate venus/src/periph/charging_circuit.v @ 92:148fab6e07e3
add RTC domain test points
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 11 Dec 2021 04:48:30 +0000 |
parents | df16d0eabf8a |
children |
rev | line source |
---|---|
32
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /* |
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 * This module encapsulates the battery charging circuit. |
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 */ |
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 |
41
df16d0eabf8a
charging_circuit structural module contains no connections to GND
Mychaela Falconia <falcon@freecalypso.org>
parents:
33
diff
changeset
|
5 module charging_circuit (VCHG, VBAT, ICTL, PCHG, VCCS, VBATS); |
32
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 |
41
df16d0eabf8a
charging_circuit structural module contains no connections to GND
Mychaela Falconia <falcon@freecalypso.org>
parents:
33
diff
changeset
|
7 input VCHG; |
32
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 inout VBAT; |
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 |
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 input ICTL, PCHG; |
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 output VCCS, VBATS; |
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 |
33
1d2b57d4f1c9
intnoconn approach to charging current sense resistor
Mychaela Falconia <falcon@freecalypso.org>
parents:
32
diff
changeset
|
13 wire mid1, mid2; |
32
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 |
33
1d2b57d4f1c9
intnoconn approach to charging current sense resistor
Mychaela Falconia <falcon@freecalypso.org>
parents:
32
diff
changeset
|
15 Si9407AEY Q401 (.G(ICTL), .S(VCHG), .D(mid1)); |
32
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 capacitor C401 (ICTL, VCHG); |
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 |
33
1d2b57d4f1c9
intnoconn approach to charging current sense resistor
Mychaela Falconia <falcon@freecalypso.org>
parents:
32
diff
changeset
|
18 resistor Rprech (PCHG, mid1); |
32
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 |
33
1d2b57d4f1c9
intnoconn approach to charging current sense resistor
Mychaela Falconia <falcon@freecalypso.org>
parents:
32
diff
changeset
|
20 misc_diode D404 (.A(mid1), .C(mid2)); |
32
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 |
33
1d2b57d4f1c9
intnoconn approach to charging current sense resistor
Mychaela Falconia <falcon@freecalypso.org>
parents:
32
diff
changeset
|
22 resistor_with_sense Rmeas (.side1_current(mid2), |
1d2b57d4f1c9
intnoconn approach to charging current sense resistor
Mychaela Falconia <falcon@freecalypso.org>
parents:
32
diff
changeset
|
23 .side1_sense(VCCS), |
1d2b57d4f1c9
intnoconn approach to charging current sense resistor
Mychaela Falconia <falcon@freecalypso.org>
parents:
32
diff
changeset
|
24 .side2_current(VBAT), |
1d2b57d4f1c9
intnoconn approach to charging current sense resistor
Mychaela Falconia <falcon@freecalypso.org>
parents:
32
diff
changeset
|
25 .side2_sense(VBATS) |
1d2b57d4f1c9
intnoconn approach to charging current sense resistor
Mychaela Falconia <falcon@freecalypso.org>
parents:
32
diff
changeset
|
26 ); |
32
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 |
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 endmodule |