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!
- 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
Get step-by-step solutions from verified subject matter experts
