Answered step by step
Verified Expert Solution
Link Copied!

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
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)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Power Of Numbers In Health Care A Students Journey In Data Analysis

Authors: Kaiden

1st Edition

8119747887, 978-8119747887

Students also viewed these Databases questions

Question

Which form of proof do you find most persuasive? Why?

Answered: 1 week ago