View previous topic :: View next topic |
Author |
Message |
Tharon Hall Guest
|
Setting INT_IO2 for 16F88 |
Posted: Tue Oct 21, 2003 5:40 pm |
|
|
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??? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Oct 21, 2003 6:07 pm |
|
|
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
|
|
Posted: Wed Oct 22, 2003 6:25 am |
|
|
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
|
|
Posted: Thu Oct 23, 2003 1:18 pm |
|
|
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..... |
Nope. It did not take "INTRC_IO".
I get "unknown keyword in fuses". |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Oct 23, 2003 1:25 pm |
|
|
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
|
Thanks |
Posted: Fri Oct 28, 2005 7:15 am |
|
|
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! |
|
|
|