echo '' ;

PIC® Microcontrollers

PIC16F877A

Datasheet

Pin Details

 

Pin number 11,32(VDD)  and 12,31 pins(VSS) should connect each other?

Yes.. Both VDD and VSS should be connect each other. Othervise Pic IC should not work due to incomplete power source.

 

If I connect VDD power to VSS, then IC will gone?

Yes if you connect vdd to VSS then IC may be damaged.

 

 


PIC® Micro-controllers IDE tools

 

 


MPLAB 8.30v IDE

Download

Install 8.30v instructions

  • Open “Install_MPLAB_8_30.exe” (just wiat few muniutes, after will pop up windows)
  • Click “Next”
  • MPLAB IDE License Agreement click “I accept the terms of the licence agreement”, and click “Next”
  • Setup Type (recommended choose complete) click “Next”
  • Choose Destination Location click “Next”
  • Application Maestro License click “I accept the terms of the licence agreement”, and click “Next”
  • MPLAB C32 License click “I accept the terms of the licence agreement”, and click “Next”
  • Start Copying Files click “Next” (just wiat few muniutes)

 MPLAB XC Compiler

Download


MPLAB- X IDE

  • Creation of Project in MPLAB X IDE
    • Set the project type (Choose Project)
      • From MPLAB X IDE choose New Project in File tab
      • Select the Microchip Embedded in categories section and select Standalone Project in Project Section then click Next
    • Select the target device
      •  This selection must exactly match the device on your hardware. (If you are using the simulator without hardware, you can choose any device.)
      •  Select Family and device(Ex : Family : Advanced 8-bit MCUs (PIC16), Device : PIC16F877A)
    • Selects the device header
      • The use of debugging features is not required by this guide, so this selection could be None
    • Selects the tool to run the project code
      •  If you have a debugger and wish to use it with your hardware, select it from the list; otherwise, select Simulator. (Ex :MPLAB REAL ICE selected as the programmer/debugger to run the generated code)
    • Select the tool to compile the source code
      • several versions of the MPLABXC8 compiler might be listed under the XC8 disclosure widget. Select the most recent version. You will be able to change this selection during development.
    • Specifies the project name and path
      • Type a name for the project in the Project Name field. Click
      • Browse…if the default project path is not suitable. To differentiate the current project in the IDE (when multiple projects exist) as the main project, click “Set as main project”.
    • Completes creation of the project
      • Click Finish.
  • Foundation Code
    • Creates a new source file.
      • Right Click the Project file and select New > C Source File
    • Enters a suitable name for the source file.
      •  Ensure that the project name is correct.
    • Adds skeleton code to the new file.
      #include <xc.h>
      int main(void)
      {
      return 0;
      }
    • Saves your work.
      • Select File > Save

MPLAB ICD3

Description

  • MPLAB ICD 3 In-Circuit Debugger System is Microchip’s most cost effective high-speed hardware debugger/programmer for Microchip Flash Digital Signal Controller (DSC) and microcontroller (MCU) devices.
  • It debugs and programs PIC Flash microcontrollers and dsPIC DSCs with the powerful, yet easy-to-use graphical user interface of MPLAB Integrated Development Environment (IDE).
  • The MPLAB ICD 3 In-Circuit Debugger probe is connected to the design engineer’s PC using a high-speed USB 2.0 interface and is connected to the target with a connector compatible with the MPLAB ICD 2 or MPLAB REAL ICE systems (RJ-11).MPLAB ICD 3 supports all Emulation headers.
  • MPLAB ICD 3 has improved speed as compared with MPLAB ICD 2. 

Features

  • A Production Programmer.
  • High & Full USB Speed.
  • High Speed Programming up to 15x over ICD2.
  • Internal FPGA Hardware Accelerator.
  • Internal SRAM buffers (1Mx8) to download Program Memory image for faster programming.
  • Programmable Vpp & Programmable Vdd.
  • Hardware OV/OI Protection.
  • Complex Breakpoints, 999 Software Breakpoints.
 

Package Contents

  • ICD3 Production programmer.
  • USB cable.
  • Self test module.
  • CD containing MPLAB IDE, Demo version C Compilers  from Microchip, Manuals & User Guides.

PICkit-2

Installing PICkit 2 Software

  • PICkit Programmer Software Download
  • Unzip and Open the software folder
  • Right Click Run as Administrator in  setup.exe application file
  •  Click Next , in “Welcome to the PICkit 2 setup Wizard”
  • Select Location you want to install(Eg: C:\ Program Files\) and select preference
  • Click Next in “Conform Installation”
  • Click  I Agree in “License Agreement” and click Next (Wait few minutes)
  • Finlay click Close to exit in “Installation Complete”
  • Done
  • Pickit2_Device_Support_list Doc

Watch Video Demonstration PICkit-2 Installation

Uploading Hex File Using PICkit2 ?

  • Open (or)  Run the Pickit2 application.
  • Connect the Pickit2 programmer to development board.
  • Check Communication in Tools tab.
  • Now Device : PIC16F877A in Mid-range/Standard Configuration and Status window should show PICkit 2 connected,  if not available then double check the connections and try again.
  • Click Read  button in the main window. it will shows Reading device: Program Memory… EE… UserIDs… Config.. Done.
  • The Configuration bits should be set to 0x3F3A.

How to upload Hex File to PIC xxx Series?

  • Option 1 : Click Auto Import Hex + Write Device in menu tab. Import the .hex file from the location.
  • Option 2 : Click Import Hex in File tab. Import the .hex file from the location. Now click on Write to upload the hex file to target device. Status window.

How to download  .hex file from PIC xxx series?

  • Option 1 : Click Read Device + Export Hex File in main window.
  • Option 2 :  Export Hex in File tab.

See Also


Reference


 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.