Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

help for file asm

Status
Not open for further replies.

Pommie

Well-Known Member
Most Helpful Member
I'm not sure what you are asking but think you want the alarm to trigger every time there is an intrusion. If this is so then my guess would be that you would remove the lines in red,
Code:
TRIG:   btfss ALARMSTATUS,STROBE    ; has alarm already been triggered?
        bsf ALARMSTATUS,BELL        ; no, so trigger bell
        bsf ALARMSTATUS,BUZZER
        [COLOR="Red"]bsf ALARMSTATUS,STROBE[/COLOR]

        movf ALARMSTATUS,W          ; store ALARMSTATUS (but with bell off) to eeprom
        movwf STORE1
        bcf STORE1,BELL
        movlw 8
        call SETPRM
        return

AND ALSO IN

PANICSET: btfsc PORTB,PANIC    ; has RB4 called Panic interrupt ( = 0)?
        goto PSET2             ; no

        bsf ALARMSTATUS,PANIC  ; yes
        bsf ALARMSTATUS,7      ;
        bsf ALARMSTATUS,BELL   ; trigger bell etc
        bsf ALARMSTATUS,BUZZER
        [COLOR="Red"]bsf ALARMSTATUS,STROBE[/COLOR]
        movlw %00000111
        movwf PORTE

But, it's only a guess.

Mike.
 

seti75

New Member
excellent Pommie
Yes, I want the alarm works
always

the question is asked on the french forum
but none has been able to address this problem

by removing these 2 lines my alarm is not in stopping
, after a first alarm ?

thanks
 
Last edited:

be80be

Well-Known Member
Seti75 I got me two 16f877 and tried the code from the epe magazine and the alarm works just like it shows in the magazine
 

seti75

New Member
thanks be80be , but

I want a different operation.
if the alarm detects a intus, it should not be stanby mode after.
alarm always detect
Alarm still if intruder
 
Last edited:
Status
Not open for further replies.

Latest threads

EE World Online Articles

Loading
Top