You're right. LVP is an absolute mystery. Nobody knows what it is or what it does. Well, wait. Maybe the data sheet says something.... Oh. It's not a mystery. Right there in the data sheet. Imagine that. Perhaps you should look at it sometime.
I'll save you the trouble of reading the data sheet and becoming confused. LVP should be off. This will always be true for you and most readers here.
You might make clear that a piece of code your posting is a fragment, just a part of what you are trying to do. And explain exactly what it is you think/expect/believe/want it to do. Since following this project in nearly 60 pages of forum posts and with all your changes is not humanly possible, it will aid people who are trying to help you.
MrDEB Programming Style
I'll save you the trouble of reading the data sheet and becoming confused. LVP should be off. This will always be true for you and most readers here.
You might make clear that a piece of code your posting is a fragment, just a part of what you are trying to do. And explain exactly what it is you think/expect/believe/want it to do. Since following this project in nearly 60 pages of forum posts and with all your changes is not humanly possible, it will aid people who are trying to help you.
MrDEB Programming Style