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/EK-TM4C1294XL: monitoring trigger pulse which is feed asan input

Part Number: EK-TM4C1294XL

Tool/software: Code Composer Studio

Hi all,

Currrently iam working with tiva TM4C1294XL ,where i need monitor trigger whose time period is 2 sec which is feed as input to the controller.

I need to check the trigger input at micro controller side wheither it is of 4 sec or not for taking necessary action .

Can any please help me regarding this issue , tell me how to proceed further.

Thank you

Regards,

Prudhvi

  • If I understand your question, you have a signal that should occur every 2 seconds. You want to monitor that signal, and if it fails to occur after a period of 4 seconds, you take some action. Do I understand correctly?

    If this is the case, I suggest you use a timer and set it for a "one shot" event with a period of 4 seconds. Then you monitor the external trigger. When the external trigger occurs, you reload the timer with the 4 second value. That way, if the external event never takes longer than 4 seconds to appear, the timer should not expire. If the timer does expire, it can generate an interrupt that can cause your software to take the necessary action.