Question: 1 0 . 1 Run the following C program. Initially the red LED ( connected to P 1 . 6 ) is on and the

10.1 Run the following C program. Initially the red LED (connected to P1.6) is on and the green LED (connected to P1.0) is off. The LEDs toggle in a certain periodic time interval. #include #define GREEN BIT0 #define RED BIT6 void main(void){ WDTCTL=WDTPW|WDTHOLD; P1DIR=GREEN+RED; P1OUT=RED; BCSCTL3|=LFXT1S_2; //VLO BCSCTL1|=DIVA_3; //Divided by 8 TA0CCTL0=CCIE; //CC interrupt enable TA0CTL=TASSEL_1|ID_2|MC_1|TACLR; //ACLK, Div by 4, Up mode TA0CCR0=3750; _enable_interrupt(); while(1); } #pragma vector = TIMER0_A0_VECTOR __interrupt void TIMER(void){ P1OUT^=GREEN+RED; }(a) Find the periodic time interval from the C code. (b) Modify the C program to increase the time interval to 1 minute. (c) What is the maximum time interval?

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 Programming Questions!