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
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.
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