Anyone can please help me to sort out the problem,
actually i want to interface two dspic33 micro controller with the help of UART,
actually problem is that master dspic33 UART1TX can communicate with slave dspic33 UART1RX but not with the UART2RX ,
is their any setting have to do for communication between UART1 and UART2 of two different dspic33?:!::!:
here is the code, this interrupt occure when slave set the master pin(for interrupt detection ) high and that string received on master pic
wich is following
void __attribute__((interrupt, no_auto_psv)) _INT1Interrupt(void)
{
char st[9];
for (x=0;x<10;x++)
{ //ddelay();
while(U2STAbits.URXDA!=1);
ser_delay() ;
st[x]= U2RXREG;
}
st[9]='\0';
for(k=0;k<10;k++)
{
ser_delay() ;
U1TXREG = st[k];
}
IFS1bits.INT1IF = 0; //Clear the INT1 interrupt flag or else
//the CPU will keep vectoring back to the ISR
}