I wish to implement a digital PID controller for a heater. I have searched a lot on the web but did not understand the algorithm completely. Can the algorithm be written in assembly? What micro controller can I use? Can someone explain me the digital PID algorithm too?