Question
STM32F427 - USART - most significant bits problem
Posted on July 17, 2013 at 08:59
Hello,
I'm trying to make a communication protocol via the UART. I have a M4 and an A8 which communicates via RS485 transmitters.For the trials, the UART is set to 9600 bps, 8 bits per character with one stop bit and an even parity, but I regularly get an error at the reception, the most significant bit is forced to one.I checked the frequency, it is of 9615 Hz to the transmition on both microcontrollers. And in the example code I saw that the most significant bit was filtered. (I think it is for reception of a character of the ASCII table)this is the reception in ST's example code : /* Read one byte from the receive data register */ aRxBuffer[uhRxCounter++] = (USART_ReceiveData(EVAL_COM1) & 0x7F);regards, #stm32-usart