PIC not working properly (16F877A)
PIC not working properly (16F877A)
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 (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.
ARM, PIC , AVR, 8051 Projects/Tutorials (MikroC)
If you get, give. If you learn, teach.
Re: PIC not working properly (16F877A)
Ur pic or LCD is dead
If u touched with finger while power is on.
If u move jumper wire or connect to pin while power is on
Or if u have extra lcd. Then either lcd nor pic is bad
Never leave power supply on, while working on board
HTH,
Btw: i had to buy extra lcd and pic
If u touched with finger while power is on.
If u move jumper wire or connect to pin while power is on
Or if u have extra lcd. Then either lcd nor pic is bad
Never leave power supply on, while working on board
HTH,
Btw: i had to buy extra lcd and pic
-
- Posts: 2780
- Joined: 25 Dec 2008 15:22
- Location: Scotland
Re: PIC not working properly (16F877A)
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.
Best Regards
Mince
Mince
Re: PIC not working properly (16F877A)
Hi,
PGM pin is used in LVP (Low-Voltage ICSP Programming).
So you have to disable LVP in the CONFIGURATION word bit 7;
PGM pin is used in LVP (Low-Voltage ICSP Programming).
So you have to disable LVP in the CONFIGURATION word bit 7;
when you touch it the MCU enter proramming mode if LVP bit = 1.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
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.
Re: PIC not working properly (16F877A)
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.
ARM, PIC , AVR, 8051 Projects/Tutorials (MikroC)
If you get, give. If you learn, teach.
Re: PIC not working properly (16F877A)
Hi,
I believe I have answered you here :
http://www.mikroe.com/forum/viewtopic.p ... 92#p183992
Regards,
Filip.
I believe I have answered you here :
http://www.mikroe.com/forum/viewtopic.p ... 92#p183992
Regards,
Filip.