This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

UART parity error and reading the byte

Hello,

Is it possible to read the received byte if the parity error occurs? Because I want to receive 9-bit data on UART and get the 9-th bit based of error?

Parents
  • Hi,

    An ERROR event will not stop reception. If the error was a parity error, the received byte will still be transferred into Data RAM, and so will following incoming bytes. So you can still read out the byte even when an error event occurs. E.g. if you use the app_uart library you can read the data byte with app_uart_get() inside your error handler.

Reply
  • Hi,

    An ERROR event will not stop reception. If the error was a parity error, the received byte will still be transferred into Data RAM, and so will following incoming bytes. So you can still read out the byte even when an error event occurs. E.g. if you use the app_uart library you can read the data byte with app_uart_get() inside your error handler.

Children
Related