Hi BokK,
FYI;
INTRC_OSC_NOCLKOUT is the same as INTRC_OSC, and still the same as
INTIO2_OSC (if you've changed the constant name to this in the .INC file).
How it works is not going to change. It's still selecting the internal osc with
OCS1 & OSC2 as digital I/O-pins.
From the data sheet;
INTIO1 = (INTRC_OSC_CLKOUT) = Internal Oscillator with FOSC/4 output on
RA6 and I/O on RA7. The 1 indicates 1 I/O on RA7.
INTIO2 = (INTRC_OSC_NOCLKOUT or INTRC_OSC) = Internal Oscillator with
I/O on RA6 and RA7. The 2 indicates 2 I/O. One on RA6 & one on RA7.
Changing the name of a config fuse option in the include file does not affect
how it works. The value to the right does.
From the PBP 16F87.INC file;
Code:
INTRC_OSC_NOCLKOUT equ 3FEC0010h ; XX XXXX XXX1 XX00
INTRC_OSC equ 3FEC0010h ; XX XXXX XXX1 XX00
Note how both "constant" names are assigned the same value. You could
change one to THE_INT_RC, and it would still be the equivalent of the other.
NAME equ xxx just creates a "constant" name = to the value to the right.
Wherever the assembler encounters the name of that constant, the value
assigned to it is used. What that name is doesn't matter. Each constants
name is just to provide you with an easily recognizable name for each option.
I.E. @ DEVICE WDT_ON, INTRC_OSC_NOCLKOUT makes it easy to know at a
glance what you're getting.
Bookmarks