using STDM 102 ARM®-based 32-bit MCUs, write an assembly routine to turn on one of the user LED’s.  You have to configure the I/O lines first. This should be done in a subroutine.  Now that you can control the LED, write a routine to blink the LED. HINT: toggling an LED in code happens very quickly!! Use a delay routine to leave an LED on long enough to see it light up. At the end of this phase, have your code blinking the LED off and on in a loop 10 times. Then  Then write a routine such that when the user presses the switch down, the LED will come on. When the user depresses the switch the light will turn off. This is called polling the state of the switch.

Electric Motor Control
10th Edition
ISBN:9781133702818
Author:Herman
Publisher:Herman
Chapter22: Sequence Control
Section: Chapter Questions
Problem 6SQ: Draw a symbol for a solid-state logic element AND.
icon
Related questions
Question

using STDM 102 ARM®-based 32-bit MCUs, write an assembly routine to turn on one of the user LED’s. 

You have to configure the I/O lines first. This should be done in a subroutine. 

Now that you can control the LED, write a routine to blink the LED. HINT: toggling an LED in code happens very quickly!! Use a delay routine to leave an LED on long enough to see it light up. At the end of this phase, have your code blinking the LED off and on in a loop 10 times. Then 

Then write a routine such that when the user presses the switch down, the LED will come on. When the user depresses the switch the light will turn off. This is called polling the state of the switch.

Expert Solution
steps

Step by step

Solved in 5 steps

Blurred answer
Knowledge Booster
Logic Gate and Its Application
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Electric Motor Control
Electric Motor Control
Electrical Engineering
ISBN:
9781133702818
Author:
Herman
Publisher:
CENGAGE L