Question: Note: Answer this question by using MSP430 Assembly. Question 3: GPIO Solve without using interrupts! Explain the purpose of each instruction! Apply necessary port configurations

Note: Answer this question by using MSP430 Assembly.

Question 3: GPIO

  • Solve without using interrupts!
  • Explain the purpose of each instruction!
  • Apply necessary port configurations properly! Do not rely on default configurations!

  1. 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.

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.

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.

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!