Question
Following figure shows a diagram for an automobile alarm circuit used to detect certain undesirable conditions. The three switches are used to indicate the status
Following figure shows a diagram for an automobile alarm circuit used to detect certain undesirable conditions. The three switches are used to indicate the status of the door by the driver’s seat, the ignition, and the headlights, respectively.
• Atmega 128's I/O D port is used as input and B port is used as output. The three switches are connected to PD0, PD1 and PD2 as shown in the figure. PB0 and PB1 are connected to the alarm, PB0 is an alarm indicating a serious situation, and the alarm connected to PB1 is connected to indicate a general alarm.
1. Write requirements analysis definition document.
• Find out more than 2 references on the web and create a suitable requirements definition form.
Divide the alarm into a major alarm and a general alarm. Indicate the major alarm by the LED connected to PB0 and the general alarm by the LED connected to PB1.
Write all necessary warning conditions for safety. • Ex) The headlights are on while the ignition is off
Explain why
2. Write assembly code with these three switches as inputs so that the alarm will be activated whenever either of your conditions exists:
3. Build in atmel studio and show demo on simulide.
4. Link the demo video
+5 V 5 V Door PBO LED PDO Alarm 5 V Atmega Ignition 128 PD1 +5 V PB1 LED Lights PD2 Alarm
Step by Step Solution
3.46 Rating (162 Votes )
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started