WHAT IS THE NEED OF PWM GENERATION AND HOW WE GENERATE PWM PULSES USING MSP 430 MICRO CONTROLLER.WHICH MSP 430 IS GOOD FOR PWM GENERATION.
you can use any MSP430 for generating a PWM!
Have a look at the code examples (http://focus.ti.com/mcu/docs/mcuflashtools.tsp?sectionId=95&tabId=1538&familyId=342); you will find lots of examples there.
chandrika surapaneniWHAT IS THE NEED OF PWM GENERATION
PWM (pulse width modulation) is a simple way of transmitting a quasi-analog (actually a multi-level digital value) through a single digital line. Usually the pulse frequency is fixed (depending on the application) while the ratio of high- and low level is variable and determines the 'value'.
The two main advantages of PWM are: 1) the signal is distortion-resistant. Since it is a digital signal, it can be easily amplified and reconstructed, which is important in a noisy environment. And 2) it can be easily converted into an analog voltage by using a low-pass filter. THis low-pass filter may be the inductance of a motor where the PWM triggers the power lines of the motor through a transistor, or it may be the eye of someone lookign at an LED that is driven by the PWM signal (depending on the high-to-low ratio, or Duty Cycle, the LED appears brighter or darker).
chandrika surapaneniHOW WE GENERATE PWM PULSES USING MSP 430 MICRO CONTROLLER
But the usual way to do it is by using the CCR (Capture-Compare-Registers) of the MSP timers. The basics: The timer is set to count up with a certain clock frequency. One CCR (CCR0) is set to a certain maximum tiemr value. When this is reched, the timer will start from 0 again. The other CCRs of a timer can be set to a certain value between 0 and CCR0. When the timer crosses this value, the CCR hardware will set (or clear) the assigned output pin while when the timer is reset to 0 by CCR0, the hardware will clear (or reset) the output pin (using the CCRs set/reset or reset/set mode).
chandrika surapaneniWHICH MSP 430 IS GOOD FOR PWM GENERATION.
The product selector lets you check which devices have how many timers with how many CCRs.
I'm currently (June 30th) lagging about 600 threads behind in the forum. I try to catch up, but don't expect an answer in less than about 4 weeks.Before posting bug reports or ask for help, do at least quick scan over this article. It applies to any kind of problem reporting. On any forum. And/or look here.If you cannot discuss your problem in the public, feel free to start a private conversation: click on my name and then 'start conversation'. But please do so only if you really cannot do it in a public thread, as I usually read all threads. And I prefer to answer where others can profit from it (or contribute to it) too.
In reply to Jens-Michael Gross:
Nicely put Jens. Yes the PWM output is used in many applications for example it may be used to drive a stator motor etc. I had a requisite of generating 2 PWM 180 degree out of phase to drive a stator. And as I was using only a msp G series I had just a single timer to play with due to which in such situation u need to rely on generating the pulses manually by toggling the 2 output pins by loading the half period duration in a timers or SPI tiimers.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.