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.

CCS/MSP430F6459-HIREL: Timer0 capture

Part Number: MSP430F6459-HIREL
Other Parts Discussed in Thread: MSP430F6459, MSP430WARE

Tool/software: Code Composer Studio

Hi,

we're using MSP430f6459 for one of the application. for the application we've to monitor the frequency signals coming from the external sensors. the sensor data we're processing with some external circuits and given to the Controller. In one test condition we've to test the health of the external circuit. for this we've to feed the internally generated frequency signal to the external circuits using a frequency switcher. 

In that case we've to generate 7kHz & 40Hz PWM Signals and capture the same PWM signal to Capture pins of the same timer.

My question : Is it possible to generate PWM signal and capturing the frequency in Same Timer. If possible kindly let us know the suggestions & some examples.

Thank you,

With regards,

Venkata Ramana

  • Venkataramanu,
    This questions can be better answered by the MSP team.
    I will re-direct it. You should be reply soon.
    Regards,
    Wade
  • Venkata,

    If you need to both generate and capture the PWM signals at the same time, this is not possible with a single timer. You'll need to use at least two. One timer would be setup in compare mode to generate the PWM signals and the other would be setup in capture mode to measure the frequencies.

    Best regards,
    Caleb Overbay
  • Thank You sir,

    But is it possible to capture multiple frequency signals with different frequency's like 0-14Khz, 40-77Hz, and 0-6Hz with same timer.

    if possible kindly give some examples for low frequency 0 - 6 Hz (here frequency vary 0.1HZ)

    with regards,

    Venkata Ramana

  • Hi Venkata,

    It is possible to measure different frequencies with the same timer and there is no difference between measuring a low frequency vs. a high frequency. You'll just need to ensure that the clock source for your timer is fast enough to count between consecutive input signal edges.

    You can find examples of how to accomplish this in MSP430Ware via the TI Resource Explorer. Here is an example you may find helpful:
    dev.ti.com/.../

    Even though the example is for a different target device, the concepts still apply to the particular device you're working with.

    Best regards,
    Caleb Overbay