Hello Henrik,
the HPWM glitch doesn´t matter because its driving an electric fuel pump.
I read the UART section in the old PBP handbook and it says: "very complicated" which is a nogo for me .
When i remember right I may use the HSERIN/HSEROUT command? Is that the USART thing?
Can I let go of the "wait" statement when using HSERIN/HSEROUT?
And using a timer to count....thanks for the advice that looks like a dive into assembler which causes freezing my neurons.

Regards