Introduction to Microcontroller Programming
About PICmicro Chips
Clocking Your PICmicro Devices E-Blocks Flowcode Step By Step
PICmicro Projects
Labs |
Set up the InputsRight-click on the top Input icon, and select Properties from the menu. The following dialogue box appears. Double-click on the word Input in the 'Display name:' box to highlight it. Type "Input the first number" to replace it. This will appear alongside the Input icon on the flowchart. In a complex flowchart, adding labels like this helps users to understand what is happening. Click on the button next to the variable box. This will open the 'Variable Manager'. This lists the three variables that you just created. Double-click on the word 'input1' to use it in the input box. Back to the Input Properties box again. It is set to 'PORTA' at the moment. Click on the down arrow at the end of the Port window, and select 'PORTB'. Click on OK to close the Input Properties box. Double-click on the second 'Input' icon. (This is a quick way to open the 'Properties' box, instead of right-clicking on the icon and selecting 'Properties' from the menu.) Set up this Input to:
Then close the Input Properties box by clicking the OK button. |