Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A 3 : Signals Schematic Running Modes Mode 0 Red LED blinks every 1 / 2 a second ( using execution loop ) Mode 1
A: Signals
Schematic
Running Modes
Mode
Red LED blinks every a second using execution loop
Mode
Red LED blinks every second using execution loop
Green LED blinks every second using timer & interrupt
Mode
Red LED turns off
Green LED blinks every second using timer & interrupt
Blue LED blinks every second using timer & signal
Mode
Red LED stays off
Green LED turns off
Blue LED blinks slower, every second using timer & signal
Objective
For this assignment, you should attempt to recreate the RGB LED activity listed above with the method inside parenthesis. Pressing the button on the Blacktop should advance to the next mode advancing from should go back to and pressing the side button on the Launchpad should step back to the previous mode moving backward from should set the mode to
Because you are using the buttons as interrupts, the completed program will have some initialization, execution loop and three interrupts: one for TIMERAVECTOR, one for PORTVECTOR and one for PORTVECTOR.
Tips
Do not recommend setting hardware parameters in the execution loop based on what mode you are in for instance, checking to see what mode you are in every loop iteration and enabling interrupts for the timer if in Mode or otherwise disabling interrupts if in Mode or
This is a waste of time. You should set hardware parameters when changing modes.
Timers Map
Here is a map of the two timer modules and their relevant "registers":
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started