Exact match. Not showing close matches.
PICList
Thread
'[SX] Serial Flow control'
2008\05\27@125753
by
edgellmhn/a
|
|
I will have two serial ports and wish to poll them for incoming data. However, when I use RX_BYTE to collect a byte from one of the ports it hangs there until data arrives. How do I tell the microcontroller to move on when no data is at the port?
marshall hall edgell
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=270519
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)
|
|
Please post your code.
RX_BYTE could be anything...
Bean.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=270519#m270530
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)
2008\05\27@141316 by edgellmhn/a
|
|
Sorry. Here is my code
RX_BYTE:
'USE: RX_BYTE port
temp1 = __PARAM1 'Which port
IF temp1 = DB9Port THEN
SERIN RX_DB9, Baud, temp3 'incoming byte into temp3, later add code for USB
ENDIF
RETURN temp3 marshall
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=270519#m270533
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)
2008\05\27@142016 by robotworkshopn/a
|
|
[Quoting: "edgellmh"]I will have two serial ports and wish to poll them for incoming data. However, when I use RX_BYTE to collect a byte from one of the ports it hangs there until data arrives. How do I tell the microcontroller to move on when no data is at the port?marshall hall edgell
I did something similar to that with just a single Serial input. It does it in the background. If anything does come in then it is processed. You can see the example code from the April 2008 issue of SERVO:
Robert
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=270519#m270535
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)
|
|
Robert
When I search on the forum for JohnyMac I only get your msg. Where should I look for those routines?
marshall
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=270519#m270537
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)
2008\05\27@144228 by JonnyMacn/a
|
|
I've attached a demo that demonstrates buffered serial I/O with the SX. If you port this code to the SX48 you'll need to change the BANK $00 statements to BANK $10 in the assembly sections (BTW, the version 2.0 compiler has a constant called __DEFAULT that simplifies this).
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=270519#m270540
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)
2008\05\27@154906 by robotworkshopn/a
|
|
[Quoting: "edgellmh"]Robert
When I search on the forum for JohnyMac I only get your msg. Where should I look for those routines?marshall
Robert
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=270519#m270560
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)
More... (looser matching)
- Last day of these posts
- In 2008
, 2009 only
- Today
- New search...