I don't have any "device.reference" subdirectory associated with pbp3. Maybe I need to uninstall and reinstall the software.

When I read the device after programming it doesn't list the config memory location 2007. All the registers read 0 so not sure if osccon is being set correctly.


Also, I get a ASM warning: found directive in column 1. (__config)
When I indent 1 space it goes away. Not sure if that matters.


I'm at a loss on what to try next. It seems like it is ignoring config and osccon and just operating at default conditions. I can select the internal oscillator frequency with osccon but I can 't get it to run in external crystal mode. I am in trouble if I can't get this to work.




This is the beginning of the .asm listing if that gives any information: (also, how do I make a scrolling code window within this reply?)


; PICBASIC PRO(TM) Compiler 3.0.7.4, (c) 1998, 2013 microEngineering Labs, Inc. All Rights Reserved.
MPASMWIN_USED EQU 1

#define PBP_PATH C:\PBP3\




NOLIST
ifdef PM_USED
LIST
include 'M16F88x.INC' ; PM header
XALL
NOLIST
else
LIST
LIST p = 16F886, r = dec, w = -302, c = 255
INCLUDE "P16F886.INC" ; MPASM Header
NOLIST
endif
LIST


PBP_HARDWAREDEF macro
endm


__config _CONFIG1, _HS_OSC & _WDT_OFF & _PWRTE_ON & _MCLRE_OFF & _CP_OFF & _CPD_OFF & _BOR_ON & _IESO_ON & _FCMEN_ON & _LVP_OFF & _DEBUG_OFF
__config _CONFIG2, _BOR40V & _WRT_OFF



; Define statements.
; C:\PBP3\DEVICES\PIC16F886.PBPINC 00172 DEFINE CODE_SIZE 8
#define CODE_SIZE 8
; C:\USERS\TBARANIA\DOCUMENTS\MY DOCUMENTS\WEATHER STATION TOWER\7725_RADIATION SENSOR_GEIGER\GEIGER.PBP 00028 define OSC 20 '20 MHz CLOCK FREQUENCY
#define OSC 20