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 CCS Technical Support

pcwhd compiler problems

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



Joined: 21 May 2012
Posts: 1

View user's profile Send private message

pcwhd compiler problems
PostPosted: Mon May 21, 2012 4:54 pm     Reply with quote

Hello all, I am very new at programming mcu's and I have a problem with the pic c compiler. I write the simple code:
Code:
#include <16f628a.h>

void main() {
while(1) {
output_high(pin_a1);
   }
}


and there is no errors, but the code doesn't work! I know my programmer works and everything because I made code with assembly and it worked fine. I don't know why this wouldn't work but I can't figure it out.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon May 21, 2012 5:02 pm     Reply with quote

You are missing #fuses and #use delay(). Look at the sample code in
this thread for an example:
http://www.ccsinfo.com/forum/viewtopic.php?t=32580
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