Flowcode 4 Manual
Flowcode 4 Manual
Flowcode 4 Manual
FLOW CODE4
TM
NO CODING, NO LIMITS...
www.matrixmultimedia.com.
12
Version summary
Annual student rental for site licence holders Y Y Y Y Y Y N N
Home version
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.
Unlimited icons
N N N N N N N N
Y 4K Y N N N N N N
Flowcode Pro
Free version
Installation can be started by running the program FlowcodeV4.exe in the root directory of the CD ROM. To do this select START...RUN from the main Windows menu and enter D:\FlowcodeV4.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.
Y Y Y Y Y Y Y N
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.
Code size limit 2K All devices All components In circuit debug Virtual netw orks Code customization Licence for commercial use Multi-user license for education
PIC and PICmicro are registered trademarks of Arizona Microchip inc. AVR and ARM are registered trademarks of Atmel inc.
Flowcode 4 installation
11
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:\, 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 CD ROM. To access the example files the Examples folder must first be copied onto your hard drive to allow the files to be edited and compiled. To find the example files select START...RUN 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.
10
You are now ready to download your first program. Click on the Compile to CHIP button on the Toolbar. If your hardware is set up correctly you should now see 5V output on A0. 4
5
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.
Clock settings: Have you chosen HS for High Speed crystals ( > 4MHz ), or XT for low speed crystals ( <= 4MHz) ? If you have selected RC do you have an RC network connected to the chip? If you have selected Crystal oscillator have you selected HS or XT - it matters! If you have option switches on your hardware are they in the correct position? If you have a separate selection for PICmicro MCU device in the programming utility is it correctly set up? If you have options on how you set up hardware LEDs and switches have you set them correctly? Have you got the latest version of your download utility? If you have options for Low Voltage Programming on your hardware, and you are using LVP, have you made the appropriate settings in your software, and on your development hardware?
Once you have got your first program running inside your PICmicro microcontroller you are ready to start to develop more sophisticated programs than the one we have just seen. To help you learn more there are several places where you can go for further information: Help file: contains help on Flowcode software itself Component Help Files: contains help on specific Flowcode components
II
Example files: On the Flowcode CD ROM you will find around 100 example files demonstrating principles of Flowcode and component operation. Learning Centre: on the Matrix Multimedia web site you will find a number of articles, learning resources and manuals on how to use Flowcode. This includes a range of videos that explain how programs are constructed with Flowcode. Forum: if you get stuck in installing Flowcode or in using Flowcode for a particular application then please refer to the Forum at: www.matrixmultimedia.com Here you can search for those who have had similar problems and find fixes. You can also post your questions to our engineers who answer Forum queries as a priority over other technical support enquiries.
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.
Preparing to download
Before downloading to your PICmicro microcontroller you need to make some decisions about Flowcode option settings. Select CHIP...COMPILER OPTIONs. Compiler and Linker/Assembler sections should not need changing. The default programming software is Matrix Multimedias PPP which complements Matrixs own hardware systems. If you are using other hardware please refer to your manual for further information - you should be able to set up Flowcode to work with your own hardware. 1
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.
Before downloading you will need to enter the oscillating frequency of your crystal or oscillator. To do this select EDIT...PROJECT OPTIONS and enter the frequency in Hz. You need to tell Flowcode the correct oscillator frequency so that it can accurately implement the Delay function which is derived by counting clock pulses. 2
Notice that at this point you can also set the simulation speed. Try setting this to 1 and select RUN...PLAY from the menu.
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
If you have carried out step 1 correctly then when you select CHIP...CONFIGURE you will start up the download utility with the PICmicro set up screen. Here you will need to make further settings referring to the clock circuit you are using (Resistor/Capacitor, external, crystal etc.) the type of chip etc. 3
If you see this screen dont panic: Matrix hardware is not registered with Microsoft which is why this screen appears. The driver software is fully tested and safe to use. Select CONTINUE ANYWAY.
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
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
You will see a Begin and End icon in the window marked Main. This is your main program. 2
Click on the Step Into icon (see below) 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
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.
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.