hai everyone,
im annie from malaysia.im in final year and do my final year project.here i need help from anyone to get a guide and some comment about my project.my project is LOW COST SECURITY SYSTEM USING PIC16F84A,where i focus on home security system.
i have test my magnetic sensor but fail to test my sensor.so,i need some help from anyone.
;**********************************************************************
list p=16F84A ; list directive to define processor
#include <p16F84A.inc> ; processor specific variable definitions
__CONFIG 0X3FF2
; '__CONFIG' directive is used to embed configuration data within .asm file.
; The lables following the directive are located in the respective .inc file.
; See respective data sheet for additional information on configuration word.
;**********************************************************************
PORTA EQU 5
PORTB EQU 6
OPTION_R EQU 81H
TRISA EQU 85H
TRISB EQU 86H
STATUS EQU 3
;**********************************************************************
ORG 0x000
goto main
main
;initialize of my PIC setting the general I/O in TRIS
BSF STATUS,5
CLRF TRISB
BSF TRISA,0
BCF STATUS,5
MOLVW B'11111111'
MOVWF PORTB
START BTFSS PORTA,0
BSF PORTB,7
BCF PORTB,7
RETURN
END
;****************************************************
i hope anyone can check the program for me and give a comment.
thank you.