dineshbabu Guest
|
problem in PIC16F873A |
Posted: Thu Oct 16, 2008 5:49 am |
|
|
I have used the following code for PIC16F873A. The output works properly only when the first Pin (vpp pin which need to be connected to 5V through resistor) is touched by hand.
What is the reason, can anybody explain ?
How can I rectify ? Any reset problem ?
Code: | #include <16F873.h>
#fuses HS,NOPROTECT,NOWDT,PUT
#DEVICE ADC=10
#use delay(clock=20000000)
void main()
{
output_high(PIN_B6);
while(1)
{
output_low(PIN_B7);
delay_ms(500);
output_high(PIN_B7);
delay_ms(500);
}
} |
|
|