moving division out of the ISR
renamed macros with long names to make more readable