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?
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?
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.
Cool, that`s what I supposed. Thank you. Actually, for UART 9-bit transferring I can use simple interrupts. Thus, It is possible to realize 9-bit UART on NRF51.
Old post, I know, but Anton, how did you handle transmit? Bitbanging? If so, what baud rate and what message length? Did you have to suppress letting the radio take over for the duration of the transmission, and did that have any ill effects? Any chance of a sample project showing how it was done?