PIC resets when logic 1 to pin RB3

Status
Not open for further replies.

haxan

New Member
hi.

I am using HI Tech C compiler with PIC16F877A.

i have a small program which takes input on port B and ouputs respective LEDs on PORT D.

Everything works fine except when i give logic 1 to RB3. When i give logic 1 to RB3 it resets the PIC.

on datasheet its written RB3/PGM.

I believe this pin is also used for programming the PIC. Can this cause any issue?
 
Turn off LVP (low voltage programming) in the config and RB3 will be a normal I/O pin.

Mike.
 
Turn off LVP (low voltage programming) in the config and RB3 will be a normal I/O pin.

Mike.

I think that can be the issue, will try and let know

The programmer is custom made programmer + trainer. On software side, i am using WinPIC8000
 
Well, in asm it is normally _LVP_OFF added to the config line. In HiTech C I have no idea.

Mike.
 
__config(debugdis & lvpdis & fcmdis & iesodis & boren & unprotect & mclren & pwrten & wdten & xt);
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…