Question: 1) In this question you shall be providing the C code for an AVR based Door Controller. The functionality is provided below: a) A

1) In this question you shall be providing the C code for

1) In this question you shall be providing the C code for an AVR based Door Controller. The functionality is provided below: a) A door sensor is connected to Pin 0 of Port C, and an LED is connected to pin 1 of Port C. A LOw value from the door sensor signals that door is open. Your controller should monitor the door sensor such that when the door opens, it turns on the LED. The LED switches OFF immediately as the door is closed. The name of this LED is OPEN_LED. b) Your Door Controller should also keep a record of count of the number of times the door is opened. c) When it detects that door has been opened X" number of times it switches ON an LED connected to Pin 2 of Port C. The name of this LED is DOOR_Limit_LED. Note: X - 60 if your Roll No. is ODD numbered & 70 if your Roll No. is EVEN numbered. d) There is a push button connected to Pin 3 of Port C. When you press this button, the door openin count is reset to ZERO. Marks Distribution [4+16+8 = 28 Marks] Block Diagram . Correct Functionality of a,b,c & d .. 16 Marks Use of Interrupts and Timers . 04 Marks 08 Marks

Step by Step Solution

3.38 Rating (167 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

include include include include include remoteh unsigned c... 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 Programming Questions!