Thanks for your help Sougata!!!

I already worked my project and carried out loop PID with API (mitsubishi). Now, I will want to optimize the project and to improve this loop of regulation PID by using a PIC. I will like that my regulation is fast....My brake have a little response time (few ms).
I think my project is easy: I make a measure and i compare it with a consign. According to the difference of consign and measure, i vary an output (0/5V) for command the brake.
Now, i work on the PID!!! If you want i have find some information PID on the forum www.picbasic.org

best regards

Quote Originally Posted by sougata
Microchip has got a few appnotes on their sites regarding motor control. However the source codes are in asm or C. Nevertheless it may help you in system analysis and design. If you could give exacting requirement then I can also spend some time on it. PID is bothering me too. I design industrial battery chargers and DC thyristor control. Employing a PID control there would improve the transient response of the system