(Extra Credit) Lab 6c – Timer using Up Mode
14. Run your code.
Hopefully both LED’s are not blinking. The Red LED should toggle first, then the Green LED.
Do they both blink at the same rate? ____________________________________________
Why is that? _______________________________________________________________
15. Terminate the debugger and go back to your main.c file.
16. Modify one parameter of the function that configures CCR2, changing it to use the
mode:
TIMER_A_OUTPUTMODE_SET_RESET
Hint, if you haven’t already tried this trick, delete the last part of the parameter and hit
Ctrl_Space:
TIMER_A_OUTPUTMODE_ then hit Control-Space
Eclipse will provide the possible variations. Double-click on one (or select one and hit return)
to enter it into your code.
6 - 58 MSP430 Workshop - Timers