PIC16F19176 RC6 pin is always high
I sometimes need to have the RC6 pin be '0' (an hardware requirement), but I am failing to do so.
I believe it's because it is configured as TX.
I want to use RB6 as my TX by using PPS and be able to change RC6 pin from high to low and vice versa.
BAUDCON = 0b00001000; // ABDOVF, RCIDL, 0, SCKP, BRG16=1, 0, WUE, ABDEN
TX1STA = 0b00100100; // CSRC=0, TX9=0, TXEN=1, SYNC=0, SENDB=0, BRGH=1, TRMT=0, TX9D=0
RC1STA = 0b10010000; // SPEN=1, RX9=0, SREN=0, CREN=1, ADDEN=0, FERR=0, OERR=0, RX9d=0
RB6PPS = 0x0D;
LATCbits.LATC6 = 0;