haxan New Member Mar 10, 2010 #1 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?
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?
P Pommie Well-Known Member Most Helpful Member Mar 11, 2010 #3 Turn off LVP (low voltage programming) in the config and RB3 will be a normal I/O pin. Mike.
haxan New Member Mar 11, 2010 #4 Pommie said: Turn off LVP (low voltage programming) in the config and RB3 will be a normal I/O pin. Mike. Click to expand... 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
Pommie said: Turn off LVP (low voltage programming) in the config and RB3 will be a normal I/O pin. Mike. Click to expand... 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
P Pommie Well-Known Member Most Helpful Member Mar 11, 2010 #6 Well, in asm it is normally _LVP_OFF added to the config line. In HiTech C I have no idea. Mike.
3v0 Coop Build Coordinator Forum Supporter Mar 11, 2010 #7 __config(debugdis & lvpdis & fcmdis & iesodis & boren & unprotect & mclren & pwrten & wdten & xt);
blueroomelectronics Well-Known Member Mar 11, 2010 #9 If your programmer is an LVP only programmer you cannot turn off LVP.