I am trying to program a PIC16F18877 I have some auto generated code that sets up SPI on some pins. (eg RC4) I have a device that is not SPI properly so wish to Bit Bash it. How do I switch the PIN back to GPIO usage? There are PPS registers that control which pins the SPI uses but not sure how to just "turn it off" and switch it back to GPIO usage. I don't want to redirect the SPI somewhere else.
EDIT: The pin is being driven low when latch is high and tristate is low. There is an external pull up. Setting tristate high causes the pin to go high, both on the scope and the port register. So the pin is being driven low by the PIC even when SSP1 SSPEN is low?