I'm working with the K60 microcontroller, in particular the UART0 peripheral.
I can't make it run properly.
In attached you can find the initialization function.
I set M (9 bits), PE (parity enable) and PT (odd parity) bits in C1 register and RX-TX interrupt is enabled.
When I send a byte, the UART adds the bit parity properly.
When I receive a byte with wrong bit parity, the bit PF in S1 register isn't set. (In the attached file, K60 never sets PE in S1 register and it doesn't goes in
if (StatusUART & UART_S1_PF_MASK)
error |= HART_ERROR_VERTICAL_PARITY;
I have done several tries but I can't find the solution.
Is the peripheral correctly configured? Do I correctly read/manage S1 register?
Original Attachment has been moved to: UART_K60.txt.zip