ADR-0024: Isolated synchronized pulse engine
Status: accepted when the issue PR merges. Work record: #41.
Select one RP2350 PIO state machine and one DMA channel for four-axis waveform scheduling. A single eight-bit pin update covers the baseline interleaved STEP/DIR GP2–GP9 assignment. The wiring proposal does not establish electrical compatibility or driver timing; the adapter remains disabled in the ordinary image. Its separate unloaded-fixture compilation path requires explicit interface/timing/procedure records and is never reached by startup or USB commands.
Each immutable DMA word contains both rising and STEP-low states plus the remaining slot delay. The assembled PIO program lowers STEP before its next blocking pull. Empty FIFO therefore leaves commanded STEP low and retains directions; it does not establish braking, restraint or a safe mechanical state. Entire finite segments are prepared before dispatch, so parsing, telemetry, producer timing and CPU interrupt service cannot refill or modify an active waveform. There is no DMA/PIO ISR or refill priority to compete with control timing. Actual clock/jitter and electrical waveform still require a logic-analyzer record.
The bounded C planner emits a common four-axis DDA schedule with exact commanded counts, simultaneous nonzero-axis final step, guarded direction changes, and a symmetric discrete rate/acceleration/deceleration envelope. A segment has at most 512 common slots and 250 ms nominal duration. Its timing constants are explicitly synthetic fixture limits: one-microsecond PIO ticks, five-tick high, at least five-tick low, at least ten-tick direction guards and at most 20 kHz commanded rate. These are not reviewed CL57Y-V20 limits; no physical capability may adopt them as such.
An eight-entry queue has one producer and one consumer, release/acquire publication, immutable slot ownership and explicit overflow/starvation/latched-pause results. The DMA consumer owns a separate copy until completion. Invalid numeric/rate/duration/capacity input produces no partial plan. Plans are revalidated before queue insertion and DMA start. Pause/abort for an isolated unloaded pattern means finish the current finite segment and inhibit another one; it does not claim an approved loaded stopping response. Local emergency stopping, hardware permissions and fault policies remain their independently reviewed authorities.
Golden equations, randomized vectors, concurrent queue/rollover checks and an interpreter of the SDK-assembled PIO words provide source/host evidence. Both disabled and isolated-adapter code paths must cross-compile. The guide and evidence keep absent physical timing/driver/stop records visible. Physical activation stays blocked.