Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4485

General discussion • Synchronizing two state machines with one Clock Signal in Raspberry Pi Pico PIO

$
0
0
Can anyone help me out. I am trying to sync my 2 state machines with a clock signal so when clock is ON, State Machine one sends a signal and when it´s OFF, the other one sends a signal. Signal here is PDM bits. The problem I think I understand is that every instruction is carried out for one complete clock cycle, not half of it as per my requirement and I cannot say out pins, 0.5 or something per say. It has to be between 1 and 32.
So I am unable to turn the state machine off mid way. We cannot use two wait instructions in one pio file as well otherwise that would have done the job. If I am approaching the problem wrong then please correct me.
Thanks

Statistics: Posted by tybasuleman — Thu Feb 01, 2024 7:20 pm — Replies 0 — Views 74



Viewing all articles
Browse latest Browse all 4485

Trending Articles