Mugel,
How is it coming?
I am still not clear what you are trying to do.
I also am not clear on what is causing your 1mS latency ... is it the actual send time of the serial data?
To me, it looks like you could use the USART on both the send program and the receive program and never really have to wait.
Here is MELABS example program on USARTS
http://www.melabs.com/resources/samples/pbp/usart.bas
Once the USART is configured then sending data is as easy as
TXREG = DATA1 ; where DATA1 is your Byte variable to send, your program continues on and the data is sent in the background
And receiving DATA is as easy as
DATA2 = RCREG ; where DATA2 is your Byte variable, your program can be doing other things while the data is coming in. Once the byte has been received in the background, your program can grab the data like this.
It looks like to me you could do what I think you want to do with the USART and without Interrupts.
Again, more details = more help
Paul Borgmeier
Salt Lake City, UT
USA
__________________
Bookmarks