Thanks for your interest TucoRamirez. But these codes are only supported with Hardware.
Your code:
unsigned char config_1 = USART_TX_INT_OFF & USART_RX_INT_OFF & USART_ASYNCH_MODE & USART_EIGHT_BIT & USART_CONT_RX & USART_BRGH_LOW;
I can't do anything with hardware support. As an example (requirement for me):
1 Start Bit
7 Data Bit
Odd Parity
2 Stop Bit
This CCS C is also very easy. But so far, I've prepared the code with XC8. The different configuration was a surprise for me.
For CCS C:
#users232(baud = 9600, parity =
O, xmit = PIN_C6, rcv = PIN_C7, bits =
7, stream = PORT1)
I couldn't do that with the XC8. I'm hoping it could be with an XC8 Uart library.