iRawrz
Newbie level 3
Hello all,I'm currently doing my final year project and I'm in a trouble of programming for this project.I already programmed it using assembly but the problem now here is that my coding for my sensor is not working even though I run it using M-IDE and it said no errors.How can I send sms to the mobile phone when the alarm is triggered?So far,I tested the gsm modem and it's working just fine.....Can anyone kindly guide me for this project?Thanks in advance!
I'm still trying to figure the BZ command that can trigger the alarm....
Code ASM - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 ORG 0000 MAIN: MOV P1,#00 JNB P2.6,LOOP JMP MAIN LOOP: JB P3.6,COUNT CJNE R0,#00H,ON ACALL MAIN ON: CJNE R0,#01H,MAIN SJMP BZ COUNT: INC R0 CJNE R0,#01,SC SJMP BZ SC: CJNE R0,#02H,MAIN MOV R0,#00H JMP MAIN BZ: DELAY: MOV R1,#255 L1: MOV R2,#255 L2: DJNZ R2,L2 DJNZ R1,L1 RET END
I'm still trying to figure the BZ command that can trigger the alarm....
Last edited by a moderator: