Tutorial Pic

Páginas: 19 (4659 palabras) Publicado: 29 de enero de 2013
METU-EEE

EE 494-Engineering Design II

Tutorial 1: Implementation of a USB based PIC-to-PC communication
I. INTRODUCTION

The objective of this tutorial is to introduce some basic free software tools used for intermediate PIC programming. Supplementary information is given on programming PIC’s which have USB hardware support. The tutorial focuses on the installation, integration andsettings of these tools and at the end of the document, an example application with 18F4553 is provided to demonstrate the PIC-to-PC communication via USB. Prerequisites: Familiarity with C programming is required. Object oriented programming background might be helpful in understanding the examples.

II. Firmware Tools The following device programming software are sufficient and effective tools forPIC firmware implementation. These will be briefly explained in the subsections. A. MPLAB IDE

MPLAB® IDE is a powerful firmware development tool which supports many compiling options and debugging interfaces hence provides a flexible and structural development environment for the programmer. It can on run on Windows® platform as a 32-bit application. The environment is simply a notepadapplication which is assisted by supplementary features. The tool is freely provided by Microchip® and its final release can be downloaded from: www.microchip.com (can be found at the design section of the page). Previous versions can be found at the archive page: http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDoc Name=en023073 Here, the installation of the version 8.43 ofMPLAB will be explained. The installation procedure can differ according to the final release of the tool. Therefore, consult the relevant documents before installing the final versions. 1) Download the MPLAB 8.43 from the webpage1: http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDoc Name=en019469&part=SW007002 2) Extract the .zip package to a folder 3) If there is aprevious installation of the software (older than 8.43), remove it prior to installation.
If the pages are updated, you can find the final versions (as well as the previous releases) of the software tools presented in this document from the relevant sections of the microchip webpage or archives.
1

4-1

METU-EEE

EE 494-Engineering Design II

4) In the extracted folder, run setup.exe withan administrative profile and follow the recommended remarks, accept the license terms, select complete installation etc. 5) At this stage, MPLAB will validate your installation which will take about 10-30 minutes depending on how you follow the instructions. If you forgot to remove the previous installations, the program will first try to uninstall those configurations. 6) After a while, theinstallation program will ask you to install the HI-TECH C compiler which is the default compiler for PIC10/12/16 microcontrollers to be used within MPLAB. Select Yes to install the final version of the compiler (9.70 is the final release of this compiler for now).

Figure 1: Installation of HI-TECH C Compiler

7) Click Next, accept the license agreement, note on the installation directory, checkthe “Add the environment path” option. 8) Restart your computer

After the installation of MPLAB IDE is complete, you can see the documentation related to various tools and patches used in MPLAB.

4-2

METU-EEE

EE 494-Engineering Design II

Figure 2: Release Notes and Installed Tools for MPLAB

If you have any problems with the installation steps, refer to the documentations of MPLABfrom its webpage. From the webpage, you can also find useful links on writing codes in C with example applications documented by MPLAB communities and forums, describing the application procedures (hardware configurations, compiling options) as well (http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1408). In this document, only the procedure regarding the implementation of...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • TUTORIAL PIC
  • TUTORIAL DE MICROCONTROLADORES pic
  • Tutorial microcontroladores pic
  • Tutorial Microcontrolador Pic
  • Pica Pica
  • Pice
  • los picos
  • pico

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS