[ASM ERROR] SETUP_16_F88_0_CONFIG_3.ASM (46) : Missing operator
[ASM ERROR] SETUP_16_F88_0_CONFIG_3.ASM (46) : Symbol not previously defined (x)
Please Help : see attached program
'****************************************************************
'* Name : TEST_0_16F88_config_3 *
'* Author : [WVA] *
'* Notice : Copyright (WVA) 2014 *
'* : All Rights Reserved *
'* Date : May/ 2015 *
'* Version : 1.0 *
'* Notes : INITIAL_SETUP_16F88 *
'* : *
'****************************************************************
;----[16F88 Hardware Configuration]---------------------------------------------
;----[16F88 Hardware Configuration]---------------------------------------------
#IF __PROCESSOR__ = "16F88"
#DEFINE MCU_FOUND 1
#CONFIG
cfg1 = _INTRC_IO ; INTRC oscillator; CLKO function on RA6/OSC2/CLKO pin and port I/O function on RA7/OSC1/CLKI pin
cfg1&= _WDT_OFF ; WDT enabled
cfg1&= _PWRTE_OFF ; PWRT disabled
cfg1&= _MCLR_ON ; RA5/MCLR/VPP pin function is MCLR
cfg1&= _BODEN_ON ; BOR enabled
cfg1&= _LVP_OFF ; RB3 is digital I/O, HV on MCLR must be used for programming
cfg1&= _CPD_OFF ; Code protection off
cfg1&= _WRT_PROTECT_OFF ; Write protection off
cfg1&= _DEBUG_OFF ; In-Circuit Debugger disabled, RB6 and RB7 are general purpose I/O pins
cfg1&= _CCP1_RB0 ; CCP1 function on RB0
cfg1&= _CP_OFF ; Code protection off
__CONFIG _CONFIG1, cfg1
cfg2 = _FCMEN_ON ; Fail-Safe Clock Monitor enabled
cfg2&= _IESO_ON ; Internal External Switchover mode enabled
__CONFIG _CONFIG2, cfg2 x
#ENDCONFIG
#ENDIF
;----[Verify Configs have been specified for Selected Processor]----------------
; Note: Only include this routine once, after all #CONFIG blocks
#IFNDEF MCU_FOUND
#ERROR "No CONFIGs found for [" + __PROCESSOR__ +"]"
#ENDIF
'define OSC 4
OSCCON=%01100000
cmcon = 7 'comparator off
ADCON1 = 7 'analog digital of
ANSEL=0 'set i/o to digital
TRISA=%11111111 'all A ports inputs
'PORTB=%00000000 'Initiate all port B pins to 'low
TRISB=%1100000 ' all ports outputs
main:
PORTB.0=0 'LED of
'PORTB.1=1
pause 1000 'Delay 1/2 second
PORTB.0=1 'LED on
'PORTB.1=0
PAUSE 1000 'Delay 1/2 second
goto main 'Loop back and do it again
[ASM ERROR] SETUP_16_F88_0_CONFIG_3.ASM (46) : Symbol not previously defined (x)
Please Help : see attached program
'****************************************************************
'* Name : TEST_0_16F88_config_3 *
'* Author : [WVA] *
'* Notice : Copyright (WVA) 2014 *
'* : All Rights Reserved *
'* Date : May/ 2015 *
'* Version : 1.0 *
'* Notes : INITIAL_SETUP_16F88 *
'* : *
'****************************************************************
;----[16F88 Hardware Configuration]---------------------------------------------
;----[16F88 Hardware Configuration]---------------------------------------------
#IF __PROCESSOR__ = "16F88"
#DEFINE MCU_FOUND 1
#CONFIG
cfg1 = _INTRC_IO ; INTRC oscillator; CLKO function on RA6/OSC2/CLKO pin and port I/O function on RA7/OSC1/CLKI pin
cfg1&= _WDT_OFF ; WDT enabled
cfg1&= _PWRTE_OFF ; PWRT disabled
cfg1&= _MCLR_ON ; RA5/MCLR/VPP pin function is MCLR
cfg1&= _BODEN_ON ; BOR enabled
cfg1&= _LVP_OFF ; RB3 is digital I/O, HV on MCLR must be used for programming
cfg1&= _CPD_OFF ; Code protection off
cfg1&= _WRT_PROTECT_OFF ; Write protection off
cfg1&= _DEBUG_OFF ; In-Circuit Debugger disabled, RB6 and RB7 are general purpose I/O pins
cfg1&= _CCP1_RB0 ; CCP1 function on RB0
cfg1&= _CP_OFF ; Code protection off
__CONFIG _CONFIG1, cfg1
cfg2 = _FCMEN_ON ; Fail-Safe Clock Monitor enabled
cfg2&= _IESO_ON ; Internal External Switchover mode enabled
__CONFIG _CONFIG2, cfg2 x
#ENDCONFIG
#ENDIF
;----[Verify Configs have been specified for Selected Processor]----------------
; Note: Only include this routine once, after all #CONFIG blocks
#IFNDEF MCU_FOUND
#ERROR "No CONFIGs found for [" + __PROCESSOR__ +"]"
#ENDIF
'define OSC 4
OSCCON=%01100000
cmcon = 7 'comparator off
ADCON1 = 7 'analog digital of
ANSEL=0 'set i/o to digital
TRISA=%11111111 'all A ports inputs
'PORTB=%00000000 'Initiate all port B pins to 'low
TRISB=%1100000 ' all ports outputs
main:
PORTB.0=0 'LED of
'PORTB.1=1
pause 1000 'Delay 1/2 second
PORTB.0=1 'LED on
'PORTB.1=0
PAUSE 1000 'Delay 1/2 second
goto main 'Loop back and do it again
Comment