Course Solutions Uncategorized (Solved) : Code Used Increment Decrement Led Counter Using Switch S1 Msp432 P11 Increment S2 External Q34743744 . . . .

(Solved) : Code Used Increment Decrement Led Counter Using Switch S1 Msp432 P11 Increment S2 External Q34743744 . . . .

 

Below is code used to increment and decrement an LED counterusing a switch (S1) on the MSP432 P1.1 toincrement; and (S2) externally connected to P5.0 andP5.2 to decrement the led.

However, when pressing the increment button, it only works if S2is also pressed at the same time. What might be the problem here?Need help fixing this code or outlining any issues. THANK YOU!

#include “msp.h”

// Global variable used to hold the current state
char currentState;

// Global variable used to hold the number of pushes
long int pushes;

void countDown(void);
void countUp(void);

/*
* Initialization function runs once before the state machinewhile(1) loop.
*/
void init(void)
{
WDT_A->CTL = WDT_A_CTL_PW | WDT_A_CTL_HOLD; //

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : Ihok Rpo E Get Ema Fnding Hones Get Anent Street Da Y Ancil Decided Toprkritue Spending St Q28023157 . . . .(Solved) : Ihok Rpo E Get Ema Fnding Hones Get Anent Street Da Y Ancil Decided Toprkritue Spending St Q28023157 . . . .

Please write the code to run this program in Java<br/><img src="https://media.cheggcdn.com/media%2Fdbe%2Fdbede11a-0d17-4503-a727-ebbb7f20f3c7%2Fimage" alt="ihok rpo e will get ema fnding, and hones with ?will get more anent on in the street. This