Difference between revisions of "PIC Programmers, In Circuit Programming and BootLoaders"

From OpenCircuits
Jump to navigation Jump to search
Line 3: Line 3:
  
 
In the PIC world programming may mean either writing the program by a human being or writing the hex file from the compiled ( assembled ) program into the PIC chip.  This page concenrns the former.
 
In the PIC world programming may mean either writing the program by a human being or writing the hex file from the compiled ( assembled ) program into the PIC chip.  This page concenrns the former.
 +
 +
== Overview ==
  
 
There are several different methods of programming each with its own advantages and disadvantages.  Right now I like serial bootloading the best, but it may not be the best for everyone.  The following chart summarizes the methods, they are then discussed in more detail later.
 
There are several different methods of programming each with its own advantages and disadvantages.  Right now I like serial bootloading the best, but it may not be the best for everyone.  The following chart summarizes the methods, they are then discussed in more detail later.
Line 16: Line 18:
 
<!-------------------------------->
 
<!-------------------------------->
 
|-valign="top"
 
|-valign="top"
|Stepper Motor Drive
+
|Hardware Programmer
|[[Stepper Motor Tester]]
+
|The PIC is placed in the programmer and the programmer workds with a PC ( typically ) to move the program to the PIC.
|Half step, forward reverse, variable speed.  
+
|All chips can be used with Hardware Programmer, but different chips may require different programmers.
 
<!--------------------------------
 
<!--------------------------------
 
|-valign="top"
 
|-valign="top"
|what
+
|In Circuit Programming
|[[]]
+
|
|Comment
+
|Not all chips can be used with In Circuit Programming.
<!--------------------------------
+
<!-------------------------------->
 
|-valign="top"
 
|-valign="top"
|what
+
|Serial Bootloaders
|[[]]
+
|In this method a small program ( the Serial Bootloader ) is hidden away in the PIC memory and upon reset the PIC would check its serial connection and if connected to a Bootloader utility on the connection a new program is loaded into the PIC, and then the downloaded program begins.  If the Bootloader utility is not connected the current PIC program is run.  The serial connection can be of any type, RS232 or USB for example.
|Commen
+
|Requires initial programing with a Hardware Programmer, and the serial connection.  The PC runs the Bootloader utility.  Not all chips can be used with Serial Bootloaders.
 
<!--------------------------------
 
<!--------------------------------
 
|-valign="top"
 
|-valign="top"

Revision as of 13:23, 14 May 2009

This is an article in the process of creation, will you help finish it?


In the PIC world programming may mean either writing the program by a human being or writing the hex file from the compiled ( assembled ) program into the PIC chip. This page concenrns the former.

Overview

There are several different methods of programming each with its own advantages and disadvantages. Right now I like serial bootloading the best, but it may not be the best for everyone. The following chart summarizes the methods, they are then discussed in more detail later.


Method What Details
Hardware Programmer The PIC is placed in the programmer and the programmer workds with a PC ( typically ) to move the program to the PIC. All chips can be used with Hardware Programmer, but different chips may require different programmers.
Serial Bootloaders In this method a small program ( the Serial Bootloader ) is hidden away in the PIC memory and upon reset the PIC would check its serial connection and if connected to a Bootloader utility on the connection a new program is loaded into the PIC, and then the downloaded program begins. If the Bootloader utility is not connected the current PIC program is run. The serial connection can be of any type, RS232 or USB for example. Requires initial programing with a Hardware Programmer, and the serial connection. The PC runs the Bootloader utility. Not all chips can be used with Serial Bootloaders.



Hardware Programmer

In Circuit Programming

Serial Bootloaders