Question

An alarm is powered by 120 VAC, and the on/off state of the alarm is controlled...

An alarm is powered by 120 VAC, and the on/off state of the alarm is controlled by an EM relay. Design the interface between a computer output port and the EM relay. The dropout voltage is 3.5 V, and the coil current needs at least 100 mA. Limit the coil voltage to 6 V. Write three software functions: Alarm_Init, Alarm_On, and Alarm_Off.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

ANSWER:

CODE:

#include<AT89x51.h>
void delay(void)
{
unsigned int i=0;
for(i=0;i<300;i++)
{
}
}
void main(void)
{
P0=0xFF;
P1=0xFF;
P2=0xFF;
P3=0xFF;
  
while(1)
{
   if(P1==0)
   P2=0xFF;
   delay();
else if(P1==1)
       P2=0x00;
else

();
}

}

5 V dc 33pF AT89C51 XTAL1 119 ALRAM 120V AC CRYSTAL <TE 18 XTAL2 PO.D/ADO PO.1/AD1 PO.2/AD2 PO.3/AD3 P0.4/AD4 P0.5/AD5 PO.8/A

please rate positively.

Add a comment
Know the answer?
Add Answer to:
An alarm is powered by 120 VAC, and the on/off state of the alarm is controlled...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • An alarm is powered by 120 VAC, and the on/off state of the alarm is controlled...

    An alarm is powered by 120 VAC, and the on/off state of the alarm is controlled by an EM relay. Design the interface between a computer output port and the EM relay. The dropout voltage is 3.5 V, and the coil current needs at least 100 mA. Limit the coil voltage to 6 V. Write three software functions: Alarm_Init, Alarm_On, and Alarm_Off. Please write the code in C (Arduino AVR).

  • How might one create a burglar alarm system using the PT5529B-L2-H2-F photo transistor in which a...

    How might one create a burglar alarm system using the PT5529B-L2-H2-F photo transistor in which a 12 Volt alarm sounds continuously when a person breaks the laser beam? Include a user button to reset the system and turn off the alarm after a burglar has triggered it. Provide a detailed circuit diagram and a brief explanation of operation. Hint: use an SR latch and any other logic gate to provide the logic. Apply the output of the logic to the...

  • Question 4. (a) A full-wave bridge rectifier power supply is powered from the secondary of a...

    Question 4. (a) A full-wave bridge rectifier power supply is powered from the secondary of a transformer which has a rms secondary voltage of 15.6V. The primary of the transformer is connected to a 50Hz, 230VRMS power supply. A 2700uF filter capacitor is used. A current of 1.5 Amp is drawn from the supply. (i) Sketch a schematic diagram of the setup. (ii) Calculate the mean de output voltage. Assume each power diode has a forward voltage drop of 1...

  • second attempt. need asap please 2-4 sentences summarizing the article 4 interesting quotes from the article...

    second attempt. need asap please 2-4 sentences summarizing the article 4 interesting quotes from the article and 4 points explaining each quote In the first few years of the new millennium, at the height of the boom in the offshore call-center business, Tata Consultancy Services, the Indian technology-services giant, made the counterintuitive decision to divest its call-center operations. Why? Because although outsourced call centers were a fast-growing piece of its current business, TCS’s leadership had come to believe that they...

  • First, read the article on "The Delphi Method for Graduate Research." ------ Article is posted below...

    First, read the article on "The Delphi Method for Graduate Research." ------ Article is posted below Include each of the following in your answer (if applicable – explain in a paragraph) Research problem: what do you want to solve using Delphi? Sample: who will participate and why? (answer in 5 -10 sentences) Round one questionnaire: include 5 hypothetical questions you would like to ask Discuss: what are possible outcomes of the findings from your study? Hint: this is the conclusion....

  • How can we assess whether a project is a success or a failure? This case presents...

    How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT