Searching \ for '[SX] Serial Flow control' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: techref.massmind.org/techref/ubicom/lib/io/index.htm?key=serial+serial
Search entire site for: 'Serial Flow control'.

Exact match. Not showing close matches.
PICList Thread
'[SX] Serial Flow control'
2008\05\27@125753 by edgellmhn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, edgellmh wrote:

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)

2008\05\27@140551 by beann/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote:

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

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, edgellmh wrote:

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

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, robotworkshop wrote:

[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


If you expect the SX chip to buffer any serial data coming into it in the back ground so you can do other things then you'll probably want to look at JohnyMac's ISR based serial routines.  It normally watches just one serial line but I suppose with some work you could watch two ports and have a dedicated buffer for each one.  Since it keeps track of the number of items in the receive buffer you can just check that.  If the count is 0 just continue on.

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:

http://www.servomagazine.com/downloads.php?year=2008
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)

2008\05\27@143317 by edgellmhn/a
flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, edgellmh wrote:

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

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote:

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

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, robotworkshop wrote:

[Quoting: "edgellmh"]Robert
When I search on the forum for JohnyMac I only get your msg. Where should I look for those routines?

marshall


That was because I made a typo in the name.  Sorry about that.  Looks like the answer is in this thread now anyhow...

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...