0% found this document useful (0 votes)
60 views

Activity No. 4 - F What Are The Different Ways of Programming PIC Microcontrollers

There are two main ways to program PIC microcontrollers: high voltage programming (HVP) and low voltage programming (LVP). HVP requires a hardware PIC programmer that connects the microcontroller to a PC via an interface like RS-232, parallel port, or USB. It applies a higher voltage (usually 13V) to program the chip. LVP is similar but uses the normal supply voltage instead of a higher one and uses the PGM pin to indicate programming mode. Programming a PIC requires building the hardware circuit, using MPLAB and other software tools to configure settings and write code, and then using the programmer to program the microcontroller chip.

Uploaded by

다나
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views

Activity No. 4 - F What Are The Different Ways of Programming PIC Microcontrollers

There are two main ways to program PIC microcontrollers: high voltage programming (HVP) and low voltage programming (LVP). HVP requires a hardware PIC programmer that connects the microcontroller to a PC via an interface like RS-232, parallel port, or USB. It applies a higher voltage (usually 13V) to program the chip. LVP is similar but uses the normal supply voltage instead of a higher one and uses the PGM pin to indicate programming mode. Programming a PIC requires building the hardware circuit, using MPLAB and other software tools to configure settings and write code, and then using the programmer to program the microcontroller chip.

Uploaded by

다나
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

What are the different ways of programming PIC microcontrollers?

HARDWARE

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

VPP (or MCLRn) Programming voltage (usually 13V).


Vcc Power (usually 5V).
GND Ground (zero volts).
PGD - Data usual port and connection RB7.
PGC - Clock usual port and connection RB6.
PGM - LVP enable usual port and connection RB3/RB4.
If you are not using low volt programming
then ignore this pin and disable LVP when
programming the chip. 

o Low Volt Programming (LVP)

o High Volt Programming (HVP)

1
HIGH VOLT PROGRAMMING

To use the first method a hardware interface is needed or 'PIC programmer' to interface
between the programming software (usually running on the PC) and the PIC chip.  This
hardware takes its information from the PC via one of three interfaces either:

 The RS232 COM port


 The Parallel port
 The USB port

2
LOW VOLT PROGRAMMING

LVP is exactly the same as HVP except:

*pictures from the internet


 The Vpp voltage is set to the normal supply voltage.
 The PGM pin indicates programming mode.
Devices are manufactured with PGM mode enabled and the only way to turn off the
PGM mode is to program it using an HVP programmer.

Hardware Components Software Components


1. LEDs 1. MPLAB Compiler
2. Crystal 2. Proteus Software
3. Reset 3. C language
4. Pic Microcontroller
5. Capacitors
6. Resistors
CIRCUIT COMPONENTS

CIRCUIT DIAGRAM
*circuit diagram designed using Proteus Software

PROCEDURES ON PROGRAMMING PIC


MICROCONTROLLER

*pictures from the internet


1. *Building the hardware

2. Software
3. Creating a new project
4. *building configuration for the parameters

5. *setting the configuration bits

*pictures from the internet


6. *configuring the oscillator

7. wait_ms function
8. blinking of LED

9. Reading of the Analog Value


10. Reading of the Digital Value

*pictures from the internet

You might also like