how to use PWM in msp430G2553??
Find more posts tagged with
Submitted by yogeshnand on Fri, 03/18/2016 - 10:37.
sir below is my sample program.. thanking you.
Submitted by pete on Wed, 03/30/2016 - 07:28.
Since TA0 is the only timer on this chip, you need to share it with the PWM and control interrupt generation. To do that the periods must agree. The easiest way is to choose a control rate, generate code, and look at the value VisSim assigns to TA0CCR like so:
TA0CCR0 = 0x3e80; // Timer Period
Then convert 0x3e80 to decimal (16000), and use that as the PWM period. See attached.
Submitted by yogeshnand on Wed, 03/30/2016 - 14:55.
thanks for your reply. but sorry to say it showing the same error. same way first i generate code , took values of TA0CCR , convert ed into decimal and used this value for PWM period. but it showing the same error. ''Warning!PWM causes timer TA0 period conflict'.
Submitted by imatalon on Wed, 03/16/2016 - 18:51.
The PWM block expects a scaled integer (fixed point) 1.16 input. Have you converted the block to 1.16 using the convert block?