Quote Originally Posted by Rony View Post
i am using the following:

lvp_off is not applicable with this PIC

=> same problem
You're right, confused with 16F876.