Recent Changes - Search:

Introduction to Microcontroller Programming

About PICmicro Chips

Clocking Your PICmicro Devices

E-Blocks

Flowcode Step By Step

PICmicro Projects

Labs

Set up the Decisions

<^< Single Bit Input | Course Index | Set up the Delays >^>

  1. Double-click on the first (upper) Decision icon to open the Properties dialogue box.
  1. Type "Left switch pressed?" in the 'Display name:' box.
  2. The program makes a decision based on the value stored in a variable.
We spell out what that decision is in the 'If' box:
Delete the '0' in the 'If' box.
Click on the button next to the Variable box .
Double-click on 'left' to insert it into the box.
Type "= 1" after the word "LEFT" in the 'If' box (LEFT = 1).
  1. The Decisions properties box should now look like:
  1. Ignore the 'Swap Yes and No' option, which reverses the 'Yes' and 'No' routes on the flowchart.
  2. Now click on the OK button, to close the dialogue box.
  3. Double-click on the second (lower) Decision icon. Set up the properties as shown in the next box:

<^< Single Bit Input | Course index | Set up the Delays >^>

Print - Search - Login

Page last modified on May 01, 2013, at 02:29 PM