@ __CONFIG _INTRC_IO & _WDT_OFF & _PWRTE_OFF & _LVP_OFF & _MCLR_OFF & _BODEN_OFF
This gives me illegal character "&" error message......asm.51
So I need to go and make these settings permanent in MPASM file to keep from having to make this statement, correct?
Also, datasheet (DS39598E)2004 shows:
A. WDT is WDTEN (Watchdog Timer)
B. MCLR is MCLRE (Memory Clear)
C. BODEN is BOREN (Brown-Out)
Is this correct?
Thanks for the info Bruce....I appreciate all the help I can get.
I will try to change the file settings...can you tell me what to have for pic16f819.inc file, I think I messed mine up.
Here is mine:
;************************************************* ***************
;* 16F819.INC *
;* *
;* By : Leonard Zerman, Jeff Schmoyer *
;* Notice : Copyright (c) 2004 microEngineering Labs, Inc. *
;* All Rights Reserved *
;* Date : 01/07/04 *
;* Version : 2.45 *
;* Notes : *
;************************************************* ***************
NOLIST
ifdef PM_USED
LIST
include 'M16F81x.INC' ; PM header
device pic16F819, intrc_IO, wdt_off, pwrte_off, lvp_off, protect_off
XALL
NOLIST
else
LIST
LIST p = 16F819, r = dec, w = -302
INCLUDE "P16F819.INC" ; MPASM Header
__config _INTRC_osc & _WDT_OFF & _PWRTE_ON & _LVP_OFF & _CP_OFF
NOLIST
endif
LIST





Bookmarks