vishy71
Full Member level 2
hi there! i really need to now why this code is not right!because in PIC simulator ide and protues it can't work!
processor p16f84a
include <p16f84a.inc>
__config _WDT_OFF & _CP_OFF & _XT_OSC & _PWRTE_OFF
org 0x00
goto peykar
org 0x04
goto check
peykar
bsf STATUS,5
movlw 0x80
movwf OPTION_REG
clrf TRISB
bcf STATUS,5
clrf PORTB
movlw 0xA0
movwf INTCON
main
bsf PORTB,1
goto $-1
check
bcf PORTB,1
bcf INTCON,2
bsf INTCON,7
end
it say :hardware stack overflow!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
heeeeeeeeeeeeeeeeeeeeeeelp me!
i will very happy if you send me an email to know you have answer my question
thanks
processor p16f84a
include <p16f84a.inc>
__config _WDT_OFF & _CP_OFF & _XT_OSC & _PWRTE_OFF
org 0x00
goto peykar
org 0x04
goto check
peykar
bsf STATUS,5
movlw 0x80
movwf OPTION_REG
clrf TRISB
bcf STATUS,5
clrf PORTB
movlw 0xA0
movwf INTCON
main
bsf PORTB,1
goto $-1
check
bcf PORTB,1
bcf INTCON,2
bsf INTCON,7
end
it say :hardware stack overflow!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
heeeeeeeeeeeeeeeeeeeeeeelp me!
i will very happy if you send me an email to know you have answer my question
thanks