Advanced Member level 2
please i need help, i have an msp430 mmicrocontroller, that have only two CCR ( CCR0 & CCR1), i wish to output two PWM signal with same frequence but without the same duty cycle, is this possible ? and how can i do this ?
•Timer / PWM (Updated 2/22/08)
◦Timer B is used to generate pulse-width modulated waveforms.
◦In the project files, Timer B output TB2 is used to output a PWM waveform which appears on pin P4.2. The duty cycle of this waveform is controlled by writing to the global variable D0.
◦In the project files, Timer B output TA3 is used to output a PWM waveform which appears on pin P4.3. The duty cycle of this waveform is controlled by writing to the global variable D1.
◦See the PWM tutorial for additional information on using the timer as a pulse-width modulator.
◦The project files were updated on 2/22/08 to reflect the above changes, fixing a bug that occured when the timer A duty cycle was set to zero. You can download the new project files, paste your existing code into the main.c file, and move your PWM output connections to pins P4.2 and P4.3, and your code should work.