PIC not working properly (16F877A)

General discussion on mikroC PRO for PIC.
Post Reply
Author
Message
vishaletm
Posts: 50
Joined: 26 Jan 2012 05:09
Contact:

PIC not working properly (16F877A)

#1 Post by vishaletm » 27 Mar 2012 17:35

When a wire is connected or i touch the PGM pin of PIC 16F877A it stop working. What may be the cause? Program worked successfully in proteus.
Attachments
D Lock.JPG
D Lock.JPG (47.38 KiB) Viewed 1907 times
http://microcontrollerprojects00.blogspot.com/
ARM, PIC , AVR, 8051 Projects/Tutorials (MikroC)
If you get, give. If you learn, teach.

supra
Posts: 187
Joined: 08 Apr 2009 11:54
Location: Ontario, Canada

Re: PIC not working properly (16F877A)

#2 Post by supra » 27 Mar 2012 19:47

Ur pic or LCD is dead :cry:
If u touched with finger while power is on. :shock:
If u move jumper wire or connect to pin while power is on :shock:

Or if u have extra lcd. Then either lcd nor pic is bad :evil:

Never leave power supply on, while working on board :x
HTH,

Btw: i had to buy extra lcd and pic

Mince-n-Tatties
Posts: 2780
Joined: 25 Dec 2008 15:22
Location: Scotland

Re: PIC not working properly (16F877A)

#3 Post by Mince-n-Tatties » 27 Mar 2012 23:43

in the real world you will need to drive the MCLR (reset) line correctly and it often proves best to ground the spare data pins D0-D3.
lcd_and_reset.jpg
lcd_and_reset.jpg (154.13 KiB) Viewed 1888 times
Best Regards

Mince

kahtan
Posts: 44
Joined: 28 May 2010 21:38

Re: PIC not working properly (16F877A)

#4 Post by kahtan » 28 Mar 2012 00:51

Hi,
PGM pin is used in LVP (Low-Voltage ICSP Programming).
So you have to disable LVP in the CONFIGURATION word bit 7;
bit 7 LVP: Low-Voltage (Single-Supply) In-Circuit Serial Programming Enable bit
1 = RB3/PGM pin has PGM function; low-voltage programming enabled
0 = RB3 is digital I/O, HV on MCLR must be used for programming
when you touch it the MCU enter proramming mode if LVP bit = 1.
Datasheet page: 158
To enter Programming mode, VDD must be
applied to the RB3/PGM provided the LVP bit is set.
The LVP bit defaults to on (‘1’) from the factory.

vishaletm
Posts: 50
Joined: 26 Jan 2012 05:09
Contact:

Re: PIC not working properly (16F877A)

#5 Post by vishaletm » 29 Mar 2012 02:27

Now its OK. Low voltage programming disabled. But now it is not detecting Keypad entry. I tried pull down at all pins, no change. Pleases help i have to submit project on saturday.
http://microcontrollerprojects00.blogspot.com/
ARM, PIC , AVR, 8051 Projects/Tutorials (MikroC)
If you get, give. If you learn, teach.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: PIC not working properly (16F877A)

#6 Post by filip » 29 Mar 2012 10:27

Hi,

I believe I have answered you here :
http://www.mikroe.com/forum/viewtopic.p ... 92#p183992

Regards,
Filip.

Post Reply

Return to “mikroC PRO for PIC General”