Question: Suppose, we want to write a program for blinking a red LED connected to the pin P1.0 with a period of 0.4sec (ON time 0.2sec
Suppose, we want to write a program for blinking a red LED connected to the pin P1.0 with a period of 0.4sec (ON time 0.2sec and OFF time 0.2sec). We need to use the ACLK clock with 32768 Hz frequency for this purpose without dividing it (i.e. dividing by 1). We want to run the timer_A in up mode and clear TAR at the start.
a. How the TACTL register should be configured? (write the code in C)
b. What should be the value of TACCR0?
this question should be done in C language. register is TACTL which includes TASSEL, ID, MC, TAIFG, etc
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
