Sorry Steve, don't understand what you mean.
Maybe i haven't had enough 'beer'.
This is what i have come up with so far, but its still not working.
Code:
USARTInterrupt:
' Here's the interrupt routine
HSERIN [Qualifier]
Branch QUALIFIER,[Sub1,Sub2,Sub3]
Sub1:
HSERIN [DEC2 hours, DEC2 Minutes, DEC2 Seconds, DEC2 suseconds]
Write 5, hours
Write 6, minutes
Write 7, seconds
write 8, suseconds
HSEROUT ["You sent Red", DEC2 hours, DEC2 Minutes, DEC2 Seconds, DEC2 suseconds]
return
Sub2:
HSEROUT ["You sent Blue"]
Sub3:
HSEROUT ["You send Green"]
Resume
enable interrupt
I guess i want it to check that the qualifier is either 'Red', 'Blue', or 'Green', If it isn't then come out of the interupt and wait for the next serial string. This is the bit of code i am missing and having problems with !!
If for example the qualifier Red is received, then it jumps to the Sub1 routine and captures the other 8 bytes.
Am i on the right tracks with what i have done so far? Can you assist with the qualification side?
Cheers,
Steve
Bookmarks