Here is a bit of code I am using at the moment that seems to work well.

Wait for 255 to be sent from PC then samples and sends reply back.



'************************************

'Define...