Question: 1 0 . 1 Run the following C program. Initially the red LED ( connected to P 1 . 6 ) is on and the
Run the following C program. Initially the red LED connected to P is on and the green LED connected to P is off. The LEDs toggle in a certain periodic time interval. #include #define GREEN BIT #define RED BIT void mainvoid WDTCTLWDTPWWDTHOLD; PDIRGREENRED; POUTRED; BCSCTLLFXTS; VLO BCSCTLDIVA; Divided by TACCTLCCIE; CC interrupt enable TACTLTASSELIDMCTACLR; ACLK Div by Up mode TACCR; enableinterrupt; while; #pragma vector TIMERAVECTOR interrupt void TIMERvoid POUTGREENRED; a Find the periodic time interval from the C code. b Modify the C program to increase the time interval to 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
