Question: 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
pic32mm0064gpl036. 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 0.5 second.
Use PortTest3.S as a template because it contains the required configuration for switches and LEDs.
Use the delay loop in PortTest1.S to implement 0.5 sec period. Note that you can keep two delay loops, one for 0.5 sec and the other for switch debouncing, or use a single delay loop with a delay amount as an argument.
Pressing S2 at any point should toggle whether the LEDs are blinking. Pressing the switch the first time pauses blinking; pressing it again restarts/resumes blinking. When paused, one or both LEDs may be off, depending on the mode of operation described below.
Pressing S1 should change between three modes of operation, which are:
LEDs blinking simultaneously (initial)
Only LED1 blinking, with LED2 paused (either on or off)
Only LED2 blinking, with LED1 paused (either on or off)
 Heres another mips question. The board im using is a pic32mm0064gpl036.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!