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 Outputs

<^< Using Variables | Course Index | Adding the Switches >^>

  1. Next, right-click on the Output icon, and select 'Properties' or just simply double-click the Output icon. The Output Properties box appears.
  2. Click on the button next to the variable box. You will see the 'SENSOR' variable listed.
  3. Double-click on the word 'SENSOR' or click and drag it to the variable box.
  4. You are now back on the Output Properties box, which shows that the system is set to output whatever data is stored in the 'SENSOR' variable. Change the port used to Port B, by clicking on the arrow in the Port window, and then clicking on 'PORTB' in the menu that opens up.
  5. Click on OK to close the Output Properties box.
  6. The flowchart should now look like this:
Notice the arrows in front of the 'PORTA' and 'PORTB' labels, they show that information will flow from Port A into the flowchart and will flow from the flowchart out to Port B.
  1. Now click on the Outputs button and select LED Array icon. Place the LED Array where you want it on the panel by clicking and dragging it with the mouse cursor.
  2. Change the 'Count' property under the 'Simulation' section to the value '5' by clicking on the box next to the property and using the keyboard to input the value.
  3. Click next to the word 'Port' under the 'Connections' section in the Properties pane whilst the component is selected to open an interactive view of the chip which shows compatible pins.
  4. Click on the drop-down menu and select the 'PORT B' option. You have now connected the LED's to the pins on Port B.

<^< Using Variables | Course index | Adding the Switches >^>

Print - Search - Login

Page last modified on July 22, 2013, at 09:11 AM