i have one master processor (dsPIC30F6014A). There are 5 Sleave processors.(4 for dsPIC30F4013, 1 for PIC16F883.)
I communicated with those for dsPIC. But I could not communicate with the one for PIC.
I use the command: RS485Slave_Init and RS485Master_Init...
I am using the UART1_Init (9600) command for those for DsPIC. And there is no problem.
But there is a problem with the PIC. The program is going to UART interrupt. But the receive data are not true.
Is there a different method?
Note: Master MCU(dsPIC30F6014A) Freq= 60Mhz internal,
Sleave dsPIC304013 MCUs Freq = 60Mhz internal,
Sleave PIC16F883 MCU Freq = 8Mhz internal
UART2_Init(9600); // comm speed
UART1_Init(9600); // comm speed
RS485Slave_Init(Sleave_Addr); // Intialize MCU as slave, address 0x04