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.

MSP430FR5728: Internal function to introduce delay or check the time elapsed

Part Number: MSP430FR5728

Hi Team,

I am developing an application first time based on MSP430FR5728.

I have a few questions related to the I/O interrupt, Timer and delays.

In the application, I need to monitor the interrupt for 5 sec and reset my variables.

 I have configured and implemented functions in such a way that, for external instance, I/O interrupt will be generated.

Kindly addresses my below questions:

  1.  Once an interrupt is generated can I monitor it for a continuous 5 sec using PxIFG flags.?
  2.  Is there any internal delay that can be used for monitoring 5 sec ?
  3.  What are the other possible way I can use to get the 5 sec delay or to check the time elasped?

Awaiting for th response, Thankyou

  • I think you want to monitor the IO turns to other state for 5 second.

    If so, you need to use timer.

    I would advise you first use the IO interrupt to drive the timer to count. Then use the timer interrupt to check the IO state then reset your variables.

**Attention** This is a public forum