What's the chances of getting you to post your standard template somewhere? I try to collect the pieces as I see you post these handy routines, but it would be great to get them all in a collection.
<voice of Roger Rabbit> Pleeeease, Jonny? </Rabbit off>
My personal favorite way is to use the normally unused DIRB, INB, or OUTB registers...
Just like with INA, you can test and set bits in any of these...
The good news is that you can use the Propeller to determine how long a snippet of code runs. I do timing tests frequently enough that I made a template just for that purpose.
Comments
Thank you!
I wanted to use such construction: but your beautiful.
<voice of Roger Rabbit> Pleeeease, Jonny? </Rabbit off>
My personal favorite way is to use the normally unused DIRB, INB, or OUTB registers...
Just like with INA, you can test and set bits in any of these...
Thanks for the idea Rayman.