Forum Discussion
Patrik78
New Contributor
3 years agoUART 16550 IP - Stick parity problem
Hello,
in my company we're facing a problem while using UART 16550 IP in stick parity mode: on LSR register we set SP=1, EPS=1, PEN=1 in order to use MARK_PARITY.
While in transmission everything...
Patrik78
New Contributor
3 years agoHello Sheng,
in our application we don't use break signal, so I expect the BI bit to be always 0 and that's what happen.
While it seems parity bit is handled as expected in odd, even mode it seems it does not work in Stick parity mode (mark or space)
Here some data: in case I receive in MARK stick parity a 0x55 with '0' as parity bit, I expect to get 0x65 in LSR (assuming we are not transmitting, bit TMTE e THRE are '1'), and that's exactly what I read.
But if I receive a 0x57 with '0' as parity bit, I expected to still get 0x65 in LSR... but in this case I read 0x61.
So at the end it seems receiving in MARK stick parity mode does not work.
Could this be possible ? Any ideas ?