OK you have come back. Here is the config, add this to the top of your code: @ device pic16F628A, INTRC_OSC_NOCLKOUT, wdt_on, mclr_on, lvp_off, protect_off 'it is correct, and it most likely will fail to compile, because PBP automaticly adds a default config to your code, which will need to be disabled.<br>
In your PBP root directory there is a file called 16F628A.inc , open it and add a "<font color=red> ;</font color> " where you see them in the code below which is a copy of that file.
Code:
;****************************************************************
;* 16F628A.INC *
;* *
;* By : Leonard Zerman, Jeff Schmoyer *
;* Notice : Copyright (c) 2003 microEngineering Labs, Inc. *
;* All Rights Reserved *
;* Date : 11/06/03 *
;* Version : 2.45 *
;* Notes : *
;****************************************************************
NOLIST
ifdef PM_USED
LIST
include 'M16F62xA.INC' ; PM header
;device pic16F628A, xt_osc, wdt_on, mclr_on, lvp_off, protect_off
XALL
NOLIST
else
LIST
LIST p = 16F628A, r = dec, w = -302
INCLUDE "P16F628A.INC" ; MPASM Header
;__config _XT_OSC & _WDT_ON & _MCLRE_ON & _LVP_OFF & _CP_OFF
NOLIST
endif
LIST
After doing this it should compile. All this was necessary because you want to use internal OSC instead of a 4 mhz resonator or crystal, which is what the DEFAULT configs are set up for.
Bookmarks