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.

Signal Generation using Msp430g2553

Hello friends as I am rookie in this field and don't know much about the controller programing . I would like to ask is it possible to generate 1Khz of signal within 50hz .Please have a look on the waveform attached with this post.Is it possible to generate such kind of waveform??? If yes how and which registers will help me???Thanks for your valuable time.

  • Yes, you can do it using timer. So you need to seek information about timer usage- users guide and examples and perhaps forum threads.
  • Hi,

    You can refer the sample code for MSP430G2XX3 , which is available in MSP430 page. In that they have given few examples for TIMER module. You will get idea from that.

    http://www.ti.com/tool/msp-exp430g2#Technical Documents      - Under softwares tag you can find example code

  • It’s possible but not trivial. The most precise way would be using an external logic gate. One timer generates a 1kHz signal and one a 50Hz signal. The two are joined using the external gate. After initial configuration, this will work without any further software activity.
    Also, you can generate a 1kHz signal with the timer, and on each pulse you trigger an interrupt. You count the interrupts and switch the output on or off depending on the count. This way is to be preferred if you only need to activate the output on certain 50Hz intervals (like encoding ‘0’ and ‘1’ bits on a powerline, where ‘0’ means no 1kHz signal and ‘1’ means 1kHz signal on a 50Hz half-wave. X-10 works this way. (but uses 50kHz IIRC)

**Attention** This is a public forum