Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top