gladtor_455
Newbie level 5
- Joined
- May 16, 2009
- Messages
- 8
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,357
hi every one
i am new to pic and i want to do a simple program with interrup for pic16f84a
it is jus when i get signsl on RB0 all porta change to on status
this is the programe but it dosent work
if any one can tell me what is the problem
Processor Type PIC16F877A .
LIST P=16F84A
;********************************************************************************************************$
; Include An Additional File In The Program .
#INCLUDE "P16F84A.INC"
;********************************************************************************************************$
; Configuration Register Bits .
__CONFIG _CP_OFF & _WDT_OFF & _PWRTE_ON & _XT_OSC
;********************************************************************************************************$
; Reset Vector .
org 0x00
GOTO Start
org 0x04
banksel PORTA
bsf PORTA,1
retfie
bsf INTCON,7
bsf INTCON,4
Start
Banksel TRISB
movlw b'11111111'
movwf TRISB
BANKSEL TRISA
clrf TRISA
BANKSEL PORTA
clrf PORTA
LOOP GOTO LOOP
END
i am new to pic and i want to do a simple program with interrup for pic16f84a
it is jus when i get signsl on RB0 all porta change to on status
this is the programe but it dosent work
if any one can tell me what is the problem
Processor Type PIC16F877A .
LIST P=16F84A
;********************************************************************************************************$
; Include An Additional File In The Program .
#INCLUDE "P16F84A.INC"
;********************************************************************************************************$
; Configuration Register Bits .
__CONFIG _CP_OFF & _WDT_OFF & _PWRTE_ON & _XT_OSC
;********************************************************************************************************$
; Reset Vector .
org 0x00
GOTO Start
org 0x04
banksel PORTA
bsf PORTA,1
retfie
bsf INTCON,7
bsf INTCON,4
Start
Banksel TRISB
movlw b'11111111'
movwf TRISB
BANKSEL TRISA
clrf TRISA
BANKSEL PORTA
clrf PORTA
LOOP GOTO LOOP
END