Question: ! Use only MSP430 Instruction Set please ! Question 3: GPIO (30 pts) Solve without using interrupts! Explain the purpose of each instruction! Apply necessary

 ! Use only MSP430 Instruction Set please ! Question 3: GPIO

! Use only MSP430 Instruction Set please !

Question 3: GPIO (30 pts) Solve without using interrupts! Explain the purpose of each instruction! Apply necessary port configurations properly! Do not rely on default configurations! a) Read the button on P1.3 with pull up resistor mode to detect double clicks. Toggle the led on P1.0 if a double click is detected. (15 pts) Important: Even the fastest and the slowest clicks must be detected! Your code must work regardless of the duration of clicks! Single click means press-down and then release. b) Solve (a) by using R15 as a duration parameter (0x0000 to 0xFFFF) for the maximum period allowed between the beginning and the end of a double click. A longer double- click period should be allowed for an higher R15 value. (15 pts) Question 4: Interrupts (15 pts) Explain the purpose of each instruction! Apply necessary port configurations properly! Do not rely on default configurations! Solve the question (3.a) by using interrupts and ISR. Question 3: GPIO (30 pts) Solve without using interrupts! Explain the purpose of each instruction! Apply necessary port configurations properly! Do not rely on default configurations! a) Read the button on P1.3 with pull up resistor mode to detect double clicks. Toggle the led on P1.0 if a double click is detected. (15 pts) Important: Even the fastest and the slowest clicks must be detected! Your code must work regardless of the duration of clicks! Single click means press-down and then release. b) Solve (a) by using R15 as a duration parameter (0x0000 to 0xFFFF) for the maximum period allowed between the beginning and the end of a double click. A longer double- click period should be allowed for an higher R15 value. (15 pts) Question 4: Interrupts (15 pts) Explain the purpose of each instruction! Apply necessary port configurations properly! Do not rely on default configurations! Solve the question (3.a) by using interrupts and ISR

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!