A word of advise to anyone who needs to do PID control with a PIC, and is thinking of using this subroutine but is concerned about how well it works, you needn't worry. I used it to implement a fairly tough industrial application, and it worked like a champ. Highly recommended!
Mike
Bookmarks