This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Parity bit problem in USARt

Hello
here my usart settings that it works fine

        USAR.USART_BaudRate=9600;
        USAR.USART_StopBits=USART_StopBits_1;
        USAR.USART_WordLength=USART_WordLength_8b;
        USAR.USART_Parity=USART_Parity_No ;
        USAR.USART_HardwareFlowControl=USART_HardwareFlowControl_None;
        USAR.USART_Mode=USART_Mode_Rx | USART_Mode_Tx;

but when I want to decrease my error I want to use parity bit and I have changed settings as shown below

        USAR.USART_BaudRate=9600;
        USAR.USART_StopBits=USART_StopBits_1;
        USAR.USART_WordLength=USART_WordLength_8b;
        USAR.USART_Parity=USART_Parity_Even  ;
        USAR.USART_HardwareFlowControl=USART_HardwareFlowControl_None;
        USAR.USART_Mode=USART_Mode_Rx | USART_Mode_Tx;

but when I do the same settings in my pc to receive data ( for even parity bit) it doesn't receive anything.