Hi mackrackit,
I expect you can hear the cogs grinding from where you are today
Here's what I'm thinking:
Code:
Timeout con 500
MAIN:
PAUSE 250
SERIN2 PORTC.5, 16780, [WAIT ("#"),DEC NUM1,Timeout,Data_Not_Sent,]
I've made Timeout a CONSTANT 500. Then the program goes to the LABEL Data_Not_Sent. This is were I'm struggling in that I need to be able to tell if the data has been sent. If TOTAL did reset to zero when data was sent I could have used that but it doesn't and it could have just sent to nought's so that would be no good for a handle anyway. Then I though I could 'read' the PIN PORTC.3 to see if that had changed state, again that's only 50-50 that it has from HO to Low and also it could have just sent two zero's which would show no change.
So I'm looking for something to show a change or changed state when data is sent (I think).
Am I hot or cold in that last assumption?
Dave
Bookmarks