I am using this line with the 16F883 with no other @ DEFINE lines or anything else, jus the one line.
and I modified the file C:\PBP\16F883.INCCode:@ __config _CONFIG1, _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_ON & _LVP_OFF & _CP_ON & _CPD_ON
Comment out the __config line and save the file.Code:;**************************************************************** ;* 16F883.INC * ;* * ;* By : Leonard Zerman, Jeff Schmoyer * ;* Notice : Copyright (c) 2009 microEngineering Labs, Inc. * ;* All Rights Reserved * ;* Date : 07/02/09 * ;* Version : 2.60 * ;* Notes : * ;**************************************************************** NOLIST ifdef PM_USED LIST include 'M16F88x.INC' ; PM header device pic16F883, intrc_osc_noclkout, wdt_on, mclr_on, lvp_off, protect_off XALL NOLIST else LIST LIST p = 16F883, r = dec, w = -302 INCLUDE "P16F883.INC" ; MPASM Header ; __config _CONFIG1, _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_ON & _LVP_OFF & _CP_OFF NOLIST endif LIST
This works good for me.
K




Bookmarks