code for interfacing pir sensor with 8051 mcu
#1

org 00h

mov p1,#0ffh
mov p2,#00h
mov a,p1
jnz check
;jz loop

loop:
mov a,p1
jnz check
jz loop

check:
acall delay
mov a,p1
jnz check1
jz loop

check1:
mov p2,#0ffh
acall dlay1
mov p2,#00h
sjmp loop

delay:
mov r4,#255d
loop3:

mov r1,#255d
loop2:
mov r3,#255d
loop1:
djnz r3,loop1
djnz r1,loop2
djnz r4,loop3
ret

dlay1:
mov r4,#10d
lop3:

mov r1,#255d
lop2:
mov r3,#255d
lop1:
djnz r3,loop1
djnz r1,loop2
djnz r4,loop3
ret

end


Reply
#2
sir we want code for interfacing pir sensor with 89s52 microcontroller
Reply
#3
code for interfacing pir sensor with 8051 mcu

org 00h

mov p1,#0ffh
mov p2,#00h
mov a,p1
jnz check
;jz loop

loop:
mov a,p1
jnz check
jz loop

check:
acall delay
mov a,p1
jnz check1
jz loop

check1:
mov p2,#0ffh
acall dlay1
mov p2,#00h
sjmp loop

delay:
mov r4,#255d
loop3:

mov r1,#255d
loop2:
mov r3,#255d
loop1:
djnz r3,loop1
djnz r1,loop2
djnz r4,loop3
ret

dlay1:
mov r4,#10d
lop3:

mov r1,#255d
lop2:
mov r3,#255d
lop1:
djnz r3,loop1
djnz r1,loop2
djnz r4,loop3
ret

end
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: mcu pgdca atc, anolog to digital conerter using atc mcu, interfacing zigbee with 8051 code, mcu result of, gas detector sensor interfacing with 8051, tcs3200 cvavr, light sensor interfacing with lpc2148ort,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  program code of solar tracking system using 8051 microcontroller 6 23,105 03-05-2018, 09:30 PM
Last Post: Guest
  ppt of automatic speed control of vehicle at school zones using ir sensor 4 1,539 15-04-2017, 02:20 PM
Last Post: jaseela123d
  distance measurement using infrared sensor with adc0804 8051 microcontroller at89c51 1 2,098 12-04-2017, 12:57 PM
Last Post: jaseela123d
  wireless radar heartbeat counter sensor circuit dig ppt 1 964 11-04-2017, 11:37 AM
Last Post: jaseela123d
  8051 based automatic blind stick circuit diagram 1 952 10-04-2017, 04:02 PM
Last Post: jaseela123d
  literature survey of cut detection in wireless sensor networks 1 699 06-04-2017, 10:06 AM
Last Post: jaseela123d
  code for interfacing 8051 with pir sensor 1 894 05-04-2017, 03:53 PM
Last Post: jaseela123d
  fault detection of optical fibre using 8051 1 771 04-04-2017, 05:01 PM
Last Post: jaseela123d
Thumbs Up 8051 microcontroller experiments lab manual pdf 1 1,037 04-04-2017, 04:12 PM
Last Post: jaseela123d
  internal structure of mq6 gas sensor 1 878 04-04-2017, 04:09 PM
Last Post: jaseela123d

Forum Jump: