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/TMS320F28335: Timer0 interrupts

Part Number: TMS320F28335

Tool/software: Code Composer Studio

Hi

Using software prioritized interrupts levels, how can I manage the prologue and epilogue of timer0 interrupt procedure? since is not connected to the PIE?

Regards

  • Luca,

    Can you confirm that you are asking how to use the TIMER when the interrupt is not enabled?

    If this is the case, you would poll on the TCR.TIF flag to identify when the TIMER period has completed, and you would reset the flag state by writing 1 back to the field as described in the TRM:

    -Tommy

  • Hi Tommy

    Sorry I excahnge Timer0 with Timer1, I would like to understand that while for Timer0 I can write:

     // Set interrupt priority:
     IER |= M_INT1;
     IER &= MINT1;       /* Set "global" priority    */
     PieCtrlRegs.PIEIER1.all &= MG1_7;  /* Set "group"  priority    */
     PieCtrlRegs.PIEACK.all = 0xFFFF;  /* Enable PIE interrupts    */
     __asm("  NOP");
     EINT;

        timer_proc();

        // Restore registers saved:
     DINT;
     PieCtrlRegs.PIEIER1.all = TempPIEIER;

    what can I do for Timer1 interrupt routine in software prioritized environment?

    Regards

  • Luca,

    I am not deriving enough information from the term "software prioritized environment" because it is not a native feature of the device.  Please elaborate on what this means to you and how it is implemented in the system.

    -Tommy

  • Hi Tommy

    I want only say that I'm using software prioritized interrupt, in this situation each procedure has it's prologue and epilogue that allows to manage the interrupts that are re enabled or not. My question is related at preocedure prologue for timer1 interrupt that is not connected to the PIE.

    Regards

  • Luca,

    If you are not using the PIE, then you would only need to manage the peripheral-level status logic. In this case, you would want to clear the TIF field after it is set by the TIMER.

    -Tommy