Amplificador

Páginas: 6 (1356 palabras) Publicado: 26 de junio de 2012
Getting Started
with CCS C
in MPLAB® IDE
June 2005

Custom Computer Services, Inc.

P.O. Box 2452 • Brookfield, Wisconsin 53186 USA
Sales: 262-522-6500 ext. 35 • Tech Support: 262-522-6500 ext. 32
Copyright © 2005 Custom Computer Services, Inc.
All rights reserved worldwide. No part of this work may be reproduced or copied in any form
by any means-electronic, graphic or mechanical,including photocopying, recording, taping or
information retrieval systems-without written permission.

PIC®, PICmicro® and MPLAB® are registered trademarks of Microchip Technology Inc. in the USA and in other countries.

Custom Computer Services, Inc.
proudly supports the Microchip
brand with highly optimized
C compilers and embedded
software development tools.

MPLAB® IDE INTEGRATIONCCS Plug-In Installation
 This plug-in allows MPLAB® 6.x/7.x IDE users to use CCS C Compiler to build their projects.
The plug-in can be downloaded and installed from:
http://www.ccsinfo.com/mplab-ccs-plugin-install.exe
Note: This plug-in works with CCS C Compiler versions 3.168 and up.

MPLAB® IDE Installation
 You can download and install MPLAB® IDE from Microchip’s website(www.microchip.com).
MPLAB® IDE and additional plug-ins may be installed in any order. Use only MPLAB® IDE
versions 6.40 and up.

Getting Started

Starting a MPLAB® IDE Project From an Existing Source

 To start a new project, you can use either the Wizard or create it manually. To create a CCS
project using the Wizard, follow these steps:

 Select the “Project” Menu.
 Choose “Project Wizard” tomake the Project Wizard window appear.
 Click “Next” on the Welcome Page.
 Step One, choose “PIC16F877A” from the drop-down list and click “Next.”

PIC®, PICmicro® and MPLAB® are registered trademarks of Microchip Technology Inc. in the USA and in other countries.

CCS, Inc.

 Step Two, select “CCS C Compiler for PIC12/14/16/18” from the drop-down list. Click “Next.”
Note: If theplug-in is not listed, make sure that “Show all installed tool suite” is checked. If it
still doesn’t appear, then the CCS Plug-in may not be installed correctly. You will need to reinstall.
 Step Three, type the project name “EX_SQW” and type or select the project directory
“C:\Program Files\PICC\Examples.” Click “Next.”
 Step Four, select file “Ex_SQW.C.“ Click “Add.” Click “Next.”
 ViewSummary, click “Finish.”

Start a New Project Manually
#include
#fuses HS, NOLVP, NOWDT, NOPROTECT
#use delay(clock=20000000)
void main() {
int8 a, b, c;
a = 2;
b = 3;

}

c = a + b;
c = a * b;
c = b - a;

 Enter the following program into MPLAB® IDE as “EX8.c” in the “Exercises Directory.”
 Go to Project>New.
 Name the project “EX8” and choose the “Exercises Directory.”
 Click“Add File to the Project” in the “Project” menu and select the “ex8.c” file.
 Click “Select Language Tool Suite” and make sure “CCS C Compiler for PIC12/14/16/18” is
selected.
 Go to Configure>Select Device and select “PIC16F877A,” then click “OK.” MPLAB® IDE will
then choose the right CCS C Compiler and options for the device.

Getting Started with CCS C in MPLAB® IDE

MPLAB®INTEGRATION (CONT.)
Compiling
 Go to Project>Compile.
 If the output window is open, the status of the compiler is displayed here.
 You can view the CCS C Compiler options that MPLAB® IDE is using by going to Project>Build
Options>Project. If you wish to change these options, click on the “Use Alternative Settings”
checkbox to edit the options that you want.
 The output window will show if thecode contains any warnings or errors. The line number,
which document, and a brief description of the error will be listed for each error or warning.
To correct an error or warning go to the line of the specified document and check where the
error or warning description occurred on that line. Go through each error and warning to get
the project to successfully compile.

Debugging

 Follow...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • amplificador
  • amplificadores
  • amplificador
  • amplificador
  • Amplificadores
  • Amplificadores
  • amplificadores
  • Amplificador

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS