# Wake-up, timekeeping, environmental sensing and battery voltage

U401 maintains at 2.8 V the timer U402, the clock U403, the monostable U405, and the measurement gate U408. The screen, processor, BME280, and digital button outputs are at VMAIN at 3.3 V. The source schematic is in `hardware/wake.json`. A total of 58 positions with 25 ordering codes were used. Direct inquiry of the JLC assembly inventory as of November 15, 2026, 12:08 UTC, shows sufficient quantities for five boards per code. BME280 had 151 units, TPL5111 had 366 units. Quantities and individual HTTP dates are in `verification/wake/stock.json`.

## Power sequence

| Event | Result and condition |
|---|---|
| SYS_AON appears | U401 generates VAON. U402 reads R401 within 100–120 ms and activates MAIN_EN for the first power-up. U405 may generate an initial pulse that delays the resistance reading. Acceptance margin up to 500 ms with test inputs left open. C401 and C402 have 4.7 μF, 16 V, 0805. At 4.6 V and 25 °C, the typical Samsung curve yields 3.76 μF. TI requires a minimum of 0.5 μF effective at the output. |
| Alarm | Open-drain /INT falls low. Channel 1 of U405 produces one finite pulse at 1Qn, D401 pulls the Q401 gate low and Q401 applies VAON to WAKE_MDRV. The RTC stays on VAON with VMAIN off. A persistent alarm can draw up to an additional 61.1 μA through R404. |
| Press | Any of the Alps contacts pulls KEYn_N low through a 330 Ω resistor. D402/D403 activates channel 2 of U405. U406 isolates and inverts the three signals separately. BTN1–3 are active HIGH. A closed contact adds up to 90 μA. For a second pulse from the button group, all buttons in the group must first be released. The RTC channel operates even with a button held pressed. |
| Valid pulse at M_DRV | TPL5111 requires at least 20 ms and may have a monitoring window of 30 ms. 47 kΩ × 4.7 μF × K≈0.5 yields approximately 110 ms. Coefficient K is typically characterized. A model with K=0.4…0.65, effective capacitance 2.2…5.95 μF and R±1% gives 40.95–183.59 ms. An initial pulse may occur upon startup of U405. |
| Measurement and scheduling the next alarm | U403 uses 0x51, U404 uses 0x76, the bus operates at 100 kHz. Firmware reads and clears AF. On startup and after screen update, it programs the next quarter-hour of the RTC at second zero and at minutes 00, 15, 30, or 45, then verifies through a read operation. A manual wake-up, up to two seconds before a quarter-hour, uses the reading from that wake-up for the imminent interval and programs the next quarter-hour. A healthy cycle duration is less than the watchdog interval. Upon loss of SYS_AON, the OS flag (bit 7) indicates that the clock reading is unreliable. Clearing the OS/RTC status and ignoring the buttons at this startup prevents false actions from the initially discharged capacitors C412–414. |
| Termination | After completion of operations, the firmware sets TIMER_DONE for at least 5 ms. R402/R403/C404 filter the control within the VAON domain. TI ignores DONE as long as M_DRV is high. The firmware retransmits positive-edge pulses if power is still available. |
| Firmware hang or sustained interrupt | The EN/ONE_SHOT pin is tied to ground. With a 30 kΩ resistor, TI Equation 1 yields 126.39 s, 123.39–129.43 s within the single resistor tolerance. After the wake-up pulse completion, expiration of the time interval stops VMAIN. A remaining RTC alarm in AF requires a fresh press to recover or reset on fixture. A fault that repeats transitions faster than the monostable duration may retrigger it. |
| Programming through pogo pins | SYS_AON is first applied with the hold contacts open. After observing the first rise of VMAIN or after 500 ms of stable VAON, VAON–WAKE_MDRV is closed via a dry contact. VTref is the reference input for the probe. At the end of a session longer than the RTC interval, the firmware is executed with RTC rearmed, hold is released, and stop is verified. |

