Hello...Can someone help me out I am using an example I found here:
http://www.melabs.com/resources/samples/18F/serA452.bas
I want to be able to send commands from a PC such as ADR,GET\r and ADR,SET,100\r etc. I just can't figure out how to decode the incoming data.
The HSERIN command works but its too slow for my application and it hangs up if I try to send multiple commands at the same time.
The following code works...but not all the time. It seems to miss (i'm assumming the index_out has something to do with it) I don't know assembly language but is there a way to modify the asm routine to read up to a terminating char such as a CR or LF and clear the buffer?
I'm using an 18F6722 running a 40MHz xtal
Bookmarks