AnsweredAssumed Answered

Is my method of detecting parity error correct on the Kinetis MKM34?

Question asked by Adithya Kiran on Jan 8, 2017
Latest reply on Jan 11, 2017 by Jorge Antonio Alcala Vazquez

Hi everyone, I am currently using a method to detect parity errors on my Kinetis MKM34's UART. I want to know if this is the right way to implement it. My supported UART configurations are 8N2, 8E1 and 8O1. For even and odd parity I am using the UART_ED register and checking the PARITYE bit for detecting parity errors. For none parity with 2 stop bits, I am using the UART_C3 register and the R8 bit in it. Since the R8 bit indicates the ninth bit received, it has to be the stop bit for no parity. Since the stop bit is always high, I am considering a low stop bit to be a parity error condition. Is this approach correct or should I change anything about how parity errors are detected?