Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Programming PIC using Low Voltage Programming Cable LVP ICSP

Status
Not open for further replies.

apgphp2005

Newbie level 5
Joined
Sep 22, 2005
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,432
low voltage programming

How to program a PIC16F877A using Low-Voltage-Programming Cable (LVP ICSP) using 'Lothar Stolz' Low-Voltage-Programming Cable from

**broken link removed**

Does it require that the PIC must contain some sort of BootLoader or Firmware.

Can't i just buy a PIC16F877 from market and Program it directly using LVP. Or, does it require additinal steps.

Also what about PIC16F877A and PIC18F4550

Please Help

Thanks in advance
 

pic lvp

Answers for your questions you can find on page 158 of datasheet for 16F877A (39582b.pdf) and on Lotar's page. One more thing you should know. When you want to use lvp you should first, in your MPLAB code enable lvp. Here is an example for 18F452

__CONFIG _CONFIG4L, _STVR_ON_4L & _LVP_ON_4L & _DEBUG_OFF_4L

If you set lvp off and program pic for the first time with this setting off you will disable
lvp and later if you want to use lvp again you will be forced to program pic with some other programmer that is using regular programming (mclr 13v) to enable lvp again.
Sory about my bad english.
 

lvp pic

Hi predrage,

Thanks for your reply. And, your english isn't bad.

I am very new to the world of PIC's. So, i don't understand datasheet that well. I have already programmed my PIC using PICSTART & MPLAB. So, now if i want to erase it all and reprogram using LVP. What should i do.

The PIC i use is PIC16F877A.

Thanks again
 

pic16f877 lvp

First of all you should enable lvp on your device(see 146 page of datasheet). You have to set bit 7 in configuration word. How will you do that? In your MPLAB code you
,in some program that is passin building and which you can successfully compile, enable lvp in the following line

__CONFIG _XT_OSC & _WDT_OFF & _CP_OFF & _BODEN_ON & _LVP_ON & _CPD_OFF & _DEBUG_OFF

When you do the changes, build your program again. Now program PIC with this code with your programmer which isn't using lvp(you mention that you have that programmer). Now hou have enable lvp (set bit 7 in config word) and you can now use lvp as Lotar explain.
 

    apgphp2005

    Points: 2
    Helpful Answer Positive Rating
lvp programmer

Hi

I just bought a new PIC16F876A and now wish to program it with LVP (Lothar stolz Low Voltage Programmer) and use the folowing circuit and program to test it afterwards.

My Program is:

start:
TRISA = %000000
TRISB = %00000000
TRISC = %00000000
High PORTC.5
End

Also, look at

**broken link removed**

for the Low voltage Programming cable and tell me what steps need to followed for programming the brand new PIC16F876A using LVP. ALso, i wish to use the internal RC oscillator.

Please help i am a rookie

thanks in advance
 

icsp lvp

It seems to me that you are using some other compiler instead MPLAB. I don't know is your program correct. 16F87XA don't have internal RC (datasheet, page 146). On your circuit you should connect another vss too. 100R resistor is too low. You should use 220R or higher (but not too high). Brand new pic have enabled lvp by factory settings. You should provide correct hex file for you pic(code that is working, with lvp enabled, proper oscilator configuration). When you do that procedure is:

1.Make connection between PC and PIC (Lothar's page)
2.Configure IC-Prog (Lothar's page)
3.Open your hex file with IC-Prog
4.Program your device with IC-Prog (click on "Program All" button)
 

    apgphp2005

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top