attachInterrupt(1, rpm, FALLING); ----sensor hall-- help

hello,

assume that the program is in the loop (), and this within a
for (int i = 0; i <1000, i + +), and the increase I = 500, then in sensor is activated and emediantamente passed to the function
rpm (),
¿ when it returns to loop (), i = 0, or i = 500?

An interrupt returns to the next machine instruction.
It may return to the middle of a two byte increment.

Naruto128:
assume that the program is in the loop (), and this within a
for (int i = 0; i <1000, i + +), and the increase I = 500, then in sensor is activated and emediantamente passed to the function
rpm (),
¿ when it returns to loop (), i = 0, or i = 500?

Assume this is a correct answer: 500

More code gets answers that are more likely to be correct.
Post your code, in code tags, please.

After an interrupt the code will return to the exact place it left off as though the interrupt never happened.

The only time this won't be true is if the interrupt code modifies the variables that the main code is in the process of using. You should write your code so this can't happen unless you really know what you are doing.

...R