Question: Question 3: GPIO (30 pts) Solve without using interrupts! Explain the purpose of cash instruction' Apply DeSessaCX port configurations Dropcalx! Do not relx on default
Question 3: GPIO (30 pts) Solve without using interrupts! Explain the purpose of cash instruction' Apply DeSessaCX port configurations Dropcalx! Do not relx on default contigurations! 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)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
