Optimization for precision in speed and phase measurement using a microcontroller | IEEE Conference Publication | IEEE Xplore