Peter Heitzer wrote:Although the PIO code could be written in MicroPython with the
john larkin wrote:
Cool. We just did a MicroPython loop to raise and lower a port pin 4
times, brute force inline code, as fast as we could. One up/down cycle
takes about 14 microseconds on a Pico, with some jitter.
We'll repeat it in c. I'm guessing that will be 20x faster.
I did a quick test yesterday evening using this few lines of code:
I got 83 kHz.
I think if you want the fastest cycle time, you'd use the RP2040's PIO
state machine, and probably get 62MHz without overclocking, but then
that's not really testing MicroPython ...
the PIO code could be written in MicroPython with the decorator @rp2.asm_pio().
Peter Heitzer wrote:
the PIO code could be written in MicroPython with the decorator
@rp2.asm_pio().
I should get a Pico to play with ...
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 915 |
Nodes: | 10 (1 / 9) |
Uptime: | 26:42:15 |
Calls: | 12,169 |
Calls today: | 1 |
Files: | 186,521 |
Messages: | 2,234,062 |