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

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: 8051 microcontroller code for pir sensor, ppt interfacing pir sensor with microcontroller, rtd sensor interfacing, anolog to digital conerter using atc mcu, pulse oximetry sensor c code for 8051, modul mcu running text at89s52, lm35 interfacing with 8051 code,

[-]
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)

Messages In This Thread
code for interfacing pir sensor with 8051 mcu - by Guest - 10-03-2013, 12:49 AM
RE: code for interfacing pir sensor with 8051 mcu - by Guest - 16-10-2015, 07:14 PM

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

Forum Jump: