Home
IFC-MB00 Interface Free Controller Main Board User`s Manual V1.1
Contents
1. 37 M IFC_MBOO MPLAB IDE v8 00 D IFC Program_MBOO Sample1 c E Fie Edit View Project Debugger Programmer Tools Configure Window Help Project Wizard New Open Close Cytron Technologies PIC18F2685 Source Fil 5et Active Project b Ecription Samplel for IFC MBOO B Samp i uickt uid J asm SESSSSSSE SSS SS SSS SSS SSS SESSESS5ES5S55 Header Fi 2G object Fi Cean ares E Library Fil Export Makefile SSSSSSSSSSSSSSSS2SSSSSSSS2SSS2S2S22 Linker Scr Buld Al ome 85h a fe ol E Other File Build Configuration gt Build Options gt fion bit Files Symi Save Project OSC HSPLL Save Project As FCMEN OFF Output Add Files to Project IESO OFF E T Add New File to Project PURT OFF Remove File From Project p BOREN OFF WDT OFF Select Language Toolsuite MCLRE ON Set Language Tool Locations PBADEN OFF Version Control DEBUG OFF XINST OFF novzdec WO Interface Free Controller Created by Cytron Technologies Sdn Bhd All Rights Reserved 44 ytron 5 ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 25 After build success a message BUILD SUCCEEDED will appear in output window like shown in diagram below D bel IFC_MB00 mcw Author Cytron Technologies os C IFC_MB00 mcp Project Interface Free Controller Source Files Project des
2. Ensure the iron pins are fully inserted to the connector The red wire connected to VCC of battery while the black wire connected to GND of the battery Please make sure the polarity is correct when connect the wire to the connector Created by Cytron Technologies Sdn Bhd All Rights Reserved 10 Cytron X ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 111 Connect battery to Power Card IFC PC00 Connect 1 x 12V battery to supply operating voltage to IFC Ensure the polarity is correct If 24V is needed in the system connect PCOO Ensure the polarity is correct iv Stacking IFC cards together IFC MB0OO0O stacked on IFC PCOO Created by Cytron Technologies Sdn Bhd All Rights Reserved 11 Cytron 5 ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 v Ensure every card is being stack properly in correct orientation Ensure the arrow points to the same direction Ensure the orientation marking at the same side Cautions Please ensure that every card is being stacked properly in correct orientation Whole IFC system will be damaged if one of the cards is being stacked wrongly when it is powered up Created by Cytron Technologies Sdn Bhd All Rights Reserved 12 Cytron 5 ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 Besides stack every card in correct orientation user must also re
3. user also needs to include card s header file at the beginning of the program Figure shows the example to include header file object file and card s header file M IFC MPLAB IDE v8 00 C Sample1 c fe felix E File Edit wiew Project Debugger Programmer Tools Configure Window Help 0 x pi B amp amp P Checksum Oxdf 4 F mcp Author 2 Cytron Technologies HA Source Files Project Interface Free Controller Main Boa E Sampled c Project description Samplel for IFC MBoOO i i z 1 April 006 Header Files iic h _ Object Files ic o J Library Files Linker Script 18F2685 Ikr finclude plef Z685_h gt T Other Files include iic h pragma config OSC H amp SFLL pragma config FCMEN OFF Outout fpraqma config IESO OFF z pragma config FWET OFF Build Version Control Find in Files pragma config BOREN OFF fig WOT OFF Loaded C Documents and Settir OT AE pragma config MCLEE OM fpragqgma config PEADEN OFF ye K all gt Ls gt PIC16F 2685 novedcec bank O Ln Col 1 h For those wanted to understand the program please refer to c file named Samplel c which is provided with this card 1 After completed the steps in chapter 6 2 a hex file for the sample project should be generated Connect UICOOA IDC connector to IFC MBOOA as shown The hex file generated is named IFC_MB0O0 hex Please note that Hex file generated from MPLAB IDE will be named
4. 4 a Datal Install_MPLAB_v8 File and Folder Tasks a t RAR archive Setup Launcher 57 183 KE o Microchip Technology Inc i Rename this file Move this file E instmsia A i stmsiw i Installer for the Windows Inst SF Installer For the Windows Inst A Copy this file Microsoft Corporation Microsoft Corporatior Publish this file to the Web MPLAB Tools v8 00 mplabcert Ndows instailer PSckace 169 x 187 di ACDSee 9 0 BMP Image E E mail this file XK Delete this file sme ee ee ee Other Places R Ej Desktop My Documents Shared Documents My Computer My Network Places Details InstallShield Wizard MPLAB Tools v8 00 Setup is preparing the InstallShield Wizard which will quide you through the program setup process Please wait Configuring Windows Installer ELLEELLE Description Setup Launcher Company Microchip Technology Inc File Version 10 1 0 238 Date Created 3 After all the directions shown in the welcome note as in following diagram is done please click Next gt for next step MPLAB Tools v8 00 MPLAB T ools 3 00 Installation Welcome to the MPLABYT ools Installation Program tis strongly recommended that you follow these directions 1 Quit all applications before installing this product 2 Uninstall all previous MPLAB Tools 6 versions 3 Disable any anti virus software running on the machine 4 When using the WEB Install u
5. Build Version Control Fir4 gt Created by Cytron Technologies Sdn Bhd All Rights Reserved A Cytr on 5 ROBOT HEAD to TOE oie Product User s Manual FC MB00 21 User also needs to add another file 8 2685 lkr under Linker Script If user did not change the default directory during installation in chapter 6 2 user should be able to find 18f2685 lkr in C MCC18 kr Diagram below shows the example step to add file in Linker Script it is similar with the steps to add C file object file and header file SS YT Build Version Control Fire lt gt novzdec 22 After selecting 8f2685 lkr click open then the file will be added under Linker Script Bas IFC_MBOO MPLAB IDE v8 00 Jeg File Edit View Project Debugger Programmer Tools Configure Window Help H Checs Beetle OT cece cle a Hae E J Lookin e e m J E 18f2680 lkr ek kr 16F4220 Ikr E 18F 4320 Ike E 18 2680_e Ikr as gf2sazi elk E 18f4220i kr E 18f4320i lkr 18f2680i lkr 5 lkr 18f4221 Ikr 18F4321 lkr E 18f2680i_e lkr p85 edkr E 18F4221_e lkr E 18f4321_e lkr 18f2682 lkr z 18f2685i lkr 18f4221i lkr 18f4321i lkr 18f2682_e lkr E 18f2685i_e lkr 18f4221i_e lkr 18f4321i_e lkr i File name 1812685 TS Files of type Linker Scripts Ikr x Jump to Project Directory Remember this setting Auto Let MPLAB IDE guess O User File s were created especially for this project use
6. Release Notes for MPLAB C18 Compiler v3 15 f December 2007 Table of Contents Fia jha Ehi Ear 2 breotant Be A Wigi g Fame F 5 Drao Sung MPLAR CIE i B grg MELA 0 e ae E ie S 1 How the Student Edition Differs from the Full Version MPLAB CIG i adobe mi otter p aodami Edaien oF Thaw Ahad Ma For GD dipi the Studest p te of MPLAB CIG i lenction aa Hp AA vertion Alber Gf dipi he MPLAB GHI Dudka Edige dien bom She Ai vertion in Pian Mot a epetererabens be napeeted Hanai prociiueal absireciion il nol be pupponi Tha FUE Exieeded eee jnaterded eateries pet aed hened wath bbe aet ede wed oo be upprit To punches a hall areon of the MPLAB C10 E compeler ples contact pour local devinbubor or send ftp bey mir roz hp coe 2 Important Backward Compatibility Notes MPLAB C18 Storage Qualifier Handling The chan gi to fe SSR e MPLAB CIEI OE sini popema eritten wthed conpedersieon of C language pichen mepedeg Be pypie une of cone le Dora Created by Cytron Technologies Sdn Bhd All Rights Reserved 31 Cytr on gt ROBOT HEAD to TOE Technologie Product User s Manual FC MB00 6 3 Using MPLAB IDE To start MPLAB IDE please follow the step below 1 Double click on the icon installed on the desktop after installation or select Start gt Programs gt Microchip gt MPLAB IDE v amp 00 gt MPLAB IDE A screen will display the MPLAB IDE logo followed by the MPLAB IDE desktop as in diagram below Es et PO Deiat Oona Tee one
7. Save int O Progam MBOO I al Filename C IFC _MBOd Save as type MPLAB IDE Project Files mep Jump to 7 Diagram below shown the Project JFC_MBOO had been created and the directory Click Next gt Project Wizard Step Three Create a new project or reconfigure the active project Le C Create New Project File D IFC Program MBOOMFC_MBOO Browse Created by Cytron Technologies Sdn Bhd All Rights Reserved 36 Cytr on ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 8 Step four of the project wizard allow user to add existing file to the project however for this project the files will be added in step later Please click Next gt to proceed Project Wizard Step Four Add existing files to your project 4 IFC h Remove Program _MBOO LL Be Be Bul gt l PT are 9 A summary will be shown at the end of project wizard all the project parameters are shown Please click Finish to exit from project wizard Project Wizard Summary Click Finish to createconfigure the project with these parameters Project Parameters Device PICISF2695 Toolsuite Microchip C18 Toolsuite File OAIFC Program MBOO MFC_MBOO mep Anew workspace will be created and the new project added to that workspace Created by Cytron Technologies Sdn Bhd All Rights Rese
8. Cytron Technologie IFC MB00 Interface Free Controller Main Board User s Manual V1 1 Apr 2008 Information contained in this publication regarding device applications and the like is intended through suggestion only and may be superseded by updates It is your responsibility to ensure that your application meets with your specifications No representation or warranty is given and no liability is assumed by Cytron Technologies Incorporated with respect to the accuracy or use of such information or infringement of patents or other intellectual property rights arising from such use or otherwise Use of Cytron Technologies s products as critical components in life support systems is not authorized except with express written approval by Cytron Technologies No licenses are conveyed implicitly or otherwise under any intellectual property rights Cytr on ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 Index 1 Introduction and Overview 1 1 Introduction of Interface Free Controller 1 2 System Overview 2 Packaging List 2 1 Power Card IFC PCOO 2 2 Main Board IFC MBOO 3 Product Specification 3 1 Special Microcontroller Features of PIC18F2685 3 2 Peripheral Highlights 3 3 Programming Tool 3 4 Input and Output device 3 5 Operating Voltage 4 Board or Product Layout 4 1 Power Card IFC PCOO 4 2 Main Board IFC MBO0O nn A A Aa Aa Aa Aa an A WO WOW N e e p lt 5 Installation hardw
9. Back Cancel Created by Cytron Technologies Sdn Bhd All Rights Reserved 20 Technologie Product User s Manual IFC MB00 ytron 5 ROBOT HEAD to TOE 8 Please click Next gt for the diagram below MPLAB Tools v8 00 Start Copying Files Review settings before copying files A MICROCHIP Setup has enough information to start copying the program files If wou want to review or change any settings click Back fF you are satished with the settings click Next to begin copying files Current Settings Destination Directory C Program Files Microchip Setup type selected Complete Components selected a bit MCUs 16 bit MCUs 32 bit MCUs Procrad PH 3Cmd Installshield z Bac C naws D Cancel 9 Please wait for awhile for the installation process shown in diagram below MPLAB Tools v8 00 Eg Setup Status AN MICROCHIP MPLAB Tools v amp 00 is configuing your new software installation Validating install Created by Cytron Technologies Sdn Bhd All Rights Reserved 21 Cytron X ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 10 A window will pop out if there are any program that did not close at the beginning of the installation user 1s recommended to close the entire unnecessary program and click Retry to proceed on the installation User may also click on gnore if you need to run the other program concurrently For this example gnore is clicked MPLAB T
10. Files of type is All Source Files asm c then browse to the subfolder named Program_MB0O0 to add in Samplel c For this example the Samplel c is located in D V FC Program_MBoOO0 User can select the file Samplel c and click open to add the file R IFC_MBOO MPLAB IDE v8 00 Joe File Edit View Project Debugger Programmer Tools Configure Window Help 3 LJ IFC J Lookin O Program_MBOO vo 2 ean jamplel gt File name Samplet Files of type All Source Files asm c M C Remember this setting Auto Let MPLAB IDE guess User File s were created especially for this project use relative path System File s are external to project use absolute path PIC18F2685 wo novzdec be 14 After the Samplel c file is added under Source Files the MPLAB IDE will look like the diagram below aax AET A r AN MBOO 4 File Edit View Project Debugger Programmer Tools Configure Window Help Dah jM AH Release Vico w D O ia Chec IFC_MB00 mcw x IFC_MB00 mcp CO Source Eile KEJ Samplet c C Header Files object Files Library Files E Linker Script Other Files Build Version Control Fir gt PIC18F2685 novzdec Created by Cytron Technologies Sdn Bhd All Rights Reserved 39 Cytr on 5 ROBOT HEAD to TOE aie Product User s Manual FC MB00 15 To add header file in the project right click on the Header Files t
11. Library Functions Installer consist of MPLAB Installer and MPLAB C18 compiler and Program_MBOO consist of 2 sample source codes for IFC MB00 Note The packaging list included 2 cards which are IFC MBOO and IFC PCOO It is because IFC MB00 needs IFC PCOO for power supply however users are free to choose to purchase the cards separately base on user s requirement Created by Cytron Technologies Sdn Bhd All Rights Reserved 4 Cytr on ROBOT HEAD to TOE Technologie Product User s Manual I FC MB00 3 PRODUCT SPECIFICATION The main controller of IFC MBOO is PIC 18F2685 the specification and limitations of PIC18F2685 are as below 3 1 Special Microcontroller Features of PIC18F2685 e C compiler Optimized Architecture with optional Extended Instruction Set 100 000 Erase Write Cycle Enhanced Flash Program Memory typical Flash Data EEPROM Retention gt 40 years Priority Levels for Interrupts 8 x 8 Single Cycle Hardware Multiplier Extended Watchdog Timer WDT Programmable period from 41 ms to 131s Single Supply 5V In Circuit Serial Programming ICSP via two pins e In Circuit Debug ICD via two pins e Wide operating voltage range 2 0V to 5 5V 3 2 Peripheral Highlights e High Current Sink source 25 mA 25 mA e Enhanced Addressable USART module Supports RS 485 RS 232 and LIN 1 3 RS 232 operation using internal oscillator block no external crystal required 3 3 Programming Tool The main
12. Please click Yes for the pop out window to cancel the setup of HI TECH PICC Lite This program will install HI TECH PICC Lite version 9 60PL1 Press Next to continue Cancel setup Xx Setup is not complete x7 are you sure you want to quit ws JD On line help aN nea Upgrade to STD or PRO Back Next Cancel ae ae i Tr Ca n linan n Tarhannin aS Je is foansed exclusively to HI TECH Software by Mi rocho ecology Ir 15 The installation of MPLAB V8 00 is completed Please click Finish to exit User may need to restart the computer just after the installation or restart later MPLAB Tools v8 00 InstallShield Wizard Complete The InstallShield Wizard has successlully installed MPLAB Tools v8 00 Before you can use the program you must restart your computer Yes want to restart my computer now No wal restart my computer later Remove any disks from ther dives and then click Finish to complete setup Created by Cytron Technologies Sdn Bhd All Rights Reserved 24 Cytr on ROBOT HEAD to TOE Technologie Product User s Manual FC MB00 6 2 MPLAB C18 Compiler Installation The MPLAB C18 compiler is a full featured ANSI compliant C compiler for the PIC18 family of PICmicro 8 bit MCUs Microchip offer free MPLAB C18 compiler for student with no limitation of code size and PIC type the only drawback is the code optimization is disabled For details
13. according to project name not C file name or header file name Created by Cytron Technologies Sdn Bhd All Rights Reserved AQ C veri on ROBOT HEAD to TOE _ _ Technologies Product User s Manual IFC MB00 Connector from UICOOA programmer j Power up IFC system if it is OFF Load the hex file generated to IFC main board using UICOOA refer to UICOOA User s Manual for details Check the result of program debug modify if necessary k User is free to modify the sample program to play with the IFC MBOO After modifying the sample program user can follow step No 24 in chapter 6 2 to compile and generate hex file Hex file can be loaded again to IFC main board and check the result of program l To remove a card from IFC system the power should be switched OFF m Please use proper tool to remove the card User may refer last section in chapter 5 0 Installation hardware for the method to open card with provided IFC card opener Created by Cytron Technologies Sdn Bhd All Rights Reserved 50 Cytr on ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 7 2 Basic Setup with Control Panel IFC PC00 IFC MB00 IFC CP04 Adding a control panel which comes with a 2 x16 character LCD and 4 programmable push buttons will offer more interesting demonstration Following steps show the installation of this system and method to operate it a 1 step configure the address of card Control Pa
14. correctly D is Fuse 3 F3 which provide over current protection to 12V Power Out when the fuse blows 12V Power Out to system will be terminated The fuse value is 15A E is Fuse 4 F4 which provide over current protection to 24V Power Out when the fuse blows 24V Power Out to system will be terminated The fuse value is 15A Created by Cytron Technologies Sdn Bhd All Rights Reserved 6 Cytr on ROBOT HEAD to TOE Technologie Product User s Manual FC MB00 F are side connector for stack card and communication between cards G are two Power Out connector for user to use as power supply for other output device example brushless motor H are 2 Power Out LED to indicate the availability of the Power Out supply to other IFC cards I is a toggle switch for user to ON OFF the main power supply J are 2 status indicator LED to indicate status for power supply 12V LED will turn ON when Battl is connected with a 12V battery Both of 12V and 24V LED will turn ON when Battl and Batt2 are connected with 12V battery K 1s Fuse 2 F2 which provide over current protection to 24V power supply when the fuse blows 24V power supply to system will be terminated The fuse value is 10A L is Fuse 1 F1 which provide over current protection to 12V power supply when the fuse blows 12V power supply to system will be terminated The fuse value is 5A M 1s an arrow to help user in ensuring the
15. een Oe lime Saw RY Checksum 0x440 Untitled Wo x Build Version Control Find in Files dsPIC30F4013 oabsabIPO dcenovzc a Created by Cytron Technologies Sdn Bhd All Rights Reserved 32 ROBOT HEAD to TOE Product User s Manual IFC MB00 Cytron 5 Technologie 2 The capabilities of MPLAB IDE vary according to which device is selected Device selection should be completed before starting a project In this project user should select PICI18F2685 as the device Please go to Configure gt Select Device to choose the device as shown in diagram below Select Device 7 pine Device Device Family D ecew v ALL y ntitled iu titled Microchip Tool Support Programmers PICSTARTPlus MPLAB ICD 2 O PIckit 2 PRO MATE II Pickit1 MPLAB PM3 MPLAB REAL ICE Language and Design Tools ASSEMBLER COMPILER vDI 5 04 3 04 Debuggers MPLAB SIM MPLABICD 2 PIckit 2 MPLAB REAL ICE _ MPLAB ICE 2000 on MPLAB ICE 4000 _ICEAMCD Headers PcCm18xTO PMF1SATO No Header _ Files OK Cancel Hel pc ok p ne 3 The lights indicate which MPLAB IDE components support this device e A green light indicates full support A yellow light indicates minimal support for an upcoming part that might not be fully supported in this release by the particular MPLAB IDE component Components with a yellow light instead of a green light
16. on each one to see its location If MPLAB IDE was installed into the default directory MPASM assembler executable will be C MCC18 npasm npasmwin exe MPLINK Object linker executable will be C MCC1S bin nplink exe MPLAB C18 C compiler executable will be C AMCC1S binNVncc18 exe MPLIB librarian executable will be C MCC1S bin nplib exe If these do not show up correctly use the browse button to set them to the proper files in the MPLAB IDE subfolders When you are finished click Next Project Wizard Xi Step Two B C Select a language toolsuite eo Active Toolsuite C_ Microchip C18 Toolsuite Toolsuite Contents MPASM Assembler mpasmwin exe MPLINE Object Linker rnplink exe MPLAB C18 C Compiler mee 8 exe MET IA ihram framlib am i Location CAMEE I8 mpasmimpasmwin exe Help My Suite Isn t Listed C Show all installed toolsuites z Back Next gt Cancel Hep Created by Cytron Technologies Sdn Bhd All Rights Reserved 35 Cytr on ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 6 Step three of the project wizard allows user to create new project file For an example a subfolder named Program_MB00 was first created under IFC folder then by using the Browse button browse to the subfolder Program_MB0O0 Project named ITFC_MBOO can be created by typing the project name in the column for File name and click Save Save Project As
17. programming tool for IFC system is UICOOA There is an on board UICOOA connector for ICSP loading of program User can program the IFC system easily by plug in the UICOOA program to Main Board and load hex file to the board by using software PICkit2 3 4 Input and Output device The input and output device on MBOO are as below e 3 programmable push button and 1 Reset button e programmable indicator LED e Power busy and error LED e buzzer 3 5 Operation Voltage The operation voltage of IFC MB0O0 is 12V User need to stack a Power Card IFC PC00 and connect a 12V battery on Power Card to supply 12V to the Main Board Created by Cytron Technologies Sdn Bhd All Rights Reserved 5 Cytr on ROBOT HEAD to TOE Technologie Product User s Manual FC MB00 4 BOARD OR PRODUCT LAYOUT 4 1 Power Card IFC PC00 m 2 x AAi iT Pouer Dut 12U Fl Status Indicator LED Power Out connector A is Batt connector a 12V battery should be connected here to supply 12V to the system Please ensure the polarity is correct when connect battery to the board B is Batt2 connector connect an additional 12V battery here will allow a supply of 24V Battery 1 Battery 2 to the system Please ensure the polarity is correct when connecting battery to the board C is the orientation marking on IFC PCOO Every IFC card will have this orientation marking this is to help user in ensuring the cards are stack
18. relative path System File s are external to project use absolute path PIC18F2685 W0 novzdec be Created by Cytron Technologies Sdn Bhd All Rights Reserved 43 Cytron Technologie ROBOT HEAD to TOE Product User s Manual IFC MB00 23 After added all the necessary files user can open Samplel c file in this workspace and try to compile it Diagram below shown opened Samplel c file ne FC_MBOO MPLAB IDE v8 00 D IFC Program_MBOO Sample1 c Em Fie Edit Yiew Project Debugger Programmer Tools Configure Window Help Oa a IFC_MB00 mcw E Source Files C Header Files C Object Files 3 Library Files C Linker Script C other Files P Symbols Version Control IFC_MBOO mcp E Sample1 c Finc gt PIC18F2685 ff ff Author ff Project Cytron Technologies ff Project description Samplel for IFC MBOO ut EF fi finclude lt pl18f 2685_h gt finclude iic h osc FCMEN IESO PWURT OFF BOREN OFF WDT OFF MCLRE ON PBADEN OFF DEBUG OFF XINST OFF LVP OFF HSPLL OFF OFF config config config config config config config config config config config pragma fpraqma fpraqma fpraqma pragma fpraqma fpraqma fpraqma fpraqma fpraqma no vzdcc Interface Free Controller 24 To compile user can go Project gt Build All as shown in diagram below i Dae bd x IFC_MB00 mcw IFC_MB00 n
19. Created by Cytron Technologies Sdn Bhd All Rights Reserved 26 Cytron 5 ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 4 For License Agreement please select 7 Accept if it is not selected in the diagram below and click Next gt after this License Agreement IMPORTANT MOU MUST ACCEPT THE TERMS AND CONDITIONS OF THIS LICENSE AGREEMENT TO RECEIVE A LICENSE FOR THE ACCOMPANYING SOFTWARE TO ACCEPT THE TERMS OF THIS LICENSE CLICK T ACCEPT OR OPEN THIS PACKAGE AND PROCEED WITH THE DOWNLOAD OF INSTALL FOU DO NOT ACCEPT THESE LICENSE TERMS CLICK I DO NOT ACCEPT OF DO NOT OPEN THIS PACKAGE DOWNLOAD OF INSTALL THIS SOFTWARE MFLABIR C18 COMPILER LICENSE r Accept C Do Not Accept Back Cancel 5 In the Select Installation Directory user 1s recommended to use the default installation directory which is C WCCIS or user is also free to select the other installation directory by using the Browse button to browse to the desired destination folder After that click Next gt for next step Select Installation Directory MPLAB C18 v3 75 Student Edition will be installed in the following folder WARNING Any tile in this directory or one of its subdirectories might be overwritten or removed by the setup program you wish to keep any of these files press Cancel now and save these files to another directory To choose a diferent installation directory press Browse ro
20. a brain card main controller where the main program is loaded There are several cards available for robotics development such as control panel 15A brush motor driver brushless motor controller counter and digital input output card and power card This document will focus on the main board card and power card This card has been designed with capabilities and features of e Industrial grade PCB e Every component is soldered properly and tested before board is shipped e On board UICOOA connector for ICSP loading of program e Come with PIC18F2685 MCU with 96K byte of program memory 1K byte of EEPROM and 3K byte of RAM e 3 programmable push button and 1 Reset button e programmable indicator LED e Power busy and error LED e buzzer e SV operation e UART or RS232 communication port ready e Running at 40MHz e Template and sample source code is provided for MPLAB C18 compiler This document explains the usage of IFC MBO0 Main Board and IFC PC00 Power Card Created by Cytron Technologies Sdn Bhd All Rights Reserved 1 Cytr on ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 1 2 System Overview With serial communication perception IFC offer million of possibilities to develop embedded system creatively and easily In IFC several cards are stacked to get a complete embedded system The minimum card requires is Power card and Main Board Encoder digital sensor Relays etc Brushle
21. are p lt 6 Installation software 6 1 MPLAB IDE Installation 6 2 MPLAB C18 Compiler Installation 6 3 Using MPLAB IDE 7 Getting Started 7 1 Basic Setup IFC PC00 IFC MBOO 7 2 Basic Setup with Control Panel IFC PCOO IFC MBOO IFC CP04 nn A A WO N e OA e NY WB N A 9 8 Warranty Created by Cytron Technologies Sdn Bhd All Rights Reserved Cytr on ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 1 INTRODUCTION AND OVERVIEW 1 1 Introduction of Interface Free Controller IFC Interface Free Controller offer a new concept of developing microcontroller embedded system and also robotics system With IFC no more frustration in determine hardware interface and configuring peripheral in software Checking few hundreds pages of data sheet can be waved With the concept of interfacing card user may stack as many as 64 cards ina system to get infinite combination of peripherals The design aim is to offer 3 simple steps in microcontroller system development Configure card s address Stack IFC cards Write Program and Run Furthermore with functions based software library user save valuable time during software development by concentrating on algorithm development No more flipping or scrolling PIC data sheet looking for ADCONO TICON or even TRISA With just a programming hand book user may simply copy the header file call comprehensive functions and it s ready to rock IFC come with
22. are often intended for early adopters of new parts who need quick support and understand that some operations or functions may not be available A red light indicates no support for this device Support may be forthcoming or inappropriate for the tool e g dsPIC devices cannot be supported on MPLAB ICE 2000 Created by Cytron Technologies Sdn Bhd All Rights Reserved 33 Cytr on ROBOT HEAD to TOE Technologies Product User s Manual IFC MB00 4 The next step is to create a project using the Project Wizard A project is the way the files are organized to be compiled and assembled We Choose Project gt Project Wizard From the Welcome dialog click on Next to proceed The next dialog Step One allows you to select the device which we ve already done Make sure that it says PIC18F2685 If it does not select the PICI18F2685 from the drop down menu Click Next gt Project Wizard Step One B Select a devi i elect a device Device PICT SF 268 Created by Cytron Technologies Sdn Bhd All Rights Reserved 34 Cytron 5 ROBOT HEAD to TOE Technologies Product User s Manual FC MB00 5 The next step of the Project Wizard is sets up the language tools that are used with this project Select Microchip C18 Toolsuite in the Active Toolsuite list box Then MPASM MPLINK MPLAB and MPLIB should be visible in the Toolsuite Contents box Click
23. ated environment to develop code for embedded microcontrollers MPLAB IDE provides a good platform for other compiler language tools to be integrated MPLAB C17 MPLAB C18 and MPLAB C30 from microchip provide fully integrated optimized code To install MPLAB IDE simply open the folder of IFC Installer MPLAB_v8 in the IFC MBO00 CD Current version of MPLAB IDE is 8 00 For the latest version of MPLAB IDE please download from Microchip website www microchip com Please install MPLAB IDE according to the following steps 1 Please double click on the Setup Launcher to install MPLAB V8 00 j MPLAB_v8 Joke File Edt View Favortes Tools Help ar S P Search i Folders fs Address 9 C Documents and Settings yuan Desktop MPLAB_v8 EJ co Data File and Folder Tasks a fake a new folder i Publis i this folder to the lae instmsia Web Share this folder aj MPLAB Tools v8 00 Other Places a esktop saor Wa Readme for MPLAB IDE Q My Documents Install_MPLAB_v eee D gt al S 4 a gt 7 objects 67 3 MB og My Computer Created by Cytron Technologies Sdn Bhd All Rights Reserved 17 Cytr on ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 2 The InstallShield Wizard will pop out ee G MPLAB v8 m Fa f f v E gt P Search Kes Folders Address B C Documents and Settings yuan Desktop MPLAB_v8 x zd Go
24. bat 7 0 Document C MPLAB C18 StudentEdition v3 3 026 KB Adobe fm Rename this file iy Move this file Py Copy this file Publish this file to the Web G E mail this file XK Delete this file Other Places MPLAB C18 Student Edition Installation O Installer My Documents O Shared Documents 4 My Computer My Network Places Initializing Wise Installation Wizard Details File version 1 0 0 0 Date Created 4 17 2008 4 44 PM Size 34 2 MB My Computer 3 After that there will be a welcome screen displays the version number of MPLAB C18 that the setup program will install Please click Next gt to proceed Welcome to the MPLAB C18 v3 15 Student Edition setup program This program vill install MPLAB C18 v3 15 Student Edition on your computer If at any time before the installation begins pou wish to exit the setup program press Cancel Your computer will not have been affected IMPORTANT IF your computer is running any version of MPLAB IDE at this time and you wish to update it to use the newly installed MPLAB C18 or MPLINE Linker exit MPLAB IDE now before continuing the setup program WARNING This program ie protected by copyright law and Intemational treaties Unauthorized reproduction or distribution of this program or ary portion of it may result in severe civil and criminal penalties and Will be prosecuted to the masimum extent possible under law
25. cards are stack correctly Every IFC card has this arrow user needs to ensure that the arrow points to the same direction when IFC cards are stack together Created by Cytron Technologies Sdn Bhd All Rights Reserved 7 Technologie Product User s Manual IFC MB00 Cytr on ROBOT HEAD to TOE 4 2 Main Board IFC MB00 r C q G i C LED Die ANT a AE JOC We Rie 6 7 8 pJecA uteu a cs Busy error eee L K J I H G A 5Vregulator Output LED o o o B Serial cable adaptor female DB9 I Pushbuttons D _ _ Box Header for UICOOA K ResetButton E Orientation marking L Status Indicator LED KF Side connector connector O M Arroow Header Pin for UART communication selection A is a 5V voltage regulator B is a Serial port RS232 which allow user to connect the controller s UART to PC C is PIC18F2685 which is used as main controller for the system D is a 2x5 box header for UICOOA USB ICSP PIC Programmer E 1s the orientation marking on IFC MBOO Every IFC card will have this orientation marking this is to help user in ensuring the cards are stack correctly F are side connector for stack card and communication between cards Created by Cytron Technologies Sdn Bhd All Rights Reserved g Cytr on ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 G 2 sets of 3 x 1 header p
26. cription Sampliel for IFC MBOO Sample1 c C Header Files LQ Object Files C Library Files C Linker Script include lt p18f268S_h QO Other Files include iic h eonfiguration bit config OSC HSPLL config FCMEN OFF config IESO OFF config PWRT OFF config BOREN OFF config WDT OFF config MCLRE ON config PBADEN OFF config DEBUG OFF config XINST OFF config LVP OFF PICISF2685 W 0 26 Please refer chapter 7 Getting Started for modifying program and other setup for using IFC MBOO Created by Cytron Technologies Sdn Bhd All Rights Reserved A5 Cytr on ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 7 GETTING STARTED IFC is being design with the aim of 3 simple steps Configure card address Stack it Load program and run There must be at least a power card IFC PCOQO and a main board IFC MBOO0 for this system to function Since IFC offer many possibilities to create your own system this section will show several examples of operating it There should be only one power card and one main board in IFC system however there is not limitation maximum 64 cards for the amount of slave cards 1 step Address Configure Card s address 2 step Stacking Stack the card s Connect the necessary battery Connect necessary sensor or motor Turn it ON 3 step Program Include the necessary header and object file s Write program u
27. cuments and Settir praqma con ig fipraqma config WOT OFF fpragma config IESO Yersion Control Find in Files praqma config PWET fpraqma config MCLEE OW PIC1SF2685 novzedcec bank 0 Ln Col 1 g For those wanted to understand the program please refer to c file named Sample2 c which is provided with this card Created by Cytron Technologies Sdn Bhd All Rights Reserved 53 Cytr on ROBOT HEAD to TOE oe Product User s Manual FC MB00 h Compile this project to generate hex file Connect UICOOA IDC connector to IFC MB00 as show The hex file generated is named IFC_CP hex Please note that Hex file generated from MPLAB IDE will be named according to project name not C file name or header file name Me rer Blea EEU AN H Le Paley rbp Connector from UICOOA programmer 99 66e 1 However user may also add the Sample2 c tic_cp h and lic_cp o to project opened in chapter 7 0 without creating a new project for Control Panel j Load the hex file generated to UICOOA using PICkit2 window refer to UICOOA User s Manual for details Power up IFC system if it is OFF k This sample project will print message at LCD on Control panel after reset The message print after reset are Welcome IFC User l There are also 4 modes for user to select in program Sample2 c User can select mode by pressing push button on IFC CP04 Each time after selecti
28. dd ALL header files and object files for all related IFC cards used User also needs to include ALL cards header file at the beginning of the program Please refer sample source code for the example to include card h file Created by Cytron Technologies Sdn Bhd All Rights Reserved 55 Cytr on ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 8 WARRANTY gt Product warranty is valid for 6 months gt Warranty only applies to manufacturing defect gt Damage caused by misuse is not covered under warranty gt Warranty does not cover freight cost for both ways Prepared by Cytron Technologies Sdn Bhd 19 Jalan Kebudayaan 1A Taman Universiti 81300 Skudai Johor Malaysia Tel 607 521 3178 Fax 607 521 1861 URL www cytron com my Email support cytron com my sales cytron com my Created by Cytron Technologies Sdn Bhd All Rights Reserved 56
29. description of MPLAB C18 please refer to MPLAB C18 User s Manual Following diagrams show the installation guide of Student Version of MPLAB C18 compiler To start MPLAB C18 installation simply open the folder of TFC Installer MPLAB C18 in the IFC MBOO CD MPLAB IDE needs to be installed before installation of MPLAB C18 Please install MPLAB C18 according to following steps 1 Please double click on the application file for MPLAB C18 StudentEdition v3_15a to start the installation f MPLAB_C18 SEE File Edit View Favorites Tools Help ay Q Back P S p Search Ky Folders ii Address D cytron IFC IFC_MBO0 CD Installer MPLAB_C18 v gt fc p pa w MPLAB_C18_Getting_Started_ File and Folder Tasks Adobe Acrobat 7 0 Document MPLAB C18 StudentEdition v3 Ma 3 026 KB i rsion G Make a new folder a Publish this Folder to the Web E3 Share this Folder Other Places Installer My Documents Shared Documents P My Computer My Network Places 37 1 MB d My Computer Created by Cytron Technologies Sdn Bhd All Rights Reserved 25 Crtri on ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 2 An Initializing Wizard that looks like the diagram below will pop out f MPLAB_C18 l a x Q sax Q P P Search Kes Folders fi Address D cytron IFC IFC_MBOO CD Installer MPLAB_C18 b MPLAB_C18_Getting_Started _ File and Folder Tasks Adobe Acro
30. e in the project First right click on the Object Files then click on Add Files diagram below shown the example for add file to Object Files lt B IDE v8 00 File Edit View Project Debugger Programmer Tools Configure Window Help DSE X aa Shwe Release vei os DO Sa Chec IFC_MBO0 mcw X C IFC_MB00 mcp Source Files Sample1 c 5 C Header Files E ic h EI Fies Output Build Version Control Finib gt PICISF2685 Created by Cytron Technologies Sdn Bhd All Rights Reserved Al Cytron 5 ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 19 After clicking on Add Files a window pop out do make sure the Files of type is Object Files o browse to the subfolder named Program_MB0O0 to add in iic o For this example the lic o is located in D VFC Program_MB0O0 Select the file c o and click open to add the file IFC_MBOO MPLAB Ow ed amp E 1Fc_Msoc 7 i Cen Files of type Object Files 0 ha Project Directory ha C Remember this setting Auto Let MPLAB IDE guess O User File s were created especially for this project use relative path O System File s are extemal to project use absolute path 20 After the c o file is added under Object Files the MPLAB IDE will look like the diagram below C IFC_MB00 mcp A E Source Files B Sample1 c 5 Header Files E ic h mia
31. e the installation begins any file in the installation directory or one of its subdirectories might be overwritten or removed To exit the setup program now without overwriting or removing these files press Cancel Cancel Created by Cytron Technologies Sdn Bhd All Rights Reserved 29 Cytron 5 ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 10 Please wait for awhile for the installation process shown in diagram below Installing Copying file C MCC18 mpasm P1 8F2450 INC 11 11 After the installation completed a diagram as below will be shown user can select the release notes that wish to read in this example the release notes for MPLAB C18 is being selected Please click Finish gt to exit installation Installation Complete MPLAB C18 v3 15 Student Edition has been successfully installed Press the Finish button to exit this installation W Open MPLAB C18 Release Notes Open MPLINK Release Notes Open MPASM Release Notes Created by Cytron Technologies Sdn Bhd All Rights Reserved 30 Cytr on ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 12 The release notes MPLAB C18 is being shown after the installation process since it was being selected in the last step MPLAB CTD Compiler Pelee Hotes azilla Firedon Pat x fie Oct few Peto feel Tos fen E A O Sca L HTM b Kae 4 Ga BLA DE Mae hipi PLA CIO Compier Ariege a ol
32. ed users Created by Cytron Technologies Sdn Bhd All Rights Reserved 19 Cytron gt ROBOT HEAD to TOE Product User s Manual IFC MB00 6 In the Choose Destination Location user is recommended to use the default destination folder which is C Program Files Microchip or user is also free to select the other destination folder by using the Browse button to browse to the desired destination folder After that click Next gt for next step MPLAB Tools v8 00 Choose Destination Location Select folder where setup will install files Setup will install MPLAB Tools v8 00 in the following folder AS MicrocHip To install to this folder click Nest To install to a different folder click Browse and select another tolder M Destination Folder C Program Files Micrachip 7 Please select I accept the terms of the license agreement if it is not selected in the diagram below and click Next gt after this MPLAB Tools v8 00 Application Maestro License AN MICROCHIP MAESTRO SOFTWARE LICENSE AGREEMENT jYOU ARE PERMITTED TO ACCESS THE SOFTWARE AND DOCUMENTATION ONLY IF YOU ACCEPT THE TERMS AND CONDITIONS OF MICROCHIP S NON EXCLUSIVE LICENSE AGREEMENT FOR MAESTRO SOFTWARE HEREAFTER THE RGREEMENT IF YOU AGE HE TERMS OF THE AGREEMENT INDICATE accept the terms of the license agreemen donot accept the terms of the license agreement Print lt
33. h the interfacing card in the form of header file h and object file o In order to call these functions particular header file and object file must be included under a project f Open MPLAB IDE please ensure MPLAB C18 is being installed User can follow the step in chapter 6 2 Using MPLAB IDE to open project named IFC_CP for IFC Control Panel Please note that the header file iic h and tic_cp h and object file iic o and iic_cp o for IFC MBOO and IFC CP04 have to be included in the project If user did not use the provided sample source code Sample2 c user also needs to include card s header file at the beginning of the program Figure shows the example to include header file object file and card s header file M IFC MPLAB IDE v8 00 C Sample2 c il File Edit View Project Debugger Programmer Tools Configure Window Help 0 x E amp kh amp F ra Checksum Oxdf84 Author 2 Cytron Technologies Froject z Interface Free Controller Main Boa ce Project description Samplez for IFC HEOO with Control Sample c z Zl April 008 Header Files lich ic_cp h Object Files I ico include h file for cards a T de h file for all the cards used E iic_cp o Library Files include lt p1l8f27685_h gt Linker Script finclude iic h E 18f2685 lkr finclude iic_cp h W Other Files fpraqma config OSC H amp SFLL fpragqma config FCMEN OFF OFF OFF ir fig BOREN OFF Loaded C Do
34. hen click on Add Files diagram below shown the example for add file to Header Files Ac ETN ST ERG A OS Lm Shwe Release vla S a D O L eG Chec IFC MB00 mew x ENI Build Version Control Finke la PIC16F2685 novzdec 16 After clicking on Add Files a window pop out do make sure the Files of type is Header Files h inc browse to the subfolder named Program_MBO0O0 to add in ic h For this example the 1ic h is located in D VFC Program_MBoOO0 Select the file tic h and click open to add the file Plex Check ao MBOO MP Files of type Header Files h inc v Ju C Remember this setting Auto Let MPLAB IDE guess User File s were created especially for this project use relative path System File s are external to project use absolute path PIC18F2685 EAN novzdee be Created by Cytron Technologies Sdn Bhd All Rights Reserved 40 Cytron 5 ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 17 After the iic h file is added under Header Files the MPLAB IDE will look like the diagram below IFC MBO0 mcw x J IFC_MB00 mcp 4 E Source Files Sample1 c 5 Header Files Object Files Library Files Linker Script xe E Fies Output Build Version Control Fir gt PIC18F2685 OW movzdec 18 User may repeat the similar steps to add object fil
35. in for Rx and Tx communication User can choose to connect the controller s UART either to PC or Board Connection to Board is reserved for IFC future development H are 8 LEDs as output for Main Brain I are 3 push buttons for user to use as mode selection switch J is a buzzer for user to use as alarm or indicator K is a push button with the function of Reset for PIC18F2685 on board L are 3 status indicator LED to indicate status for power ON PWR busy in communication with other cards Busy and program error Error PWR LED will ON when power supplied to the board Busy LED will ON when the card is busy in communication with other slave card like Output Card Control Panel and Digital Input card Error LED will ON when the address set on slave card did not match with the address in main program M is a arrow to help user in ensuring the cards are stack correctly Every IFC card has this arrow user needs to ensure that the arrow points to the same direction when IFC cards are stack together Created by Cytron Technologies Sdn Bhd All Rights Reserved 9 Cytron 5 ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 5 INSTALLATION HARDWARE 1 Main power supply e 1x 12V battery e Provide power for circuit relays sensors and signal for brush motor e If brushless motor is used 2 x 12V batteries must be connected to provide 24V 11 How to connect the wire to battery connector 3961
36. nel has a mini jumper to configure address It should be set to CP1 Upper side if sample source code is being used b 2 step is to stack all three cards together Power card IFC PC00 should be at the bottom while Main board IFC MBOO0O at Vi layer and Control Panel IFC CP04 at top layer as shown in following figure Ensure the arrow points to the same direction Ensure the orientation marking at the same side Created by Cytron Technologies Sdn Bhd All Rights Reserved 51 Technologie Cytr on ROBOT HEAD to TOE __ Technologies Product User s Manual FC MBOO c Connect the battery to Power card as shown please ensure the polarity is correct Connect 1 x 12V battery to supply operating voltage to IFC Ensure the polarity is correct If 24V is needed in the system connect polarity is correct d Turn ON the IFC power by pushing the toggle switch to ON There should be at least 3 LED 12V LED on Power Card PWR LED on Main Brain and PWR LED on Control Panel light up as show PWR LED on IFC CP04 laueg tonuo PWR LED on IFC MBOO 12V LED on IFC PCOO Created by Cytron Technologies Sdn Bhd All Rights Reserved Cytron 5 ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 e 3 step is to write program and load it IFC comes with comprehensive function to save program development time Functions library will come wit
37. ng the mode user needs to press reset to exit if other mode is require to be tested The modes are Function Display Thank You note to IFC user LED No 1 on IFC MBOO will turn ON and buzzer on MBOO will beep for 1 time Display Decimal Number 123456 on LCD LED No 2 on IFC MBOO will turn ON and buzzer on MBOO will beep for 2 times Display Character A on LCD LED No 3 on IFC MBOO will turn ON and buzzer on MBOO will beep for 3 times Display Binary Number 10101010 on LCD LED No 4 on IFC MBOO will turn ON and buzzer on MBOO will beep for 4 times Created by Cytron Technologies Sdn Bhd All Rights Reserved 54 Cytr on ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 m Please refer the comment in source code for the details of mode n To remove a card from IFC system the power should be switched OFF o Please use proper tool to remove the card User may refer last section in chapter 5 0 Installation hardware for the method to open card with provided IFC card opener Note 1 User can refer to IFC CP04 Card Library Function for the program function list It will help user in writing program for IFC CP04 Note 2 There is also a Template file included in the CD user can find the template in folder IFC Program_MBOO The Template will help user to start basic program development for IFC system Note 3 Each time opening a new project for IFC user needs to a
38. onnect the battery to Power card as shown please ensure the polarity is correct Connect 1 x 12V battery to supply operating voltage to IFC Ensure the polarity is correct If 24V is needed in the system connect PCOO Ensure the polarity is correct d Turn on the IFC power by pushing the toggle switch to ON There should be at least 2 LED PWR LED on Main Brain and 12V LED on Power Card light up as show PWR LED on IFC MBOO i Busy error E re keset 12V LED on IFC PCOO e By default IFC MBOO is loaded with a demo firmware which will show LED blinking when it is powered up Created by Cytron Technologies Sdn Bhd All Rights Reserved 48 Cytr on ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 f 3 step is to write program and load it IFC comes with comprehensive function to save program development time Functions library will come with the interfacing card in the form of header file h and object file 0 In order to call these functions particular header file and object file must be included under a project g Open MPLAB IDE please ensure MPLAB C18 is being installed User can follow the step in chapter 6 2 Using MPLAB IDE to open project named IFC_MB0O0 for IFC Main Brain Please note that the header file aic h and object file c o for IFC MBOO has to be included in the project If user did not use the provided sample source code Samplel c
39. ools v8 00 Files in Use Some files that need to be updated are cumently in use A MICROCHIP i The following applications are using files that need to be updated by this setup Close these applications and click Retry to continue 11 Please wait for the installation process to be completed MPLAR Tools vE O Setup Status a K Microcuip MPLAB Tools v8 00 is configuring your new software installation C Program Files Microchip MPASM Suite P1BCES INC Created by Cytron Technologies Sdn Bhd All Rights Reserved 22 Cytr on ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 12 A window for Installing PICC Lite will pop out please click OK to proceed Setup Status Installing PICC Lite It is not controlled by this installer It will not be uninstalled if you uninstall MPLAB IDE i PICC Lite will now be installed by an external executable provided by HI TECH Software Sam 13 Please click Cancel to exit from Installing HI TECH PICC Lite since this function will not be use in IFC Anyway user may also install HI TECH PICC Lite if it is needed Installing HI TECH PICC Lite PICC Lite This program will install HI TECH PICC Lite version 9 60PL1 Press Next to continue Ondine help Upgrade to STD o PRO Created by Cytron Technologies Sdn Bhd All Rights Reserved 23 ytron gt ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 14
40. quire to ensure all card pins are not shifted when stacking Figures show the example of stacking cards in proper location and example of stacking cards with shifted pins Ensure that all card FT ate TAG i Y g Ki 7 F FT pins are not shifted Pri N PEETER when stacking a oe MV TITI EAMES PETE Pets 7 Examples of stacking cards with shifted pins Please elt Saal Ifa AVOID this T AD in Created by Cytron Technologies Sdn Bhd All Rights Reserved 13 Cytron 5 ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 i g es og Oe Ensure that all card pins are not shifted when stacking Examples of stacking cards with shifted pins Please AVOID this Cautions Please ensure that all card pins are not shifted when stacking IFC system will NOT function if the pins are shifted Created by Cytron Technologies Sdn Bhd All Rights Reserved 14 Cytr on ROBOT HEAD to TOE __ Technologies Product User s Manual IFC MB00 Next please turn ON the power on Power Card by pushing the toggle switch to ON label the PWR LED of IFC MBO0 and IFC PC00 will turn ON as shown in Figure G13 PWR LED on arth 4 IFC MB00 n ae ee Or coset 12V LED on IFC PC00 Created by Cytron Technologies Sdn Bhd All Rights Reserved 15 Cytron 5 ROBOT HEAD to TOE Technologies Product User s Manual IFC MB00 To open the ca
41. rds user can use the IFC card s opener to open the stacked cards Figure shows the method to open cards with the opener Please ensure the power is OFF before inserting or removing IFC card l Caution Please use the opener to open IFC cards to avoid damage to pins or cards Created by Cytron Technologies Sdn Bhd All Rights Reserved 16 Cytr on ROBOT HEAD to TOE Technologies Product User s Manual FC MB00 6 INSTALLATION SOFTWARE A program editor C compiler and UICOOA software is required to be installed in order for user to write program compile it and further loading program to IFC main board User is recommended to use MPLAB IDE as source code editor and MPLAB C18 as C compiler Both this software is from Microchip and it is provided freely to download This section will explain the method to install these software and next section will briefly discuss on method to use it As for the installation of UICOOA software please refer to UICOOA User s Manual 6 1 MPLAB IDE Installation MPLAB Integrated Development Environment IDE is a comprehensive editor project manager and design desktop for application development of embedded designs using Microchip PICmicro and dsPIC microcontrollers It is a free product of Microchip Inc and is an effort to make source code development as smooth and comprehensive as possible It is called an Integrated Development Environment or IDE because it provides a single integr
42. rved 37 Cytr on gt ROBOT HEAD to TOE Technologies Product User s Manual FC MB00 10 After pressing the Finish button review the Project Window on the MPLAB IDE desktop It should look like the diagram below If the Project Window is not open please select View gt Project ho a a ep Mon um 2p ine Tat P a gt ri A BOO MPLAB ID 8 00 File Edit view Project Debugger Programmer Tools Configure Window Help Dee i mB Shwe Release va a a DO L a Chec IFC_MB00 mcw x _MBOO niep E Source Files C Header Files E Object Files 3 Library Files C Linker Script SJ Other File Build Version Control Find in Files Sane PE stor PIC18F2685 A noyzdcc 11 It is recommended for user to copy all C file object file and header file from the CD provided to the specific project folder open for IFC MBOO in step 6 which is Program_MBOO It is because all C file object file and header file should be place in the same folder with the project file User should follow the subsequent steps to add files in the project created 12 To add file in Source Files right click on the Source Files then click on Add Files diagram below shown the example for add file to Source Files PIC18F2685 A novzdcec Created by Cytron Technologies Sdn Bhd All Rights Reserved 38 Cytr on gt ROBOT HEAD to TOE Technologies Product User s Manual FC MB00 13 After clicking on Add Files a window pop out do make sure the
43. se the Browser Internet Options to Delete Files from the Internet Temp Directory Created by Cytron Technologies Sdn Bhd All Rights Reserved 18 Cytr on ROBOT HEAD to TOE oes Product User s Manual FC MB00 4 Please select I accept the terms of the license agreement if it is not selected in the diagram below and click Next gt after this MPLAB Tools v8 00 License Agreement Please read the following license agreement carefully AN MicrRoc HIP IMPORTANT ia MICROCHIP IS WILLING TO LICENSE THE MPLAB IDE SOFTWARE AND ACCOMPANYING DOCUMENTATION OFFERED TO YOU ONLY ON THE CONDITION THAT YOU ACCEPT ALL OF THE FOLLOWING TERMS TO ACCEPT THE TERMS OF THIS LICENSE CLICK I ACCEPT AND PROCEED WITH THE DOWNLOAD OR INSTALL IF YOU DO NOT ACCEPT THESE LICENSE TERMS CLICK IDO NOT ACCEPT AND DO NOT OPEN DOWNLOAD OR INSTALL THIS SOFTWARE MPLAB IDE LICENSE accept the terms of the license agreement do not accept the temne of the license agreement lt Back Next gt Cancel 5 Please select Complete for the setup type to install all program features and click Next gt to next step MPLAB Tools v8 00 Setup Type Select the setup type to install Please select 4 setup type Complete F All program features will be installed Requires the most disk space C Custom Select which program features you want installed Recommended for advanc
44. sing template given Call necessary function referring to Program Reference Notes Compile and Load Program through UICOOA There are 2 basic setups in this chapter for IFC MBOO First setup includes 2 cards IFC PCOO and IFC MBO0 and second setup includes one extra card which is IFC PC04 Please refer to following section of this chapter for setup details Created by Cytron Technologies Sdn Bhd All Rights Reserved 46 Cytron 5 ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 7 1 Basic setup IFC PC00 IFC MB00 This is the basic and minimum setup for IFC to function Though without other card this basic setup can still perform some task such as reading switch LED blinking pattern controlling buzzer and RS232 communication Following steps show the installation of this system and method to operate it a 1 step should be configuring card address however since this is the minimum system no configuration on card address is necessary b 2 step is to stack both these cards Power card IFC PC00 should be at the bottom while Main board IFC MBO0 at the top or 2 layer as shown in following figure Ensure the arrow points to the same direction Ensure the orientation marking at the Same side Created by Cytron Technologies Sdn Bhd All Rights Reserved AT Technologies Cytr on gt ROBOT HEAD to TOE lt Technologies 1 Product User s Manual IFC MB00 c C
45. ss motors Brushless motors Brush motor Power and communication This document explains the method to use IFC MBO0O Created by Cytron Technologies Sdn Bhd All Rights Reserved 2 Cytron 5 ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 2 PACKAGING LIST Please check the parts and components according to the packing list If there are any parts missing please contact us at sales cytron com my immediately 2 1 Power Card IFC PC00 BATT 1 12V BATT 1 2 24V Fi for internal 12V F2 for htemol 24V F3 for Power Out 12V c I T c m HE Pover W Out 12V 24U 1 1 x IFC PCOO with e 1x toggle switch e 4x Fuse e Female connector for every terminal e Other electronics components soldered on board Created by Cytron Technologies Sdn Bhd All Rights Reserved 3 Cytr on gt ROBOT HEAD to TOE O Sister o Product User s Manual FC MB00 2 2 Main Board IFC MB00 P t vocan w g2 2 Sh Rea rin x p o C x q Cc Cc seon uleu tis TA a 7 i pa 5 buzzer j 2 FS 2 Je er 2 Busy Error Ro Jd i 2 1x IFC MBO0O0 with 1 x PICI18F2685 PIC microcontroller 1 x Buzzer 1 x Serial cable adaptor female DB9 1 x Box Header 2 x mini jumper Other electronics components soldered on board 1 x CD which contained 3 folders The folders are Documentation consist of IFC MBOO User s Manual and IFC CP04 Card
46. t below select the checkboxes for the desired environment variable configuration options M Add MPLAB C18 to PATH environment variable I Add MPASM to PATH environment variable W Add header file path to MCC_INCLUDE environment variable Ba Net gt gt Cancel Created by Cytron Technologies Sdn Bhd All Rights Reserved 28 Cytron 5 ROBOT HEAD to TOE Technologie Product User s Manual FC MB00 8 There is another Configuration Options which allows users to select a particular set of desired MPLAB IDE configuration options for their system Please refer to MPLAB C18 Getting Started document in the CD for detailed description of the available configuration options In this example all the options are selected Please click Next gt to continue a Configuration Options In the list below select the checkboxes for the desired MPLAB IDE configuration options j Update MPLAB IDE to use this MPLAB C18 Update MPLAB IDE to uze this MPLINKE Linker MPLIE Librarian and MPASM Assembler M Place link to documentation for this compiler in MPLAB IDE Help Topics W Perform MPLAB IDE updates for all users Cancel 9 Please click Next gt for the diagram below to start installation after all the setting done sa Start Installation fou are now ready to install MPLAB C18 v3 15 Student Edition Press Next to begin the installation or Back to change the installation information WARNING Onc
47. u cannot install the demo over a previous non demo installation of MPLAB C18 Installation Directory CAMCC18 Browse Cancel Created by Cytron Technologies Sdn Bhd All Rights Reserved 27 Cytron 5 ROBOT HEAD to TOE Technologie Product User s Manual IFC MB00 6 User can choose the components to be installed by checking the appropriate box in Select Components window Please refer to MPLAB C18 Getting Started document in the CD for detailed description of the available components Select Components In the list below select the checkboxes for the components that you would like to have installed The disk space fields reflect the requirements of the components you have selected fi Program files 11469 k M Assembler files 16857 k M Linker script files 1066 k M Standard headers 7919k M Standard libraries 214689 k M Documentation BSE k M Examples 9245 k J Library source code 15602 k Preprocessor source code 1494 k Disk Space Required 257696 k Disk Space Remaining BOES599 k z Back i H i Cancel 7 The Configuration Options below allows users to select a particular set of desired environment variable configuration options for their system Please refer to MPLAB C18 Getting Started document in the CD for detailed description of the available configuration options In this example all the options are selected Please click Next gt to continue Configuration Options ln the lis
Download Pdf Manuals
Related Search
Related Contents
Manual del operador Design Wärmeplatte WP 1 Gebrauchsanweisung 2 1990 Troy-Bilt Trail Blazer Sickle bar Mower 87091 Bluetooth Headset Quick Setup Guide G7717 取扱説明書.indd 電動ポンプユニット取扱説明書 [ AUT 025U-07 ] Copyright © All rights reserved.
Failed to retrieve file