- This topic has 1 reply, 2 voices, and was last updated 9 years, 12 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › Coding problem
I am B.tech final year student working on a project of visitor counter and automation using 8051 uC. I am using two IR sensors on single gate to count both up and down and drive a relay. I am encountering difficulty in writing its code. Can you provide any help regarding code of this type of project?? I am using AT89C51 uC.
connect output of both IR receivers with two external interrupt pins 11 (INT0) and 12 (INT1)
increment count if INT0 occurs first and INT1 arrives second
simillarly decrement count if INT1 arrives first and INT0 arrives second
switch ON relay if count is more than 0 and switch it OFF if count is 0
thats all