PCB Placement Cleanup
VSS_2 via-at-SMDTable
| Function | U1 pin |
|---|---|
| PDM clock | P0.13 |
| PDM data | P0.14 |
| T5838 THSEL/config | P0.15 |
| T5838 WAKE | P0.16 |
| SPI NAND SCK | P0.20 |
| SPI NAND MOSI | P0.21 |
| SPI NAND MISO | P0.22 |
| NAND A CS | P0.23 |
| NAND B CS | P0.24 |
| Fuel-gauge SDA/SCL | P0.26 / P0.27 |
| Fuel alert | P0.28 |
| Charger CHG/PGOOD | P0.29 / P0.30 |
| USB current select | P0.31 |
| Button | P0.11 |
| RGB red/green/blue | P0.06 / P0.07 / P0.08 |
| USB | D+, D−, VBUS |
| LF crystal | P0.00 / P0.01 |
| Debug/reset | SWDIO, SWDCLK, P0.18/nRESET |
BOOT: validate battery, time, storage, and last clip.IDLE_AAD: microphone AAD active, MCU asleep, circular buffer not yet capturing continuous PCM.LISTEN_BUFFER: on acoustic wake, run low-power PDM and continuously encode/store the newest 10 seconds in RAM.RECORDING: first button press freezes/commits the current pre-trigger frames, opens a clip, and appends new Opus frames.FINALIZE: second press writes duration, timestamps, CRC/index metadata, then atomically closes the file.USB_EXPORT: recorder filesystem protected from concurrent modification; host sees a stable snapshot/read-only volume or recorder unmounts it.DFU: bootloader update path; retained clips remain outside firmware-update regions.LOW_BATTERY: finalize any active clip, reduce LED/BLE activity, then enter safe shutdown policy.USB_CURRENT_SELECT=0 selects the charger’s 100 mA mode. Drive it high only after the USB stack determines the host/source allows the higher current mode. System load has priority through the charger power path; charging current automatically reduces under load.USB_DP_MCU/USB_DM_MCU, then R32/R33 (27 Ω), then USB_DP_PROTECTED/USB_DM_PROTECTED, the U10 ESD array, and finally USB_DP_CONN/USB_DM_CONN at J1. Keep the resistors close to U1 during PCB placement.Toolchain
Pin Map
Startup Sequence
Recording State Machine
Buffering
T5838 Notes
USB Current Policy
USB Hardware Segments
LED Policy
Timekeeping
NAND Integrity