HELP: NE555 and interrupt function

"rpm" really should be qualified "volatile", though it's probably OK with your code as it is now.