HI
I have setup the UART0 on MSP430f5336 for 1200 baud rate , parity enable,odd parity detection and URXEIE ENABLE. I use assembly language on IAR tool chain for my project .
I need to detect parity error on each byte while receiving a packet , byte framing is one start bit , 8 data bits , one parity bit and one stop bit .
I receive byte through rx interrupt and in the interrupt I store the UCASTAT for current byte received and then the rx buffer .
If I send one byte with an even parity to create parity error , I am able catch parity error in status for that byte . But if i send two continuous byte, First one with incorrect parity and second with correct parity , I can't see error being flag by the status.
For a longer packet as well I am unable to catch the correct status fro respective byte
Please let me know if there is a solution available to above stated problem