Please I need some help my program will not work.
it compiles without problem.
MSC PLUS
V 5.0.0.5
compiler PBPX 3.0.6.4
Pic 16f88
'****************************************************************
'* Name : TEST_0_16F88 *
'* Author : [WVA] *
'* Notice : Copyright (WVA) 2014 *
'* : All Rights Reserved *
'* Date : 8/18/2014 *
'* Version : 1.0 *
'* Notes : Testing_16F88 *
'* : *
'****************************************************************
;----[16F88 Hardware Configuration]---------------------------------------------
#IF __PROCESSOR__ = "16F88"
#DEFINE MCU_FOUND 1
#CONFIG
__config _CONFIG1, _XT_OSC & _WDT_ON & _PWRTE_OFF & _MCLR_ON & _BODEN_ON & _LVP_OFF & _CPD_OFF & _WRT_PROTECT_OFF & _DEBUG_OFF & _CCP1_RB3 & _CP_OFF
__config _CONFIG2, _FCMEN_ON & _IESO_ON
#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
OSCCON=%01100000 '4 Mh seting
cmcon = 7 'comparator off
ADCON1 = 7 'analog digital of
ANSEL=0 'set i/o to digital
'TRISA=%11111111 'all A ports inputs
TRISB=%00000000 ' all ports outputs
'PORTB=%00000000 'Initiate all port B pins to 'low
main:
PORTB.0=1 'LED on
PORTB.1=1
pause 1500 'Delay 1/2 second
PORTB.0=0 'LED of
PORTB.1=0
PAUSE 1500 'Delay 1/2 second
goto main 'Loop back and do it again
it compiles without problem.
MSC PLUS
V 5.0.0.5
compiler PBPX 3.0.6.4
Pic 16f88
'****************************************************************
'* Name : TEST_0_16F88 *
'* Author : [WVA] *
'* Notice : Copyright (WVA) 2014 *
'* : All Rights Reserved *
'* Date : 8/18/2014 *
'* Version : 1.0 *
'* Notes : Testing_16F88 *
'* : *
'****************************************************************
;----[16F88 Hardware Configuration]---------------------------------------------
#IF __PROCESSOR__ = "16F88"
#DEFINE MCU_FOUND 1
#CONFIG
__config _CONFIG1, _XT_OSC & _WDT_ON & _PWRTE_OFF & _MCLR_ON & _BODEN_ON & _LVP_OFF & _CPD_OFF & _WRT_PROTECT_OFF & _DEBUG_OFF & _CCP1_RB3 & _CP_OFF
__config _CONFIG2, _FCMEN_ON & _IESO_ON
#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
OSCCON=%01100000 '4 Mh seting
cmcon = 7 'comparator off
ADCON1 = 7 'analog digital of
ANSEL=0 'set i/o to digital
'TRISA=%11111111 'all A ports inputs
TRISB=%00000000 ' all ports outputs
'PORTB=%00000000 'Initiate all port B pins to 'low
main:
PORTB.0=1 'LED on
PORTB.1=1
pause 1500 'Delay 1/2 second
PORTB.0=0 'LED of
PORTB.1=0
PAUSE 1500 'Delay 1/2 second
goto main 'Loop back and do it again
Comment