Question
STM32F2xx USART 9 Databit, 1 Start bit, 2 stop bit, parity odd
Posted on November 06, 2013 at 09:34
Hello,
i'm trying to get a USART connection to a device with the parameters: USART 9600 Baud, 9 (real)Databits, 1 Start bit, 2 stop bits, parity odd. I configured my USART like this: USART_InitStructure.USART_BaudRate = 9600; USART_InitStructure.USART_WordLength = USART_WordLength_9b; USART_InitStructure.USART_StopBits = USART_StopBits_2; USART_InitStructure.USART_Parity = USART_Parity_Odd; USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None; USART_InitStructure.USART_Mode = USART_Mode_Rx | USART_Mode_Tx; The Problem is, that the receiver dont understand my commands. Somebody in a german forum told me, that the STM32 cant handle this mode, because the 9th bit is used for the parity an i have to do this with software USART. Ist this right? I cant believe that. In the RM0033 - 24.3.1 ''Figure 224. Word length programming'' it looks so :( How can i solve this problem in a smart way? Any Ideas? regards Florian #throwing-my-stapler