News:

PROTON pic BASIC Compilers for PIC, PIC24, dsPIC33

Main Menu

Tx / Rx inverted data

Started by joesaliba, Apr 02, 2023, 06:27 PM

Previous topic - Next topic

joesaliba

Hi,

Using an 18F26K22.

I need received and sent data to be inverted. Set BAUDCON1.5 will invert receiving data.

Is this possible to invert transmit data as I can find nothing in the datasheet?

Thank you
Regards

Joe

tumbleweed

To invert the TXD polarity in the K22, set CKTXP bit in the BAUDCONx register (BAUDCON1.4).
Setting the CKTXP bit to 1 will invert the transmit data, resulting in low true idle and data bits.

joesaliba

Quote from: tumbleweed on Apr 02, 2023, 07:12 PMTo invert the TXD polarity in the K22, set CKTXP bit in the BAUDCONx register (BAUDCON1.4).
Setting the CKTXP bit to 1 will invert the transmit data, resulting in low true idle and data bits.

Thanks tumbleweed.

Joe