pico-feedback icon indicating copy to clipboard operation
pico-feedback copied to clipboard

Feature request: Ability to access timer_hw->timerawl from PIO

Open davidmpeace opened this issue 3 years ago • 0 comments

We have some fairly complicated timing code, and while we did get things working in the current SDK, this feature would have made it a lot easier to do.

Essentially, being able to do a MOV command in a PIO program, to copy the timer_hw->timerawl (low 32 bits of hardware timer) into another register.

The command would look something like this:

MOV X, TMRL ; copy the value from timer_hw->timerawl to X

It would be SOURCE option only. Looking at the documentation, currently value "100" is a reserved source value. So I'm assuming this would need to replace the "reserved" value.

I thought I'd bring it up as a potentially nice feature, however, I do realize that it might not be possible.

Let me know.

davidmpeace avatar Sep 30 '22 19:09 davidmpeace