Hello Steve,
The microcontroller it is a powerful beast.
But first, lets clarify.
In your case you have two propblems to solve.
1 is 485
2 is USART (232) control and flow.
1 you need a 485==>232 converter. Like the one in this link from Digikey
https://www.digikey.ca/products/en?keywords=MIKROE-9252 On the processor you must first set the receive interrupt on your interrupt subroutine.
When a packet arrive, your interrupt bit is set.
Now you have to take data from the received buffer, and check it against your set parameters to make sure the packet is for you, check the checksum to be sure it is not corrupted data, then move it to a working buffer.
After you do all this, you clear the receive interrupt flag and enable the interrupt again.
It is a very complicated scenario.
I suggest to start in the following order if you have to boards to experiment.
Here it is a link on you tube of one of my program
https://www.youtube.com/watch?v=ZrJKRvydDJg&feature=youtu.beHere it is a link where where i explained the code
https://forum.mikroe.com/viewtopic.php?f=97&t=53585And here it is a link where you can download the code
https://forum.mikroe.com/viewtopic.php?f=97&t=53816The code is in MikroBasic from MikroElektronika.
You can download a demo version which works like the paid version, with the limitation at 2K of code.
Over 2k you have to pay.
Good luck.