My circuit has a serial data receiver; it "waits" for three different sets of characters (= commands) to perform different actions, one at the time.
If "READ" is received, it will do this; if "WRITE" is received, it will do that and so for the third command, "COPY".
Voilą how I imagine it should be working (this is obviously not the actual code, just the idea of what it should be doing):
Code:
START:
DEBUGIN 1000,START,[WAIT("READ" OR "WRITE" OR "COPY")]
IF "READ" DO...
IF "WRITE" DO...
IF "COPY" DO...
....
I need to "wait" for either incoming command but there's where I'm stuck in the DEBUGIN/SERIN2 timeout loop.
Due to my lack of knowledge, I have to make my circuit currently doing only one thing...frustrating
Bookmarks