tag:blogger.com,1999:blog-494791564426013646.post3290354291792807334..comments2024-03-28T02:36:30.653-05:00Comments on HAnix-diy - Public: MSP430 - generating a PWM signalTheFwGuyhttp://www.blogger.com/profile/07741593420288261846noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-494791564426013646.post-11008389548263844132015-11-23T11:37:30.123-06:002015-11-23T11:37:30.123-06:00It really depends about what you have and your nee...It really depends about what you have and your needs. Yes, you can generate a PWM using the Timer, but if you have only 1 timer and you need more PWM signals, or you need to use the timer for also something else, then the interrupt drive solution can be handy.<br />And yes, the "ideal" PWM generator is hardware, i.e. using the Timer. The interrupt driven solution can have issues if you need to have multiple PWM generators and other timer operations.<br />Often is matter to compromise in order to better use the resources you have.<br /><br />In some latest projects I choose to use a PWM generated by the timer, but I'm using chips with more than 1 timer.TheFwGuyhttps://www.blogger.com/profile/07741593420288261846noreply@blogger.comtag:blogger.com,1999:blog-494791564426013646.post-11101020497511055192015-11-23T05:49:03.510-06:002015-11-23T05:49:03.510-06:00I like the idea of using a timer to fire off the i...I like the idea of using a timer to fire off the interrupt routine, but wonder if this method might compromise performance of the pwm output on the same basis as you mentioned earlier. A pure hardware-driven pwm appears to be available in the MSP430F series. Perhaps in this example you did not have that option?K1MGYhttps://www.blogger.com/profile/16390740057504583816noreply@blogger.com