Difference between revisions of "Input Icon Properties"

From Flowcode Help
Jump to navigationJump to search
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
+
<sidebar>Sidebar: Icon Properties</sidebar>
 
+
{| style="margin:auto; text-align:center;"
[[File:Input_Icon.gif|left]]
+
|-
[[File:Input_Icon.png|center]]
+
|[[File:Btn_Input.gif|border]]
[[File:Input_Properties.png|right]]
+
| width="50px" |&rarr;
 
+
|[[File:Gen_Input_Flowchart_Icon.png]]  
 +
|width="50px" |&rarr;
 +
|[[File:Gen_Input_Icon_Properties.png]]
 +
|}
  
 
Input icons check the specified port and/or bits for their value and then place the resulting value into the specified variable.
 
Input icons check the specified port and/or bits for their value and then place the resulting value into the specified variable.
Line 16: Line 19:
 
'''Variable'''
 
'''Variable'''
  
Select the name of the variable that you wish to input the port state into. Clicking on the down arrow brings up the variables dialog window allowing you to select an existing variable or to create a new one.
+
Select the name of the variable that you wish to input the port state into. Clicking on the down arrow brings up the variables dialog window allowing you to select an existing variable or to [[Creating Variables|create a new one]].
  
  
Line 27: Line 30:
  
 
Use this option to read the state of a single bit of the port.
 
Use this option to read the state of a single bit of the port.
 +
 
When the state of a single bit is true the value of that bit is passed as its value.
 
When the state of a single bit is true the value of that bit is passed as its value.
  
Line 37: Line 41:
 
'''Use Masking'''
 
'''Use Masking'''
  
When masking is used, it is possible to read only certain bits into a variable. This is useful when some bits of the port are configured as outputs.
+
When [[Using Masks|masking]] is used, it is possible to read only certain bits into a variable. This is useful when some bits of the port are configured as outputs.
When a mask is used only the values of the selected bits are read.
+
 
See the [[Using masks|Using Masks]] page for more detail.
+
When a [[Using Masks|mask]] is used only the values of the selected bits are read.
 +
 
 +
 
 +
====Video instructions====
 +
 
 +
See the [http://www.youtube.com/watch?v=uC3jj1ebAFI&list=PLQDWBb7bxuCgg6aJgPJcfXBMzZdLILceQ Inputs Outputs] video to learn how '''Input''' and [[Output Icon Properties|Output]] icons work, this video also describes the use of single bits and port [[Using Masks|masking]] as well as [[Creating Variables|creating variables]].
 +
 
 +
<div align="center">
 +
{{#ev:youtube|uC3jj1ebAFI|640}}
 +
</div>

Latest revision as of 14:58, 27 August 2013

<sidebar>Sidebar: Icon Properties</sidebar>

Btn Input.gif Gen Input Flowchart Icon.png Gen Input Icon Properties.png

Input icons check the specified port and/or bits for their value and then place the resulting value into the specified variable.


Display Name

The name of the icon that appears on the flowchart.


Variable

Select the name of the variable that you wish to input the port state into. Clicking on the down arrow brings up the variables dialog window allowing you to select an existing variable or to create a new one.


Port

Select from a list of the ports available on the target microcontroller


Single Bit

Use this option to read the state of a single bit of the port.

When the state of a single bit is true the value of that bit is passed as its value.


Entire Port

Use this option to read the value of the entire port into the variable.


Use Masking

When masking is used, it is possible to read only certain bits into a variable. This is useful when some bits of the port are configured as outputs.

When a mask is used only the values of the selected bits are read.


Video instructions

See the Inputs Outputs video to learn how Input and Output icons work, this video also describes the use of single bits and port masking as well as creating variables.

{{#ev:youtube|uC3jj1ebAFI|640}}