Thursday, July 30, 2009

PIC Micro Hardware Programming Methods

Here the info about PIC Micro Hardware Programming Methods

There are three ways to program a PIC microcontroller

1. Using normal programming hardware (HPV high voltage programming).
2. Low-voltage programming (LVP).
3. Bootloading.

The first two methods use the port for programming of PIC microcontrollers Label ICSP (in circuit serial programming).

This interface is between the pins of the microcontroller and after programming the pins back to normal operation, microcontroller.

Note: To work correctly ICSP you have to consider the implications and requirements of the ICSP programmer, eg an HPV-high voltage lines Vss to the PIN number (the circuit must be able to view the high voltage - up to 13V). Also, the burden of other signals PGC and PGD should not be too high, ie not in a PIN-LED at 20 mA - if the amount of tension, which is not high enough in the inputs of the PIC for programming.

It is very easy to use for ICSP through isolation of the normal resistance of the circuit and not with heavy loads on these pins.

ICSP provides 6 connections from the pic ICSP programmer to the Board as follows:

VPP - (o MCLRn) Programming voltage (usually 13V).

Vcc - Power (typically 5 V).

GND Ground (zero volts).

PID - data port and connection RB7 usual.

PGC - Clock and the port RB6 usual.

PGM - LVP enable connection and the connection RB3/RB4 usual.

PIC Micro: High Volt Programming

To use the first method of a hardware interface that is needed or "PIC programmer" to the interface between the programming software (usually on the PC) and the PIC chip. The team has the information from the PC through one of the three interfaces that are either:

* The RS232 COM port
* The parallel interface
* The USB port

You choose the interface you want to use, then choose a PIC programmer. The PC communicates with the hardware generation of the series (ICSP) to signals from the PIC hex file into a standard for the target microcontroller.

Note: Almost all ICSP PIC microcontroller with the interface, so once you have an HPV program can all PIC microcontrollers. For example, you can 12F675, 16F84, 16F88, 16F877 (A), 18F2550, 18F452 etc.

There are several programs for programming PIC, for example Micos ICPROG different hardware and software.

PIC Micro: Low Voltage Programming (LVP)

LVP is exactly the same as HVP except:

* The Vpp voltage is at the normal voltage.
* The PGM pin indicates the programming mode.

Note: In this mode, you can not with the PGM pin something else that it is solely to LVP control.

Devices with PGM mode is activated, and the only way to shut down the PGM program has an HVP programmer.

Note: Some PIC microcontrollers can only method of HPV for LVP method you have to sacrifice a PIN code - PGM - (to tell the PIC Micro either planned (eg, high voltage 5V) or not programmed, ( 0 V)) and some PIC micros only 8 pins eg 12F675. For this chip the PGM pin is not available HPV is the only way.

The real advantage of using the LVP mode, which can be programmed PIC Micros number on a board without a single program - that each additional string to a micro-Micro-Master's program and then each in turn - and this is only possible from the Vpp signal is a normal level of logic in LVP mode.

PIC Micro: Bootloading

Bootloading each interface for a program to memory. It requires a bootstrap program interface to interpret and translate the data into the memory of the installation program.

Note: Please note that only the new devices are able to program your own store, you can use this method.

Normally, a serial interface is used to bootstrap and bootloading program PIC microcontroller to wait for some time after turning the handset into the serial port to a reserved word says that the program that begins to open, to hear the order of characters that are normally not in the interface

If this boot sequence in hexadecimal mode when a file to the interface on the microcontroller. He interprets these programs and the memory of the microcontroller and then starts the program.

There are two problems with this method:

1. You have to program the boot code using HVP or LVP.
2. Use some of the microcontroller resources.

Once programmed, offer a convenient solution to the device, as you do not need programming hardware and most important advantage is that you can re-program a device without undo the computer, for example if in a field until they could return to their project programmed using the serial port!

No comments:

Post a Comment

Bookmark and Share