Searching \ for '[SX] SERIN from BS2' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/ubicom/devices.htm?key=sx
Search entire site for: 'SERIN from BS2'.

Exact match. Not showing close matches.
PICList Thread
'[SX] SERIN from BS2'
2005\12\16@165531 by SteveDn/a

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

main:
TX_BYTE theTemp
TX_BYTE setTemp
TX_BYTE tHold goto main


TX_BYTE:
  Flo = 1             'alert max 1483
   Pause 1
       Temp1 = __PARAM1
       SEROUT Sio,baud,temp1
  Flo = 0
RETURN

I can send 3 bytes one right after another from the SX to the stamp using Jon's example code above.  It works great!


The code below does not work for me.  Should I be able to ably the same idea as above and have it work?  

main
RX_TEMP setAcHi
RX_TEMP setAcLo
GOTO MAIN

RX_TEMP:
temp1 = __PARAM1
  SERIN sio, baud, temp1
RETURN

This format works ok but it seems like the one above should work too.


main:

RX_TEMP goto main

RX_TEMP:

SERIN sio, baud, setAcHi
SERIN sio, baud, setAcHI
RETURN

Thanks again
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=101170
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\12\16@170308 by beann/a

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

Steve,
 In the example that doesn't work, it looks like you setting up to do a SEROUT but then you do a SERIN ?
 For instance why would you do "temp1 = __PARAM1" before a SERIN that is going to change the value of temp1 ?
 I think you want to do this:

 
RX_TEMP SUB 0 main:
 setAcHi = RX_TEMP
 setAcLo = RX_TEMP
 GOTO main
RX_TEMP:
 SERIN sio,baud,temp1
 RETURN temp1
Bean.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=101170#m101172
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\12\16@171400 by SteveDn/a

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

That makes a whole lot of since when you put it that way, I will give it a try.  Wow I would give anything to be half as sharp as you guys.  Believe it or not you guys have brought me along ways.

THANKS!

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=101170#m101174
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

More... (looser matching)
- Last day of these posts
- In 2005 , 2006 only
- Today
- New search...