Sorry for my late reply, i worked on other projects.
If I have read and understood that correctly, then that is NOT how to do it.
I understand what you mean but no, i don't use my timer like this. It's just because, at the moment, i cannot use differents interruptions at the same time so i disabled all interruptions and i use my timer to check ADC for example.
This is my interruptions code :
void __interrupt() INTERRUPT_InterruptManagerHigh (void)
// interrupt handler
if(INTCONbits.TMR0IE == 1 && INTCONbits.TMR0IF == 1)
else if(INTCONbits.INT0IE == 1 && INTCONbits.INT0IF == 1)
else if(INTCON3bits.INT1IE == 1 && INTCON3bits.INT1IF == 1)
else if(PIE1bits.TX1IE == 1 && PIR1bits.TX1IF == 1)
else if(PIE1bits.RC1IE == 1 && PIR1bits.RC1IF == 1)
//else if(PIE3bits.TX2IE == 1 && PIR3bits.TX2IF == 1)
else if(PIE3bits.TX2IE == 1 && PIR3bits.TX2IF == 1)
else if(PIE3bits.RC2IE == 1 && PIR3bits.RC2IF == 1)
else if(PIE2bits.LVDIE == 1 && PIR2bits.LVDIF == 1)
TMR0 is my timer that i use in my code.
For EUSART, i just use the first one, not the second.
I need this EUSART to etablish a communication between my PIC 18F45K22 and a Bluetooth module.
To be honest, i tried to use differents interruptions few months ago and i didn't retry yet.
Actually, i succeeded to use all without interruptions but i think it can be better for the communication between the 2 components if i use interruptions.
If i post my configs code it's because when i tried, i tried to use them independently and i succeeded but if i have two of them, or 3, it doesn't works.
My function is "interrupt manager high" but all is "high", maybe i can try to put UART in low interruption.
post edited by xSkyMicro - 2019/05/22 00:52:25