Difference between revisions of "HANcoder/STM32/Blocks/UART Receive"
Line 2: | Line 2: | ||
info= | info= | ||
Reads a byte from the UART reception buffer. | Reads a byte from the UART reception buffer. | ||
− | |||
− | |||
− | |||
− | |||
|blockImage=UARTReceive.png | |blockImage=UARTReceive.png | ||
|maskImage=UARTReceiveMask.png | |maskImage=UARTReceiveMask.png | ||
− | |||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
== Outputs (outports) == | == Outputs (outports) == | ||
− | (optional) | + | Output 1: The value of the receive byte. <br/> |
+ | Output 2 (optional): When the status output is 0, the reception buffer was empty.<br/> | ||
== Block parameters == | == Block parameters == | ||
Line 25: | Line 17: | ||
|- | |- | ||
| Channel | | Channel | ||
− | | Select | + | | Select channel for UART communication |
|- | |- | ||
− | | | + | | Use status output |
− | | | + | | When this checkbox is ticked an extra output appears which show the status of the reception buffer. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
− | | | + | | Sample time |
− | | | + | | The block execution time, the amount of time between consecutive executions of the block. 0.1 means the the block will be executed at 10 Hz. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
Line 53: | Line 30: | ||
{{HANcoder/BlockFooter| | {{HANcoder/BlockFooter| | ||
− | |SeeAlso = [[HANcoder/ | + | |SeeAlso = [[HANcoder/UART_Init|UART Init]] {{!}} [[HANcoder/UART_Receive_Buffer_Status|UART Receive buffer status]] {{!}} [[HANcoder/UART_Send|UART Send]] |
}} | }} |
Revision as of 15:10, 28 April 2017
Supported Targets: Olimexino, E407, P405
Contents
General information about UART Receive
Reads a byte from the UART reception buffer.
Block
Mask
Outputs (outports)
Output 1: The value of the receive byte.
Output 2 (optional): When the status output is 0, the reception buffer was empty.
Block parameters
Parameter | Description |
---|---|
Channel | Select channel for UART communication |
Use status output | When this checkbox is ticked an extra output appears which show the status of the reception buffer. |
Sample time | The block execution time, the amount of time between consecutive executions of the block. 0.1 means the the block will be executed at 10 Hz. |