Creating a new MPLAB 8 mTouch Framework Project

  1. Copy the mTouchCVD.h and mTouchCVD_Config.h files out of the framework's /includes directory and place them in a folder named 'includes' in the local application's directory.

  2. Open MPLAB 8 and close any currently active projects.

  3. Navigate to: Project --> Project Wizard... --> Next

  4. Select the PIC your application will be using and click 'Next'.

  5. Select the appropriate HI-TECH C compiler and click 'Next'.

  6. Select the desired location for your project and click 'Next'.
    HINT: Place your project in a sub-folder to keep the compiler-generated files from cluttering the project source directory.

  7. In the left window, navigate to the mTouch library's source directory and add all the '.c' files to your project.

  8. In the left window, navigate to your local application directory and add all source files to your project. Click 'next'.

  9. Click 'Finish', wait for the project to be created, then navigate to Project --> Build Options... --> Project

  10. Under the 'Directories' tab, select 'Include Search Path' in the drop down box.

  11. Click 'New' and then the '...' button that appears in the list window.
    Navigate to and select the framework's root source directory 'PIC16F CVD FW Library'.

  12. Click 'New' and type '..' as the directory name.
    NOTE: Make sure this entry is located above the framework directory. If not, use the 'up' button to reorder them.

Now check out the main_example.c file located in the framework's library folder or one of the main.c files in the mTouchCapDemos folder for suggestions on using the mTouch framework's API.