Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

facing problem when interfacing two dspic33 with the help of two uart

Status
Not open for further replies.

RAVINDRA JADHAV

Newbie level 3
Joined
Jun 1, 2011
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,300
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

}
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top