Microchip | The Embedded Control Solutions Company Register Login
Browse All
Microchip Technology
 303 Code Snippets

PIC programs PIC

Microchip Technology

“PIC programs PIC” project is a library which allows creating PIC24F, PIC24H, PIC24E, dsPIC33F or dsPIC33E device programmers. The code to be programmed is located in the internal PIC flash memory. The programming starts automatically when PIC to be programmed is connected to the programming PIC. The programming PIC reads the data from its internal flash memory and programs the connected PIC. The library consists of 3 layers: ICSP, Programming Specification and Programmer layers. To program 5 wires/signals must be connected between PICs: power (VDD and VSS), ICSP interface signals (PGEDx and PGECx) and reset (MCLR). ICSP Layer controls these lines/signals and provides basic functions to execute instructions or read a special VISI register on the programmed PIC. Programming Specification Layer uses ICSP Layer to implement ERASE/WRITE/READ procedures described in the programmed PIC programming specification document. Programmer Layer is based on Programming Specification Layer and has only function to read an image from an internal flash and program it to the connected PIC device. The Image to be programmed is generated form a HEX file to be programmed using a special Hex2Image utility PC program. This utility creates an assembler file with all data from the HEX file (Image).  This assembler file must be included in the programmer’s project.

About this Code Example

Please read "PIC_programs_PIC_Help.pdf" located in ..\PIC_programs_PIC\documentation" folder for more details.

Categories

Release History

  • Jul 6, 2015

    Version: 1.0.0

    Initial Release

Download Contact the Developer

*Required Fields


  • Current Version:1.0.1
  • Created:Jul 6, 2015
  • Updated:Jun 20, 2017
  • Downloads:14620
  • MPLAB Version:v3.00 or later
  • C Compiler:xc16 v1.24 or later
  • Development Tools:-
  • Supported Devices:PIC24F, PIC24H, PIC24E, dsPIC33F or dsPIC33E

Corporate News

Resources

Stay Connected

Stay up to date with the latest news from Microchip Technology.