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.
A parity bit does absolutely nothing to decrease errors!
That is so badly worded! I know what is meant, but it doesn't cover the point with any degree of success. If an error can be detected then something can be done to retry and correct. Thus errors can be decreased; or, at least, the number of errors slipping through the system can.