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

How to setup internal oscillator in a 16F88

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



Joined: 08 Sep 2003
Posts: 492
Location: India

View user's profile Send private message Send e-mail

How to setup internal oscillator in a 16F88
PostPosted: Fri Feb 22, 2008 7:19 am     Reply with quote

Hi,

PCM: 3.169
MCU: 16F88

I would like to setup the internal oscillator of the 16F88. I found that the header file for the device did not contain INTRC_IO, and the compiler returned an error.

I searched for previous posts related to this query, and found that most people used INTRC_IO.

I fail to understand how this can be done.

Kindly help.

thanks
arunb

PS:

Here is the extract of the header file
Code:
 Fuses: LP,XT,HS,EC_IO,NOWDT,WDT,NOPUT,PUT,MCLR,NOMCLR,BROWNOUT
//////// Fuses: NOBROWNOUT,LVP,NOLVP,CPD,NOCPD,WRT,NOWRT,DEBUG,NODEBUG,CCPB0
//////// Fuses: CCPB3,PROTECT,NOPROTECT
rnielsen



Joined: 23 Sep 2003
Posts: 852
Location: Utah

View user's profile Send private message

PostPosted: Fri Feb 22, 2008 9:47 am     Reply with quote

INTRC_IO is a valid fuse for the 16F88. It tells the compiler to use the internal oscillator and _not_ output the clock pulses to an output. You need setup_oscillator(OSC_8MHZ) in your main() to finish setting things up. This will configure the PIC to run at 8MHZ but there are several other frequencies that you can set it to.

Ronald
arunb



Joined: 08 Sep 2003
Posts: 492
Location: India

View user's profile Send private message Send e-mail

RE:
PostPosted: Sat Feb 23, 2008 2:19 am     Reply with quote

Hi,

Thanks a lot, i got it working but only after installing PCM compiler version 3.224, i was previously using 3.169 which did not have the INTRC_IO oscillator setup.

arunb
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