jayanth.devarayanadurga
Banned
- Joined
- Dec 4, 2012
- Messages
- 4,280
- Helped
- 822
- Reputation
- 1,654
- Reaction score
- 791
- Trophy points
- 1,393
- Location
- Bangalore, India
- Activity points
- 0
Read the attached pdf file and check my project files. I have used timer0 to count 5 sec for buzzer and 10 sec for Door Open. I am simulating in Proteus and have not tested in hardware yet. I have problem using timer0. When System is powered on Buzzer is turned ON and a timer is started to count 5 sec and after 5 sec buzzer turns OFF. When Door open menu item is activated door opens for 10 sec using the same timer and then door closes. The problem I am facing in simulation is the buzzer turn on fine but when timer starts counting the 5 sec I hear some cracking noise from buzzer and Proteus time becomes very slow (it takes 3-4 minutes to simulate 5 sec timer). Then when Door Open is activated 10 sec timer starts and I have the same problem i.e., 10 sec actual time takes 5-6 minutes in Proteus. Is it a Simulation problem or will the same thing happen in real hardware. I know that in hardware when buzzer is ON then the port remain high even if timer is counting and it will not affect the buzzer and also that when door is open and timer is running for 10 sec then PORT states doesn't get affected as timer interrupt is independent but I want to know if the high priority of the timer interrupt compared with other code will in anyway affect the working of the System?
password is 9999
password is 9999