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.

Energia source code for timer initialization for MSP430F5529 launch pad

Other Parts Discussed in Thread: ENERGIA

Hello everyone,

I had acquired both the ECG and PPG signals. i need to calculate pulse transit time(PTT) between ECG R wave peak and PPG peak. To calculate PTT am using the timer of MSP430F5529 microcontroller. Am setting the threshold value for ECG signal and attaching the interrupt to rising edge of the PPG signal. Timer starts checking for R wave peak of ECG signal, once the R wave peak goes above threshold level, timer should start and simultaneously checks for interrupt. if intrrupt occurs, the timer should stop. the value in timer is converted to milliseconds


Could any please help me to write the source code for PTT calculation in Energia. Am using MSP430F5529 LaunchPad

i had attached the image of PTT calculation

  • Hello,

    Energia does not contain any specific APIs for initializing timers, therefore you should refer to the device's Code Examples package to find applicable timer examples (which can be used in the Energia IDE). These code examples will also help you figure out how to use the Comp_B peripheral to decipher when your analog signals have crossed the threshold, thereby entering the respective ISR to stop or start the timer: www.ti.com/.../slac300

    The 43oh forum is a great resource for Energia-specific questions: forum.43oh.com/.../

    Regards,
    Ryan

**Attention** This is a public forum