This example provides a description of how to use the USART with hardware flowcontrol and communicate with the HyperTerminal.First, the USART2 sends the TxBuffer to the HyperTerminal and still waiting fora string from the HyperTerminal that you must enter which must end by '\r'character (keypad ENTER button). Each byte received is retransmitted to theHyperTerminal. The string that you have entered is stored in the RxBuffer array. The receivebuffer have a RxBufferSize bytes as maximum.
The USART2 is configured as follow: - BaudRate = 115200 baud - Word Length = 8 Bits - One Stop Bit - No parity - Hardware flow control enabled (RTS and CTS signals) - Receive and transmit enabled - USART Clock disabled - USART CPOL: Clock is active low - USART CPHA: Data is captured on the second edge - USART LastBit: The clock pulse of the last data bit is not output to the SCLK pin
標簽:
V100
STM
100
32V
上傳時間:
2013-10-31
上傳用戶:yy_cn