FLOWCODE 4 Getting Started Guide
FLOWCODE 4 Getting Started Guide
FLOWCODE 4 Getting Started Guide
FLOW CODE4
NO CODING, NO LIMITS...
For AVR
microcontrollers
Flowcode 4 installation
Installation can be started by running the program FlowcodeV4(AVR).exe in the root directory of the CD ROM. To do this select START...RUN from the main Windows menu and enter D:\FlowcodeV4(AVR).exe, where D represents the letter corresponding to your CD ROM drive. The Flowcode installation routine will guide you through the installation process including the installation of any subsidiary programs or tools required by the software. Before starting the installation process please refer to the README.TXT file on your CD ROM drive which contains additional information about the installation process.
Network installation
If you have bought a network version of this product then you have two options for installation: 1: You can install this program on each of the machines on which it will be used and for which you have a license. The number of machines this can be installed on is limited to the license number: for example if you have a 10 user license you can install it on 10 machines 2: If you have a network management system then you can use the MSI script provided in the SETUP directory of the CD ROM to automate the installation process. There is a document in the docs directory of the CD ROM that explains the network installation process in more detail.
Driver installation
Driver files for various Matrix products can be found on the Flowcode CD ROM. To find the driver installation files by selecting START...RUN from the main Windows menu and enter D:\etc\, where D represents the letter corresponding to your CD ROM drive. The Matrix USB driver installation routine is detailed in the following pages below the Flowcode installation details.
Example installation
A set of 100+ example files demonstrating Flowcodes operation and components are available on the main Flowcode page on the MatrixMultimedia website. We also provide several tutorial example files which are available on the CD ROM. To find the example files select STARTRUN from the main Windows menu and enter D:\ where D represents the letter corresponding to your CD ROM drive.
Technical support
Technical support for this product is available on our web site: www.matrixmultimedia.com.
This is the first installation screen. Please read the instructions and press NEXT when you are ready to continue.
Here you can select whether Flowcode is made available for all people who use your PC, or just for you. Press NEXT to continue.
If you are happy with the installation choices you have made click NEXT, or click BACK to make changes.
Please wait while the Flowcode AVR files are installed onto your computer.
II
This is the first driver installation screen. Please read the instructions and press NEXT when you are ready to continue.
This shows you the driver End User License Agreement (EULA). Please read this and, if you agree, check the I accept radio button, then select NEXT.
Read the license agreement and, if you agree, check the I accept radio button, then select NEXT.
This screen allows you to choose where to install Flowcode. Use the BROWSE button to choose the installation directory, when finished click NEXT.
Once installed Flowcode will ask you for a License key, which can be found inside the CD case. If you do not have a license key contact your dealer. Selecting Do not enter key will enable you to use a feature limited demo version of Flowcode.
III
IV
Please wait for a few seconds for the driver files to be installed. On some computers this may take several minutes to complete.
This is the last screen of the driver installation. When you click FINISH the driver is installed and when you plug in your Matrix Multimedia hardware it will be automatically recognized by your PC. 5
You will see a Begin and End icon in the window marked Main. This is your main program. 2
Menu Toolbar Icon toolbox Component toolbox Chip Properties Pane Simulation Panel
This graphic shows the functions of icons on the Toolbar. To find our what an icons function is simply hold the mouse pointer over the icon and a small tool tip will give you a clue.
From the Icon toolbox drag an Output icon onto the space between the Begin and End icons. Then click twice on the icon to bring up the properties window. Set the properties as shown. (Variable = 1, Port = PORTA, single bit) 3
Click on the Step Into icon or select RUN...STEP INTO on the menu. You can use this to step through your program. Notice A0 on the chip goes red to indicate logic 1 output. 4
This is your first program. You can use the help file (click on HELP in the Menu) to understand how all the icons and the components work. On the Flowcode CD ROM you will find a number of example files, of varying degrees of sophistication, which will help you to understand how to construct more functional programs. To use the example files you must first copy them from the CD ROM onto your local hard drive. Please refer to the forum at www.matrixmultimedia.com for any technical support issues.
Preparing to download
Before downloading to your AVR microcontroller you need to make sure the hardware programmer is set up correctly. Open the CHIP...COMPILER OPTIONS window and put the appropriate information into the Programmer Parameters section. 1 You should change the avrispmkii and usb entries to suit your own hardware programmer, but leave every other entry as it is. See the help file for AVR_DUDE for more information.
You then need to make sure the chips configuration options are correct. To do this, open the CHIP...CONFIGURE window. 2 The entry in the picture sets the first fuse entry to 0xDF. Please consult yout AVR datasheet for appropriate fuse settings. Click OK and Send to send the fuse data to the AVR. But be aware that sending inappropriate fuse data could prevent the chip from being reprogrammed.
To send the program to the microcontroller, you should first save the program and then select CHIP...COMPILE TO CHIP. 3 This will first create the C code for your flowchart, then compile it, and finally transfer it to the microcontroller. The compiler messages window will be displayed during this process. Congratulations! You have now created your first program and sent it to your microcontroller. You are now ready for some more challenges. Please refer to the AVR-DUDE help file for more assistance in downloading programs, or post a message on our support forum.
8
10
Version summary
Annual student rental for site licence holders Y Y Y Y Y Y N N
Unlimited icons All devices All components In circuit debug Virtual netw orks Code customization Licence for commercial use Multi-user license for education
N N N N N N N N
Y Y N N N N N N
Y Y Y Y Y Y Y N
PIC and PICmicro are registered trademarks of Arizona Microchip inc. AVR and ARM are registered trademarks of Atmel inc.
Home version
Flowcode Pro
Free version
11
www.matrixmultimedia.com.
12