We are looking at the same thing.
I picked _INTRC_IO because I think that should make the pins I/Os.
So what was Bruce talking about in Bob's post? The *.inc s are pretty much the same for the 88 and 87.
We are looking at the same thing.
I picked _INTRC_IO because I think that should make the pins I/Os.
So what was Bruce talking about in Bob's post? The *.inc s are pretty much the same for the 88 and 87.
Dave
Always wear safety glasses while programming.
Hi Everyone. I've only used the 'F88 once. I didn't have any problem with this header file:
OSCCON = $60 'set int osc to 4mhz
ANSEL = 0 'ALL INPUTS DIGITAL
ADCON0 = 0 'AD MODULE OFF
CMCON = 7 'COMPARATORS OFF
TRISA = %SELECT YOUR I/O'S
TRISB = %SELECT YOUR I/O'S
@ DEVICE MCLR_OFF, INTRC_OSC, WDT_ON, LVP_OFF, BOD_OFF, PWRT_ON, PROTECT_ON
Hi guys, thanks for the responce!
I have been doing a few projects based on the 16F88 and they all have turned out a success until this time, the first time I needed RA6 & RA7 as I/O’s.
I use MPASAM and the first part of my code looks like this:
define OSC 8
OSCCON =%01110000
@__config_INTRC_IO ‘ added today, compiled OK but no I/O on RA6 or RA7
TRISB = %00000000
TRISA = %11001100
ANSEL = %00000000
CMCON = 7
All the other ports works just fine so.....
Thanks for being here!
At least it compiles
Try what skimask suggested
INTRC_CLKOUT
Or compile with PM and use
@ DEVICE MCLR_OFF, INTRC_OSC, WDT_ON, LVP_OFF, BOD_OFF, PWRT_ON, PROTECT_ON
One of them has to work.
Dave
Always wear safety glasses while programming.
This chip as 2 ADCON registers too
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
I tried the “INTRC_CLKOUT” with MPASM it compiled well but still no I/O!
I use the 16F88.inc file as is, not edited.
There must be something I miss here; “INTRC_CLKOUT” does not make sense to me (no offence)! The “INTRC_IO” statement seems more logic to me, of curse I might be of the tracks here but that’s how I see it.
Referring to the 16F88 datasheet page 130 way down;
Bit 4, 1-0 FOSC<2:0>: Oscillator Selection bits.
I believe what I need is the fourth alternative:
“100 = INTRC oscillator; port I/O function on both RA6/OSC2/CLKO pin and RA7/OSC1/CLKI pin”.
Or… am I loosing it? (apart from my hair!)
Thanks guys!
Have you commented out the shebang line in the inc?
http://www.picbasic.co.uk/forum/show...75&postcount=5
Dave
Always wear safety glasses while programming.
Bookmarks