Running PIO flat out?


Author Message
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 548
Posted: 03:28pm 30 Jan 2025      

A question for our resident PIO experts, probably Peter or Harm.
I've just splashed out on a second hand 200MHz Oscilloscope and I'm trying to generate a 200MHz signal, or there about to test it with.
I have managed to use the Pico SDK to build an executable, which is overclocked to 428MHz toggling a GPIO pin flat out, I get a nice 107MHz signal, which the scope displays fine. (zip file below)
Is there a way of getting the PIO under MMBasic to do something similar, preferably higher frequency, closer to 200MHz. Even better a variable frequency, up to as high as possible. I realise the step size is likely to be relatively large, but a selection of test frequencies would be nice? maybe a selection of power of 2 frequencies on adjacent pins? Any thoughts?
Thanks in anticipation. :-) Kevin.
FastToggle.zip