I'm doing something like this (pseudocode):
FOR INDEX=1 TO SOMETHING
IF INDEX>A THEN PIN1=1
IF INDEX>B THEN PIN2=1
IF INDEX>C THEN PIN3=1
IF INDEX>D THEN PIN4=1
IF INDEX>E THEN PIN5=1
NEXT INDEX
Each of those IF . . . THENs appears to chew up a lot of time, each reducing the upper limit on the number of iterations (SOMETHING).
I'm having to do this in/as an interrupt handler and I've got about 7ms (at 8MHz) to do it in.
Is there a faster/better/simpler way? (Someone <i><u>please</u></i> tell me there is!)
Fingers crossed here . . .
Bookmarks