PIC16F877A not working

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

PIC16F877A not working

Postby ikram1991 » Tue Jun 18, 2013 4:04 pm

I've make simple circuit to test my PIC.in this circuit switch as counter.
When counter=1 led1=on led2=off
When counter=2 led1=off led2=on
When counter=3 led1=on led2=on
When counter=4 led is off and counter back to 0.
When I try in simulation its working .
But, sadly when try in hardware its not working and nothing happen.I check the voltage its oky.power source that I used is battery 9V and lowered the voltage using by 78L05 voltage regulator. I allready pullup mclr pin and check the configuration bits.
FOSC=HS oscillator
WDT=disable
PWRTE=Enable
BOREN=disable
LVP=disable
CPD=off
WRT=off
CP=off

I attach this post with schematic circuit.
Hope u guys can help me solve my problem :)
schematic2.jpg
ikram1991
Greenhorn
 
Posts: 2
Joined: Thu Jun 06, 2013 10:16 am

Re: PIC16F877A not working

Postby robosang » Wed Jun 19, 2013 9:29 am

Post the photo of actual hardware.
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: PIC16F877A not working

Postby ABSF » Thu Jun 20, 2013 12:44 pm

Check your x.tal oscillator circuit and the LED resistors' value.

Allen
The next war will determine NOT who is right BUT what is left.
User avatar
ABSF
Professional
 
Posts: 810
Joined: Wed Nov 10, 2010 9:32 am
Location: E Malaysia


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 33 guests