u04f061
Advanced Member level 4
![Full Member level 1](/styles/images/ranks/elevel1.gif)
configuration bits 16f877a problems
Hi,
I am having problem with PIC16F877. First, I have simulated my program in Proteus and it works fine, so there is little chance of a programming problem. But in hardware, my controller works well if I touch it with hand(when I am connected to earth). Morover, I have tried the following:
1 - As I am using PORTC(PORTB and PORTD) of the PIC, I have tried both pulling it up and down, through a variety of resistors, but it did not give the right output.
2 - I have checked and re-checked the floating ground problem, but in vain. I have also tried different power supplies, but did not succeed.
3 - When I do not touch it, the PIC does not turn off, rather it gives a wrong output. This wrong output is a clock at some pins and any pulse with a different cycle on the others.
4 - I have directly and indirectly shorted the pin to earth, but of no use. Moreover, I connected a resistor equal to my body resistance and tried to pull the pin and up through it, but still it did not work.
At last, I want to clarify that it actually does work when I earth it through me. I have checked for a variety of outputs.
Hi,
I am having problem with PIC16F877. First, I have simulated my program in Proteus and it works fine, so there is little chance of a programming problem. But in hardware, my controller works well if I touch it with hand(when I am connected to earth). Morover, I have tried the following:
1 - As I am using PORTC(PORTB and PORTD) of the PIC, I have tried both pulling it up and down, through a variety of resistors, but it did not give the right output.
2 - I have checked and re-checked the floating ground problem, but in vain. I have also tried different power supplies, but did not succeed.
3 - When I do not touch it, the PIC does not turn off, rather it gives a wrong output. This wrong output is a clock at some pins and any pulse with a different cycle on the others.
4 - I have directly and indirectly shorted the pin to earth, but of no use. Moreover, I connected a resistor equal to my body resistance and tried to pull the pin and up through it, but still it did not work.
At last, I want to clarify that it actually does work when I earth it through me. I have checked for a variety of outputs.