I want to calculate rpm of four motors simultaneously. I connect each channel of four encoders to tm4c123gh6pm in edge time mode(timer capture).....so 4 interrupts for that and also four timer interrupts because in each interrupt I am using fifo to normalise some hundreds of samples of ticks to calculate rpm by timer capture. Am I following correct procedure? QEI has slower sampling frequency so I do not want to use it.