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

Setting INT_IO2 for 16F88

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







Setting INT_IO2 for 16F88
PostPosted: Tue Oct 21, 2003 5:40 pm     Reply with quote

Question So how do I set the config bits for the oscillator to INT_IO2 on a 16F88 when it is not one of the #fuses??? Question
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Oct 21, 2003 6:07 pm     Reply with quote

I believe you should use this fuse option:

INTRC_IO

It sets the Fosc bits to: 100

The 16F88 data sheet describes this option as:

100 = INTRC oscillator; Port I/O function on both
RA6/OSC2/CLKO pin and RA7/OSC1/CLKI pin
Guest








PostPosted: Wed Oct 22, 2003 6:25 am     Reply with quote

PCM programmer wrote:
I believe you should use this fuse option:

INTRC_IO

It sets the Fosc bits to: 100

The 16F88 data sheet describes this option as:

100 = INTRC oscillator; Port I/O function on both
RA6/OSC2/CLKO pin and RA7/OSC1/CLKI pin


Page 35 that discusses the various modes calls this mode "INTIO2". The #fuses comments in 16F88.h do not define "INTIO2", "INT_IO2" nor "INTRC_IO". "INTRC_IO" is what I use for the 16F819.

If it works, it wouldn't be the first time that a fuse setting wasn't in the .h file. grrr.....
Guest








PostPosted: Thu Oct 23, 2003 1:18 pm     Reply with quote

Anonymous wrote:
PCM programmer wrote:
I believe you should use this fuse option:

INTRC_IO

It sets the Fosc bits to: 100

The 16F88 data sheet describes this option as:

100 = INTRC oscillator; Port I/O function on both
RA6/OSC2/CLKO pin and RA7/OSC1/CLKI pin


Page 35 that discusses the various modes calls this mode "INTIO2". The #fuses comments in 16F88.h do not define "INTIO2", "INT_IO2" nor "INTRC_IO". "INTRC_IO" is what I use for the 16F819.

If it works, it wouldn't be the first time that a fuse setting wasn't in the .h file. grrr.....


Mad Nope. It did not take "INTRC_IO".
I get "unknown keyword in fuses". Mad
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Oct 23, 2003 1:25 pm     Reply with quote

Quote:
Nope. It did not take "INTRC_IO".
I get "unknown keyword in fuses".


This is for the 16F88 ?

What is your version of the compiler ?
DaveThib



Joined: 17 Oct 2004
Posts: 15
Location: New Hampshire USA

View user's profile Send private message

Thanks
PostPosted: Fri Oct 28, 2005 7:15 am     Reply with quote

I am using a PIC16F87 and I also want to use RA6 & RA7 as input pins and have been having trouble getting it to work. It is not well documented in the data sheet as well. So I tried setting the fuse INTRC_IO and it worked!!! So thanks a lot for the info! One of the symptoms I had is that the SPI quit working as well. I had everything working using other pins and I needed to make changes and all I changed was those two pins. After my change those pins did not work and the SPI quit sending data.

Thanks again for the help!
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