Isn't there an issue with hserout and inverted output?
Yes. HSEROUT & HSERIN work with non-inverted data. There is no way
to force inverted when using the hardware USART without an external
inverter.