MPLAB is a compiler for PIC programs.
Write the PID algorithm in a programming language and then use MPLAB or other compiler to compile it.
Can you tell us what knowledge level and background you have. Will you understand discrete time formulas, or a discrete time block diagram? Do you have systems theory or control theory knowledge?Thanks, but i don't have the PID algorithm.... I need the PID algorithm