Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Heres another mips question. The board im using is a pic 3 2 mm 0 0 6 4 gpl 0 3 6 . So ive
Heres another mips question. The board im using is a
picmmgpl So ive gotton the leds to flash hurray. However i cant get the on board switches to change the function. As always thankyou. Also syscall cant be used and branch instructions have to be layed out well. Also can each step be explained clearly plz As that helps me alot on whats exactly going on
the attached photo has the code templates aswell.
The problem itself:
Initially, both LEDs blink simultaneously, changing approximately every second.
Use PortTestS as a template because it contains the required configuration for switches and LEDs.
Use the delay loop in PortTestS to implement sec period. Note that you can keep two delay loops, one for sec and the other for switch debouncing, or use a single delay loop with a delay amount as an argument.
Pressing S at any point should toggle whether the LEDs are blinking. Pressing the switch the first time pauses blinking; pressing it again restartsresumes blinking. When paused, one or both LEDs may be off, depending on the mode of operation described below.
Pressing S should change between three modes of operation, which are:
LEDs blinking simultaneously initial
Only LED blinking, with LED paused either on or off
Only LED blinking, with LED paused either on or off
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