hi...
paul helped me with a way to find the baud rate...
i used the following code
char n;int value = 0,temp;
char d1,d2,d3;
void main(){
TRISCbits.TRISC7 = 1;
TRISCbits.TRISC6 = 1;
while(1)
{
OpenUSART( USART_TX_INT_OFF & USART_RX_INT_OFF & USART_ASYNCH_MODE & USART_EIGHT_BIT & USART_CONT_RX & USART_BRGH_LOW,value );
putrsUSART("VALUE");
while(BusyUSART());
temp = value;
d1 = temp%10;
temp = temp/10;
d2 = temp%10;
temp = temp/10;
d3 = temp%10;
d1 = d1|0x30;d2 = d2|0x30;d3= d3|0x30;
putcUSART(d3);
while (BusyUSART());
putcUSART(d2);
while (BusyUSART());
putcUSART(d1);
while (BusyUSART());
putrsUSART("\n\r");
while (BusyUSART());
value++;
if (value==500){value = 0;CloseUSART();Delay10KTCYx(100);}
}
}
the value turned out to be 77 for 2400 baud rate