Interrupt not working

Status
Not open for further replies.

d@nny

Full Member level 5
Joined
May 28, 2011
Messages
246
Helped
11
Reputation
22
Reaction score
11
Trophy points
1,298
Activity points
3,238
processor 16f84
#include "p16f84.inc"
__config _RC_OSC & _WDT_OFF & _PWRTE_ON ; This includes PIC16F84 definitions for the MPASM assembler

; Please insert your code here.

org 0x00
temp equ 4h
goto main
org 0x04
movwf temp
movlw B'11111111'
movwf PORTA
movfw temp
bcf INTCON , 1

retfie
main:
bsf INTCON,7
bsf INTCON,4
bcf INTCON,1
banksel TRISB
movlw B'00000001'
movwf TRISB
banksel TRISA
movlw B'00000000'
movwf TRISA
fin:
goto fin

END
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…