I have been trying to setup a RS-485 network between multiple PICs using the MAX3077E Full Duplex transceiver and everything works great even at 115200 Baud as long as i send a single byte.

Once I start sending more thats when things go wrong.

This is what I am trying to send:

HSEROUT [ACK,ToAddress,Command,Parameter.LowByte,Parameter. HighByte]

and this is the Receiving side:

HSERIN [WAIT(ACK),ToAddress,Command,Parameter.LowByte,Para meter.HighByte]

ACK, ToAddress and Command are all BYTE

Using this code i sometime get 3 bytes but most of the time i only get 2 bytes plus it will not receive again until i reset the pic.


Does anyone know why this would be a problem? I even reduced the speed to 300 Baud with the same results.