Difference between revisions of "HANcoder/STM32/Blocks/UART Receive"

From OpenMBD
< HANcoder‎ | STM32‎ | Blocks
Jump to: navigation, search
(Created page with "{{HANcoder/block| info= Reads a byte from the UART reception buffer. '''Outputs''' Output 1: The value of the receive byte. Output 2: When the status output is 0, the rece...")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{HANcoder/block|
 
{{HANcoder/block|
 
info=
 
info=
 
 
 
Reads a byte from the UART reception buffer.
 
Reads a byte from the UART reception buffer.
 
 
'''Outputs'''
 
Output 1: The value of the receive byte.
 
Output 2: When the status output is 0, the reception buffer was empty.
 
 
 
  
 
|blockImage=UARTReceive.png
 
|blockImage=UARTReceive.png
 
 
|maskImage=UARTReceiveMask.png
 
|maskImage=UARTReceiveMask.png
 +
}}
 +
== Outputs (outports) ==
 +
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 ==
 +
{| class="wikitable"
 +
|-
 +
! style="width:150px" | 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.
 +
|}
  
 +
== Examples ==
 +
[[HANcoder/STM32/Examples/ZigBee|ZigBee communication]]
  
 +
{{HANcoder/BlockFooter|
 +
|SeeAlso = [[HANcoder/STM32/Blocks/UART_Init|UART Init]] {{!}} [[HANcoder/STM32/Blocks/UART_Receive_Buffer_Status|UART Receive buffer status]] {{!}} [[HANcoder/STM32/Blocks/UART_Send|UART Send]]
 
}}
 
}}

Latest revision as of 10:33, 5 May 2017

Supported Targets: Olimexino, E407, P405

General information about UART Receive

Reads a byte from the UART reception buffer.

Block

UARTReceive.png

Mask

UARTReceiveMask.png

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.

Examples

ZigBee communication

See Also

UART Init | UART Receive buffer status | UART Send