Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] PIC16F877A not working even after bieng programmed successfully using ICPROG

Status
Not open for further replies.
yes i think You are rite.. I use 10 ms delay during that 6 times high /low on port B , but LEDes are not blinking with the same delay as specified they are blinking with their wish.. :p
 

Is the LED blinking stable on RB1 or RB0?

Also you are using a current limiting resistor, correct? 300 - 400 Ohms.

BigDog
 

No, LEDes are not stable.. :???:
Yes I am using resistors..
 

Do you have any smaller capacitors, like 22pF?

If so switch out the 30pF for those.

BigDog
 

yes.. i changes both crystal oscillator and capacitor but no use...:S
 

What are you using as a power supply?

Do you have a slower crystal, 4MHz?

Also remove the programmer and see if the LED stablizes.

BigDog
 

strange .. :S
I also try WinPIC it also verifies and programmed successfully ..
 

I have no doubt you have programmed the device successfully.

Stability is the issue. Do you have the crystal and capacitors as close to the PIC as possible?

BigDog
 

I am using FIXED 5V .. I tried 20Mhz and 11Mhz..
 

One other thing have you installed a 100nF capacitor across the Vdd and Vss pins (5v to GND), keeping it a close as possible to the PIC?

why it need to be close as possible while if we place it a little far then it's the same connection.?
I believe this trick also I have experienced about this and Im puzzled why it needs to be close.. hmmm
 

Oh Sir thanks Alot for Your such a precious time... :-D
That was issue of supply .. I dont know why but i remove regulator and give direct 5V from supply it's working now.. :S
 

Well in regards to the crystal any relatively high frequency signal path should be keep to a minimum.

Stray capacitance, EMI, etc all play a role in the ability to deliver a clean clock signal.

The capacitor across the Vdd and Vss absorbs any EMI or noise on the +5V and GND lines keeping it to a minimum.

Does this make sense?

BigDog

---------- Post added at 05:17 ---------- Previous post was at 05:16 ----------

Glad to hear it. Good clocks and power supplies are essential with almost any MCU.
 

I dont know why.. As regulator was also giving 5 V ..

---------- Post added at 09:23 ---------- Previous post was at 09:19 ----------

Well thanks Romel and bigdogguru... ! Happy that You people are here to help beginners like us :razz:
 

I would have to see the regulator circuit to be able to give an opinion.

It obviously was not providing a stable 5V supply, perhaps noise, etc.

Did you put that 100nF capacitor between 5V and GND as close as possible to the PIC?

BigDog
 

Yes.. I did... But I think my supply still not giving stable voltages .. I should use regulator ..
I was using regulator 7805..

---------- Post added at 09:38 ---------- Previous post was at 09:30 ----------

hey guys my original program is also working... :D

---------- Post added at 11:28 ---------- Previous post was at 09:38 ----------

hello .. Again :smile:
my program shows output like this on virtual terminal (simulation)

this is due to line present in my code this is
Code:
UART1_Write(13);
but in real hype terminal it is overwriting the same first line continuously..

Any Help ...
thank you..
 

but in real hype terminal it is overwriting the same first line continuously..

You can output a newline character (\n} after each successive line.

You can also add a delay in your program after each outputted line, this will slow down the display on hyperterminal.

BigDog
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top