PIC programs PIC
“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.
- Jul 6, 2015