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.

TM4C1294 Generate an interrupt every 100ms

I am trying to generate an interrupt every 100ms and it does not seem to be working. I have attached me code below. What am I doing wrong?1854.TM4C1294_Timer.zip

  • Hi Andrew,

    You don't configure the Timer to any mode. For what you need you want it in TIMER_CFG_PERIODIC

    Also since the TimerIntClear takes a few cycles to happen, it's advised to be called at the begining of the interrupt handler.

  • Hello Luis,

    Thank you for your help. I applied your suggestion but I am still not getting the interrupt to trigger. I have attached my updated code below. Did I implement your suggestion correctly?

    1212.TM4C1294_Timer.zip

  • Hi Andrew,

    I only noticed now, you forgot  SysCtlPeripheralEnable(SYSCTL_PERIPH_TIMER0);

  • Most always - failing to first, "SysCtlPeripheralEnable()" - and then placing a call to that peripheral - causes a hard fault. 

    Poster reported only, " does not seem to be working."   While that's surely true - description that empty/vague is essentially meaningless.  Of course poster's are frustrated - yet imprecise communication does not best serve their interest...

    Report of entry into Fault ISR - immediately upon execution of that Timer call - would have eased/speeded Luis's diagnosis.