3.7.2 CLC1
Reconfigure CLC1 as shown in Figure 3-10. Deselect all the invert before and after on logic 2. Deselect CLC3_OUT as input and select CLC5_OUT as the only input signal to logic 2, as highlighted in the red circle.

Click Generate in the upper left sub-window in MPLAB to regenerate the code. The generated code is the code for the 3-CLCs solution. Rebuild the project with short-cut key SHIFT+F11 and then click the Make and Program Device Main Project icon on the top toolbar in MPLAB to reprogram the device. The 3-CLCs solution is now applied to the connected external rotary encoder.