Sensorless brushless motor control with PIC16F887