Hi Darrel,
I thought you were joking with your offer to re-write my code. I do like to have a stab at things myself but I would very much appreciate a hand with the RX handler if you don't mind taking a quick look please?
I've got it very simple at the moment but I realise that this code only works correctly if I know exactly how many databytes I am going to receive:
<font color="#000080"><i>'****************************** *************************************************
'RX Interrupt Handler: Get Time
'************************************************* ******************************
</i></font>GetTime:
' Databyte START 0 1 2 3 4 5 6
' $FD SS MM HH DD MM YY YY
</i></font><b>HSERIN </b>100,Timeout, [DataByte(0), <b>STR </b>DataByte\7]
</i></font>DataReceived = Yes
<font color="#008000">@ INT_RETURN
</font>Timeout:
DataReceived = No
<font color="#008000">@ INT_RETURN</font>
If you need the whole code I can do so by attachment - although I'm afraid everyone would laugh at me ;-)
Thanks very much
Rob
Bookmarks