wondering if you played with the priority interupt system on the k40 it self for levels of each timer / etc as a way of not requiring the dt ints high / low priorty includes

Code:
' ------------------ Interupt Priority settings  ------------------------------ 
 ' Note: only services in use will show/ list the Interupt priorty setting 
 ' 1 = High Priority , 0 = Low Priority 
'    INTCON.5 = 0             ' Enable/ Disable priorty levels on interupts  ( default = 0)
      
'    IPR0.5 = 0               ' TMR0IP - Timer 0 POR = 1
'    IPR0.4 = 1               ' IOCIP  - IOC Interupt Priority  POR = 1 
    
    
'    IPR1.1 = 0               ' ADTIP  - ADC Threashold Interupt  POR = 0  
'    IPR1.0 = 0               ' ADIP   - ADC Interupt Priority  POR = 0    
       
'    IPR3.7 = 0               ' RC2IP  - usart2 RX Interupt Priority  POR = 0
'    IPR3.2 = 0               ' RC2IP  - usart2 TX Interupt Priority  POR = 0
    
'    IPR4.0 = 0               ' TMR1IF - Timer1 Overflow flag POR = 0 - timer 1 used for elapsed counter  ( set high priorty ?) 
'    IPR4.1 = 0               ' TMR2IF - Timer2 Overflow flag POR = 0 - timer 2 used for HWPWM - P10 dimmer control