FreeCalypso > hg > freecalypso-schem2
annotate venus/src/periph/charging_circuit.v @ 70:8bc2aa52fd23
manual RESET button new part: 260 g force, shorter actuator
One of the main envisioned use cases for FC Venus is field demonstration:
the board will be carried around, mounted on a sheet of acrylic or somesuch,
it will have a battery and an antenna connected, there will be a test SIM
with active service inserted, and the setup will be ready to demonstrate
as a working phone at a moment's notice. But when a demo is not actively
in progress, the fully assembled setup will be transported around in a big
and loose ESD bag, and it will need to be equivalent to a traditional phone
in its switched-off state: battery present, RTC keeping time, but not
switched on all the time.
Having a RESET button of the same keyswitch type as used for the regular
keypad and PWON would cause a problem for such field transport scenarios:
any spurious press of this button would cause a "misc boot" switch-on.
Short spurious presses of PWON are filtered out by the firmware (automatic
power-off if the button isn't held down long enough), but the same cannot
be done for super-low-level nTESTRESET. However, a button with significantly
greater operating force and a shorter actuator (not sticking out to the same
height as the regular keypad buttons) should be much safer.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 02 Dec 2021 22:40:39 +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 |