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

SDK • Re: Could use a sanity check of this code

$
0
0
Okay so here is my PIO attempt and it's missing the meat I can seem to figure out how to count on a falling edge.

Code:

.program pulse_counter_program.define COUNT_TIME 500.wrap; setup countermov x, COUNT_TIME:CONTINUE; count if pin is falling; if timer is not finish keep countingjmp x--, CONTINUE; Done send datapush yirq 0mov y,0.wrap_target

Statistics: Posted by DarkElvenAngel — Mon May 06, 2024 11:49 pm



Viewing all articles
Browse latest Browse all 5032

Trending Articles