Recent Changes - Search:

Introduction to Microcontroller Programming

About PICmicro Chips

Clocking Your PICmicro Devices

E-Blocks

Flowcode Step By Step

PICmicro Projects

Labs

Create the Variables

<^< Set up the Flowchart | Course Index | Set up the Inputs >^>

  1. Click View on the menu bar, and then ensure 'Project Explorer' is checked (View > Project Explorer). Then click on the 'Globals' button at the top of the Project Explorer panel:
  1. We are going to create three variables, called input1, input2 and sum. The first two will store the numbers that we feed in from the switches. The variable 'sum' will store the result of adding together the two numbers stored in 'input1' and 'input2'.
  2. Hover over 'Variables' in the Project Explorer panel then click on the that appears, then click 'Add new'. You now see the 'Create a New Variable' dialogue box as can be see below. Type in the name "input1", and then click on the OK button. You can leave the variable type as 'Byte'. Create the variables, "input2" and "sum" in the same way.

<^< Set up the Flowchart | Course index | Set up the Inputs >^>

Print - Search - Login

Page last modified on May 03, 2013, at 07:51 AM