CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

problem in PIC16F873A

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
dineshbabu
Guest







problem in PIC16F873A
PostPosted: Thu Oct 16, 2008 5:49 am     Reply with quote

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);
 }
}
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Oct 16, 2008 11:50 am     Reply with quote

Discussed yesterday:
http://www.ccsinfo.com/forum/viewtopic.php?t=36391&highlight=wishes+nolvp
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group