View source for HANcoder/STM32/Blocks/UART Init
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
Templates used on this page:
Return to HANcoder/STM32/Blocks/UART Init.
You do not have permission to edit this page, for the following reason:
The action you have requested is limited to users in one of the groups: Administrators, Bureaucrats.
You can view and copy the source of this page.
Templates used on this page:
Return to HANcoder/STM32/Blocks/UART Init.
Supported Targets: Olimexino, E407, P405
This block initialized a UART channel.
|ReceiveBufferSize= Configure the size of the reception buffer |StatusOutput= Enable/disable the status output port
Data (byte) to send to the slave device.[uint8] Note: To send multiple bytes use mutliple Master Transfer blocks
(optional) If this output has a value of 0, the UART driver could not be initialized. This happens if no space could be allocated on the heap for the transmit and/or receive buffer. Use the 'Get free heap' block to verify that enough space is available on the heap. The used datatype is boolean.
Parameter | Description |
---|---|
Channel | Select channelfor UART communication |
Baudrate | Select the baudrate to be used for the communication |
Databits | Select the number of databits per message. (8 or 9) |
Parity | Select whether to use the parity bit and if it should be odd or even. |
Stopbits | Select the number of stopbits. |
TransmitBufferSize | Enter the size (in bytes) of the buffer for transmitting. The buffer space is reserved in HEAP. |
ReceiveBufferSize | Enter the size (in bytes) of the buffer for receiving. The buffer space is reserved in HEAP. |
Use status output | Enable the status output to check if the initialization has been successful. |