The button inputs use R411–R413 = 100 kΩ to VAON and C412–C414 = 4.7 μF. The modeling limit of 2.2 μF is below the typical value of 4.46 μF at 2.85 V, with margin for tolerance, temperature, and aging. R414–R416 limit the peak current on a button press to approximately 8.7 mA and allow over 10 μA through the contact in the closed state. U406 is an SN74AUP3G14 with Ioff specified up to 0.6 μA per pin. Outputs to the nRF pass through 3.3 kΩ. In the event of temporary shorting of the analog pins, the current from an output is below 1.04 mA. R402 = 33 kΩ, R403 = 100 kΩ, and C404 = 10 nF provide 0.248 ms. An unwanted pulse of 10 μs generated at startup reached 0.119 V at DONE in simulation. A valid edge provides 2.42–2.54 V for VMAIN ±2%, with 1% resistor tolerances and ideal GPIO. Even with a 0.4 V penalty at the GPIO output, the 0.7 VAON threshold maintains a margin. [Texas Instruments TPL5111](https://www.ti.com/lit/ds/symlink/tpl5111.pdf) · [Nexperia 74HC123, tables 2–3 and application sections](https://assets.nexperia.com/documents/data-sheet/74HC_HCT123.pdf) · [TI SN74AUP3G14](https://www.ti.com/lit/ds/symlink/sn74aup3g14.pdf) · [Alps SKRPABE010](https://tech.alpsalpine.com/e/products/detail/SKRPABE010/) · [Samsung, characteristics CL21B475KOFNNN](https://product.samsungsem.com/mlcc/CL21B475KOFNNN.do)

## Clock and bus

PCF85063AT/AY is continuously powered. Note 5 in Table 40 of NXP confirms I²C tolerance to 5 V. SDA is open-drain, and resistors R405/R406 of 4.7 kΩ connect to VMAIN. Thus, the board does not power the bus from VAON during standby. NXP normally recommends the same supply for pull-up and VDD. The separately powered interface must be checked explicitly during power-ramp tests. At 100 pF per line, the calculated time between 30% and 70% is 0.402 μs including resistor tolerance. It is verified under 1 μs with all peripherals present. If SDA remains low after a disruption, the firmware attempts to recover the bus prior to reinitialization. U403 does not have a separate RTC battery. UTC integrity is lost when SYS_AON is lost. [NXP PCF85063A, revision 7.3](https://www.nxp.com/docs/en/data-sheet/PCF85063A.pdf)

Y401 is a 32.768 kHz crystal with a 7 pF load capacitance, ±10 ppm initial tolerance and a maximum ESR of 70 kΩ, within the oscillator's 100 kΩ limit. CAP_SEL=0 selects the internal 7 pF capacitors. Filtering between the DC-DC source and crystal depends on layout and short traces on the top layer. Frequency must be verified at room temperature on the CLKOUT output, activated temporarily. For ±20 ppm at 25 ±2 °C, the acceptable error is ±0.655 Hz at 32.768 kHz. Over time, a 20 ppm error represents 1.73 seconds per day. The quartz's parabolic curve increases deviation at low temperatures. [Abracon ABS07](https://abracon.com/Resonators/ABS07.pdf)

## Battery voltage measurement

U408 implements the function shown in Figure 4 of the SN74AUP1G97. Pin B is connected to ground, pin A is MEAS_FILTER, and pin C is MAIN_EN. U407 receives a HIGH signal only when both inputs are valid. R422 = 10 kΩ, R423 = 100 kΩ, and C418 = 10 nF filter an impulse of up to 10 μs to a maximum of 0.376 V in corner simulation. U408 is powered from VAON. R424 explicitly pulls the ON input to ground upon disappearance of VAON. C415 provides local decoupling of 1 μF at the U407 input, as per the TI example. U407 tolerates an ON voltage of 0 to 5.5 V independent of VIN, has a typical shutdown current of 2 nA, and connects QOD to output. The 10 kΩ/10 kΩ divider draws 210 μA at 4.2 V, only within the measurement window. The ratio offset of the 1% resistors is maximum ±1% of cell voltage. C416 = 1 nF and a Thevenin resistance of 5 kΩ provide approximately 5 μs. Firmware waits at least 5 ms after activation, reads, then explicitly disables the window. At 4.2 V, an ideal step on the upper side of the divider produces 2.100 V. After decoupling the same source, node AIN drops below 0.3 V in 11 μs. The actual delay of U407 is added, with a typical tOFF of 6 μs under TI test conditions. In the event of an undesired drop in VMAIN with MAIN_EN still HIGH, the command filter may maintain the active path for approximately 0.1 ms. Separate verification of the sudden voltage drop and the duration of any transient injection is performed. VBAT reading is the voltage at the charge node. With the battery removed, firmware cannot certify the physical presence of the cell solely from this measurement. [TI SN74AUP1G97](https://www.ti.com/lit/ds/symlink/sn74aup1g97.pdf) · [TI TPS22919](https://www.ti.com/lit/ds/symlink/tps22919.pdf)

## BME280, buttons and 3D clearance

VMAIN supplies both VDD and VDDIO on U404, with C405/C406 of 100 nF placed close to pads 6 and 8. CSB is at VDDIO, SDO is at GND. At startup, verify ID 0x60 and wait for the NVM copy to finish. Use forced mode for individual measurements. Bosch numbers the pads in clockwise order as viewed from above. Pad 1 is located at x=+1.025, y=+0.975 mm, near the opening in the sensor lid. Figure 21 indicates 0.50×0.35 mm, pitch 0.65 mm. The port remains free for assembly, soldering, and enclosure mounting. The sensor is checked after thermal equilibrium and during charging. [Bosch BME280, Section 7](https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bme280-ds002.pdf)

The mechanical model BME280 is officially associated with the Bosch LGA-8 footprint in the KiCad library, with the license stated in the STEP file header. KiCad pin 1 is located at (−0.975, +1.025) mm in Cartesian coordinates on the board. Overall, a local rotation of −90° and a rotated offset of (−0.035, −0.015) mm have been applied. [KiCad STEP model](https://gitlab.com/kicad/libraries/kicad-packages3D/-/blob/master/Package_LGA.3dshapes/Bosch_LGA-8_2.5x2.5mm_P0.65mm_ClockwisePinNumbering.step) · [Original KiCad footprint with transformation](https://gitlab.com/kicad/libraries/kicad-footprints/-/blob/master/Package_LGA.pretty/Bosch_LGA-8_2.5x2.5mm_P0.65mm_ClockwisePinNumbering.kicad_mod)

On SW401–403, terminals 1/2 and 3/4 are common. Alps indicates vertical actuation, stroke of 0.2 mm and nominal height of 2.5 mm. The housing model uses 2.6 mm; the 0.1 mm difference is a design margin. The public specification refers dimensional tolerances to the supplier’s assembly drawing. Measure the first board to confirm the actual margin against the 4.1 mm limit. The manufacturer's drawings are retained in `verification/wake/sources/switch-{0,1,2}.png`. [Alps, product specification](https://tech.alpsalpine.com/cms.media/product_spec_skrpabe010_en_c1c577738a.pdf)

## Results and bench acceptance limits

`verification/wake/rc.cir` and `ngspice.log` contain independent analysis in ngspice 47 of the filters, key capture, and ADC node. The model uses passive components, a contact resistance of maximum 0.5 Ω specified by Alps, and PWL sources. The key summation diode is short-circuited in the model to achieve the fastest possible recharge. At a touch duration of 40 ms and an effective capacitance of only 2.2 μF, the KEYn_N node remained at 1.470 V at 90 ms after initial contact. Capture must be performed within the first 60 ms after the appearance of VMAIN. `check.py` compares results separately against thresholds, pinouts, and dimensions. All 35 checks passed, including 144 modeled scenarios covering alarms, button presses, overlapping events, early DONE pulses, held signals and firmware hangs. The digital model checks the sequence specified in the datasheets. The timer’s internal circuitry and the behavior of the physical device remain outside its scope.

| Physical test to be performed | Threshold before prototype acceptance |
|---|---|
| SYS_AON 3.0–4.6 V, VMAIN off; first start with and without key pressed | VAON 2.758–2.842 V while the regulator is in regulation. First activation within at most 500 ms without hold. VMAIN disabled and BTN/SCL/SDA below 0.3 V in standby, without external power supply through fixture. |
| SYS_AON active, no key press / no alarm, VMAIN off | Separate measurement of AON at 25 °C, target ≤10 μA stabilized. The HC123 IC specifies a much wider limit of 80 μA at 5.5 V ranging up to +85 °C; measure the actual lot at the intended ambient temperature before estimating battery life in hot conditions. When a key is held for >3 minutes, the supplemental current must be less than 100 μA, and VMAIN must drop. |
| Each key and alarm / adjacent key with 0, 10, 50 ms; press duration 40 ms, hold for 5 minutes and sequences with rearm. | M_DRV pulses must last 35–250 ms for each wake source tested separately. Under normal conditions VMAIN must come up within 35 ms of the M_DRV edge; the diagnostic report identifies the button. An immediately issued DONE pulse is repeated, then VMAIN must fall below 0.3 V within 10 ms. |
| Freeze the firmware, including with /INT held low, without a fixture hold | MAIN_EN must turn off within 100–155 s, without restarts from a continuously asserted signal. A new button press must wake the system after a stuck AF; an RTC edge must wake it after a stuck button. |
| SIM valid battery at 3.0 / 3.6 / 4.2 V, USB present/absent, with and without processor in sleep mode | After 5 ms the reported value must be within ±100 mV of the DMM. With the MCU off, steady-state AIN must be <0.1 V. When power is forcibly cut during ADC acquisition, record VBAT_SENSE, VMAIN, U407.ON and the current entering the board while it is held off. |
| Place the BME280 beside a reference probe. Let ambient conditions stabilize, then measure with battery charging off and on. | At 20–30 °C and 30–70% RH: ID 0x60, deviation ≤1 °C, ≤5 percentage points RH, ≤2 hPa at the same altitude. Temperature measurement during charging remains within 1 °C of ambient. |
| UTC, total loss of SYS_AON and 20 RTC cycles | After loss of SYS_AON, the state is reported as UNCERTAIN. With VAON maintained and VMAIN off between acquisitions, record 20 consecutive /INT edges at minutes 00, 15, 30, and 45, second zero. Repeat with press at one second before a quarter and verify the merging of the two acquisitions. After synchronization, the deviation from UTC reference remains within ±5 s after 24 hours at bench temperature. |

## Design log

- Live inventory for C2829066, C3304278, and C3019759 has invalidated the initial selection RV-3028-C7. PCF85063AT/AY and the external crystal are in stock, and the tolerant interface allows for two power supply voltages without parasitic power.
- A continuous connection /INT–TPL would keep the regulator powered when the AF bit remains locked. U405 generates independent pulses for alarm and keys.
- A simple battery measurement could power the MCU input at startup. The U408 interlock, the U407 quick-output-discharge path and R424 also block this path during an incomplete transition between power domains.
- Nordic Note #103 justified filtering of TIMER_DONE and VBAT_MEAS_EN. Resistors R417–419 limit transient currents between the analog GPIOs as described in #100.
- Preflight revealed overlaps at Y401/U403 and R417/U406. Y401, R404 and R417–R419 were moved in the common design source before rerouting.
