I'm using an 18F2523 with PBP 2.50a (see setup below). I'd like to use the internal 8MHz clock so I can skip using a crystal and use those 2 pins for digital I/O. I've set up the PIC as follows but have a curious result when I do a DEBUG BIN8 OSCCON. The result is 01110111.

Wouldn't IOFS, that is OSCCON<2>, be set to high if the PIC was running correctly? Or is that bit only set high if a divider is used?

Thanks for your help!
John




' system setup
ASM
;---[CONFIG1H]------------------------------------------------------------------
CFG_1H = _OSC_INTIO67_1H ;int osc block, port function on RA6+RA7
CFG_1H = CFG_1H & _IESO_OFF_1H ;oscillator switchover mode disabled
;---[CONFIG2H]------------------------------------------------------------------
CFG_2H = _WDT_ON_2H ;WDT enabled
CFG_2H = CFG_2H & _WDTPS_512_2H ;WDT postscaler = 1:512
;---[CONFIG3H]------------------------------------------------------------------
CFG_3H = _PBADEN_ON_3H ;PORTB<4:0> are analog inputs on RESET
CFG_3H = CFG_3H & _MCLRE_ON_3H ;MCLR pin enabled, RE3 input pin disabled
;---[CONFIG4L]------------------------------------------------------------------
CFG_4L = _LVP_OFF_4L ;Single-supply ICSP disabled
CFG_4L = CFG_4L & _XINST_OFF_4L ;Legacy mode for inst. set and indexing
;-------------------------------------------------------------------------------
__CONFIG _CONFIG1H, CFG_1H ;store CONFIGs
__CONFIG _CONFIG2H, CFG_2H
__CONFIG _CONFIG3H, CFG_3H
__CONFIG _CONFIG4L, CFG_4L
ENDASM

DEFINE OSC 8 '8MHz clock
OSCCON = %01110011 'internal 8MHz clock