FreeCalypso > hg > freecalypso-schem2
annotate 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 |
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 |
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 module charging_circuit (GND, VCHG, VBAT, ICTL, PCHG, VCCS, VBATS); |
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 |
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 input GND, VCHG; |
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 |
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 wire mid; |
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 |
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 Si9407AEY Q401 (.G(ICTL), .S(VCHG), .D(mid)); |
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 |
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 resistor Rprech (PCHG, mid); |
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 |
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 misc_diode D404 (.A(mid), .C(VCCS)); |
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 |
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 resistor Rmeas (VCCS, VBATS); |
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 |
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 starpoint VBATS_join (VBAT, VBATS); |
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 |
85fbd582af88
Venus src: charging circuit captured
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 endmodule |