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
[B]main
bsf PORTB,1
goto $-1[/B]
check
bcf PORTB,1
bcf INTCON,2
bsf INTCON,7
end
generally between ORG 0x00 and ORG 0x04 they wont add linesthanks! but i want to check interrupt not make falsh on RB1!
can labels name effect on program! oh sorry my english is not very good i don't know can i give you my mean or no!
in fact i wanna use interrupts and this is a small and easy example for me and my friends! but it dosen't work! peykar means body in english!it's persian name!
well can you write this program in other code?
thank you very much
i have another question that i will realy happy if you answer!
i can find to use LCD with assembly!but most of them were for 8 wire data connection can you help me to use LCD in 4 wire and say what command will like if we use lcd with 4 line data bus?
thanks but you address dosen't right! whould you mind to change it please?
hi
than you very much! I am really happy to find your site!it's really good site!
thanks for you time to answer my questions!
well yeah i wanna use 4 bit lcd!but if you ave time to find and if you find!
thanks for every thing!
hi there!
i find my wrong!i don't use retfie and i write bsf INTCON,7!after my code programe jump to label that micro was not doing that!but with retfie interrupt enable again and program continue were interrupt was happen!
can u understand my mean?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?