Hello,
The PLU allows you to create custom waveforms. However, we don't have examples that show an implementation of the quadrature encoder. The examples that we have available can be found in the following document:
Creative ways to leverage the LPC804 MCU’s integrated programmable logic feature
The above document was made for the LPC804, but the PLU feature is essentially the same.
The tool provided with our MCUXpresso IDE is the PLU tool and the step by step guide of how to use it can be downloaded:
PLU Lab Guide
My primary assumption would be that if your logic design fits within the following parameters of the LPC5S6x, then you should be ok.
- The PLU is comprised of an array of 26 inter-connectable, 5-input Look-up Table (LUT) elements, and four flip-flops.
- Eight primary outputs can be selected using a multiplexer from among all of the LUT outputs and the four flip-flops.
Best Regards,
Sabina