I'm playing with a nice new PIC16F15356, and investigating the Configurable Logic Cell (CLC) capabilities - basically a 4-cell mini-PLD on the chip that can take inputs from any of a list of 40 modules, including certain configurations of I/O pins.
But there seems to be no simple programmatic digital input capability. I was hoping to be able to set a "motor direction" bit from the code, which would be worked into the logic to generate my outputs. I could probably hack it by setting something like a PWM to "100%" or "0%" and feeding that in, but I was expecting there to be 4 bits of a register I could write to, and there isn't!
One way might be to dynamically reconfigure the CLC logic, on the fly, but my mind fills with the horrors of glitches, weird intermediate states, etc. Another is to write to a I/O pin, and then assign that as an input into the logic - that might be the best way.
Am I missing something, please?