Question: Explain the operation of the following MSP432 program void main(void) { int i; WDT_A->CTL = WDT_A_CTL_PW | WDT_A_CTL_HOLD; P1DIR |= BIT0; P1OUT |=BIT0; for(i=1000000; i>0;
Explain the operation of the following MSP432 program
void main(void)
{
int i;
WDT_A->CTL = WDT_A_CTL_PW | WDT_A_CTL_HOLD;
P1DIR |= BIT0;
P1OUT |=BIT0;
for(i=1000000; i>0; i--);
P1OUT &= ~BIT0;
while(1);
}
Remove the | WDT_A_CTL_HOLD constant. Why doesnt the operation change?
Try replacing the WDT_A_CTL_HOLD constant with WDTIS_x for x of various values
Observe what happens in each case. Is it what is expected?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
