raspberrypi / pico-micropython-examples

Examples to accompany the "Raspberry Pi Pico Python SDK" book.
BSD 3-Clause "New" or "Revised" License
1.01k stars 228 forks source link

PIO 1Hz example off-by-one cycle #55

Open stigbjorlykke opened 1 year ago

stigbjorlykke commented 1 year ago

The pio_1hz.py example has a off-by-one cycle issue between pin high and pin low. The delays should be exact, even if it's insignificant for a LED blink in this IRQ example.

This Logic 2 capture shows the timing difference between pin high and pin low.

Logic2_pio_1hz_timing_measurements