Use a Selectable Timed Interrupt (STI) with auto-tuning
Although a PID instruction works if it is not controlled by a Selectable Timed Interrupt (STI), using an STI increases the auto-tune success rate because the auto-tune operates on a fixed cycle.
STI interrupt

Provide Feedback