Skip to content

feat(rp2040): phase 2 — qualify PIO RX edge detection #3655

Closed

Description

@zackees

Parent and phase

Implementation Phase 2 of #3648. Depends on Phase 1 (real PIO RX instantiation).

Scope

Implement duration-count edge detection in PIO using clk_sys and the input synchronizer. Handle level alternation, instruction-path timing bias, signal ranges, skipped signals, incomplete tails, capacity, overflow, wrap, and saturated edge times.

Acceptance criteria

  • Focused host tests cover polarity, asymmetric pulses, glitches, timeout, capacity/overflow, counter wrap, and saturated EdgeTime.
  • Empty capture and overflow states are distinct and truthful.
  • wait() yields without disabling the watchdog.

Attached-board gate

After an explicit GPIO jumper control, JSON-RPC must show armed/completed capture and correct level/count/min/mean/max duration for independent GPIO/PWM square waves at 1, 10, and 100 kHz. This qualifies only the RX oracle at those controls, not a production TX driver.

Activity

  1. zackees commented on Jul 15, 2026

    @zackees
    MemberAuthor

    Completed by #3664 (merged as 2fda0c6): start-level-gated duration-counter PIO program, calibrated phase timing, glitch/skip/capacity/saturation handling, reset-tail completion, and host-tested decoding. Hardware compilation/bench evidence remains tracked separately in fbuild#1040 and the physical loopback issue #3631.

  2. moved this from Triage to Done in FastLED Trackeron Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions