This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
im using msp430g2553 code examples as sample code for generation of pwm.After i read the datasheet of msp430g2553 pwm is generated ly on compare mode(CAP = 0 in CCTL0 REGISTER) .my doubts on default CCTL0 value is 0x0164h(CAP = 1) i dont see any settings on compare mode in examples.anyone can clarify my doubts as soon as possible.........
Hi,
If you are talking about PWM, You should always consider two things here. 1. frequency of the PWM 2. Duty cycle of the PWM. CCTL0 is mostly used for PWM o/p only in continuous mode(I think).
Usually PWM is generated in this way-------------
1.SET TxCTL for PWM
2.CCR0 for PWM period
3.CCR1 for duty cycle//you will get PWM on this pin.
so, I think you were referring to the example where PWM is generated on CCTL1. if not just the post the code here.
Regards,
sri.
**Attention** This is a public forum