Question: You have a security system based on AVR ATmega16 microcontroller to monitor an entrance room door and window in certain building and each of


 

You have a security system based on AVR ATmega16 microcontroller to monitor an entrance room door and window




You have a security system based on AVR ATmega16 microcontroller to monitor an entrance room door and window in certain building and each of them is equipped with a sensor that when any one of them is opened the sensor will be activated leading to activate a siren signal generated by the microcontroller, knowing that there are two sirens generate different tone when operating for 5 seconds. Write an AVR ATmega16 program to control this security issue. Note: Door and window sensors are connected to PCO&PC1 respectively, while sierens1&2 are connected to PC2&PC3

Step by Step Solution

3.45 Rating (164 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

AVR code define FCPU 1000000UL CLOCK FREQUENCY IMHz include include FOR USING HEADER FILE DELAY ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!