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

16f883 config fuses problem

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



Joined: 26 Dec 2011
Posts: 3

View user's profile Send private message

16f883 config fuses problem
PostPosted: Wed Jan 25, 2012 1:39 pm     Reply with quote

Unable to set the fuses properly for 16f883 in ccs ver 4.110. Is this correct format ?
Code:

#include <16f883.h>
#fuses   HS, NOWDT, NOLVP, NOBROWNOUT, NOPROTECT, NOPUT
#use     delay(oscillator=20M)

After compilation I see EC_IO instead of external HS oscillator...
plzz help
Ttelmah



Joined: 11 Mar 2010
Posts: 19498

View user's profile Send private message

PostPosted: Wed Jan 25, 2012 3:37 pm     Reply with quote

Code:

#include <16f883.h>
#fuses   HS, NOWDT, NOLVP, NOBROWNOUT, NOPROTECT, NOPUT
#use delay(clock=20M)


The keywords 'crystal', and 'oscillator' in use delay, override the fuse selection, instead using the crystal or internal oscillator respectively.
Don't put extra spaces between the 'use' and the 'delay' on some compiler versions this will cause problems.

Best Wishes
haqamar



Joined: 26 Dec 2011
Posts: 3

View user's profile Send private message

PostPosted: Wed Jan 25, 2012 4:11 pm     Reply with quote

thanx for pointing 'clock' Smile
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