PIC resets when logic 1 to pin RB3

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.
 
Well, in asm it is normally _LVP_OFF added to the config line. In HiTech C I have no idea.

Mike.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…