Hello to all. First sorry for my poor English.
I have a question.
Actually I'm controlling speed of DC motor by LPC1768 and I need to a PI controller like below picture.

How could I program a PI controller in Keil. Is there any library for it, if not, what can I do?
Very thank you.