Microprocessor based precision bidirectional speed measuring system using pulse tachometer