failure at RXINT1
Posted: Fri Sep 30, 2016 11:28 pm
Hello
I belive the UART channel 2 interrupt have a failure.
CPU 32MX250
UART channel 2
the following code causes the failure:
IEC1bits.U2RXIE = 1;
IPC8bits.U2IP = 1; ==> this command code belongs to the UART cannel 1. The wrong code is IPC9bits.U2IP = 1;
IPC9bits.U2IS = 0;
INTCONbits.MVEC = 1;
__builtin_mtc0(12,0,(__builtin_mfc0(12,0) | 0x0001));
I belive the UART channel 2 interrupt have a failure.
CPU 32MX250
UART channel 2
the following code causes the failure:
IEC1bits.U2RXIE = 1;
IPC8bits.U2IP = 1; ==> this command code belongs to the UART cannel 1. The wrong code is IPC9bits.U2IP = 1;
IPC9bits.U2IS = 0;
INTCONbits.MVEC = 1;
__builtin_mtc0(12,0,(__builtin_mfc0(12,0) | 0x0001));