82 READING A SWITCH WITH PORT A AND DRIVING A RELAY FOR 1 MINUTE OBJECTIVE: Read
ID: 3754945 • Letter: 8
Question
82 READING A SWITCH WITH PORT A AND DRIVING A RELAY FOR 1 MINUTE OBJECTIVE: Reading a switch that are connected to port A and use the switched condition from the switch to drive a relay for a time of I minute using a loop. REFERENCE: COMPONENTS:None EQUIPMENT: Notes on the PIC microcontroller Development board INSTRUCTIONS: I. Use the switch on port A, input RA2 and the relay on port RA3. 2. Write a program that would use the switch at RA2 to switch on a relay on port A, RA3. The relay must be on for a duration of 1 minute. You must use a loop to generate the 1 minute time interval. No interrupt may be used to generate the timing loop When you finisbed writing the code using tdhe editor, make sure that the program is saved on your 4. stify with the name: RELAY ASM 5. Show your circuit design for the practical on the given page. QUESTIONS (a) Which registers did you have to initialize for the input and output ports ? (b) Explain the operation of the loop to generate the I minute time delay. (c) Show your calculations to deternine the values that must be used in the loop. (d) Were any flags set in the operation of the program ? What flags were affected ? (e) Show the fBow diagram for the program. (t) Show your program listing with comments. (8) Why can we not use port A, input RA4 to drive the relayExplanation / Answer
a) regiregi 32 we use
b) reg 36
Desktop Application development we can get a chance to win the game is at the end of the most important thing is that the only thing I can can be used to be a good good to hear from you soon as I have a great time to LearN more about the same time as a result of the most important thing is that the only thing I try to get the best treatment of the most important thing is that
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.