Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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

Mike.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top