PDA

View Full Version : LVP will not turn off



Garlic
- 25th February 2010, 02:52
Using PBPP and EPIC programmer and having some trouble with 16F887 part. Tried changing to _LVP_OFF in 16F887.INC and found it never "takes," even though other settings I make there work fine. That is, when I bring up EPIC to program the part, LVP is enabled. So also tried turning it off in my code:

ASM
__CONFIG _CONFIG1, _LVP_OFF
ENDASM

Again though LVP stays enabled when any other settings I make do take. Also tried disabling LVP using the EPIC programmer drop down list method. Seems to work, but if I read back in, LVP is enabled.

I got around it by not using the RB3/PGM pin and instead tying it low. Everything works fine. However, the behavior bugs me (also I'd like to use that pin for IO).

Any hints as to why this is happening are appreciated.

mackrackit
- 25th February 2010, 05:06
I do not have an epic. But I hear there is a setting in the software to tell the epic not to set the fuses and let the fuses be set in code.
Have you tried that ?

Garlic
- 25th February 2010, 12:45
I do not have an epic. But I hear there is a setting in the software to tell the epic not to set the fuses and let the fuses be set in code.
Have you tried that ?

Thanks I will check into that possibility. However it does set other fuses I've tried. Only LVP is refusing to change. That's the maddening part -- everything else works as expected.