I am currrently designing a project that keeps a DC motor at a constant speed with varying loads applied. I am currently writing a program on a PIC16C71 that basically gets a feedback from a tachometer, converts this into a digital number. The PIC is basically controlling the firing angle to the single phase bridge. This is then subtracted from the set speed. For simplicity i have chosen just one speed setting. I then check the zero flag to see if it is zero, if it is then it does nothing. If the flag is negative it means the motor is running too fast so it will decrement the delay. If the flag is positive it will increment the delay. What i want to know is would this work, and if not how could i improve this. Thanks Andy Bassam