So I am trying to use the encoder mode that's built into the timer to get accurate encoder step count, which have worked flawlessly. I tried to use PA0 as the external interrupt that detects the rising edge to the index pulse. However, when I set the...