Hi everyone,
Using MSP430F5529 Launchpad, I am trying to use 2 push buttons at P1.1 and P2.1 as inputs to produce PWM outputs with varying Duty Cycles. The Duty Cycle (TA0CCR2) is set globally to 100 and the Period (TA0CCR0) to 1000-1 at the beginning of the program. By pressing P1.1 I want the Duty Cycle (DC) to increment by 10% of the period until it reaches to the value of the Period. Similarly by pressing P2.1 I want the DC to decrement by 10% until it reaches to 0.
When I run the code, I only get the initial PWM with DC=100 and it seems the interrupts do not work.
Please review my code and let me know where my problem is.
Thanks very much,