Searching \ for '[SX] Reading the state of a BS2 pin from SX' 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: 'Reading the state of a BS2 pin from SX'.

Exact match. Not showing close matches.
PICList Thread
'[SX] Reading the state of a BS2 pin from SX'
2006\07\16@114428 by bobbyn/a

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

Pretty new to the SX chip and I'm stymied by a problem that should be pretty easy. All I want to do is have an SX pin monitor the state of a BS2 pin. No interrupts needed or anything complicated I just need to be able to determine if the BS2 pin is high or low.

Been trying but can't seem to get it to work. Any help would be appreciated. Using SX/B and a SX28 chip

Thanks
Bob
---------- End of Message ----------

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

2006\07\16@125151 by kvwoodn/a

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

How are you trying to do this? I think you only have a few basic options:

1. Monitor the voltage in such a way that when the pin goes high, it places the 5v on a line into the SX, and the SX detects this.

2. Create some form of comms protocol between the SX - BS2, so that when the BS2 pin goes high it sets a status flag. Transmit the value of the flag to the SX from the BS2.

3. Use some form of sensor set-up, such as an led and a photodetector. When the BS2 pin goes high, the led lights up, and the detector registers this. Other sensors could be used, but the idea is the same.

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

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

2006\07\16@131357 by bobbyn/a

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

My attempts so far revolve around number 1. Basically I've been just trying to get an SX pin to mirror the state of the BS2 pin.

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

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

2006\07\16@145630 by daveheinn/a

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

It's still not clear what you are trying to do.  It sounds like you want the SX to either monitor an input pin on the BS2, or an output pin on the BS2.  The output pin is trivial.  You just tie the output pin on the BS2 to a pin configured as an input on the SX.

If you are trying to monitor an input to the BS2 you could tie the BS2 and SX inputs together and hope that have the same logic thresholds.  It may be better for the BS2 to read its input pin, and then put the result out on another pin that is tied to the SX.


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

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

2006\07\17@080220 by bobbyn/a
flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bobby wrote:

Baiscally just now trying to get it to monitor an output pin on the BS2. I'm sure it should be simple but I can't seem to accomplish it.

I'm trying to use the SX chip to run two servos on pins RB1 and RB2. No problem with that code.

Now I'm just trying to have the BS2 send a signal to turn on and off the servo routine. Using an active high (or an actove low) switch connected to RC7  works but as soon as I use the BS2 as the switch it doesn't work. They are on seperate power supplies but the grounds are tied.

I'm sure I'm missing something very simple here but it's driving me crazy. A code snippet and/or a wiring diagram would be very much appreciated.

Thank you for your time.

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

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

2006\07\17@082020 by naten/a

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

Actually, if you were to attach your wiring diagram and code, you would probably get a faster reply.


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

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

2006\07\17@100933 by daveheinn/a

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

Bob,
It sounds like the SX is working correctly, since it works OK with a switch driving the input pin.  The problem must with the BS2.  You should verify that the BS2 is driving the output pin correctly by checking it with a voltmeter or put an LED with a series resistor on the output pin.

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

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

2006\07\17@140437 by bobbyn/a

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

Ok. Figured it out. I was defining the pin directions incorrectly.

I'm very new to the SX chip but slowly working it out.

Thanks for the help.

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

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

2006\07\17@141308 by beann/a

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

Bob, not to beat-up on a newbie but, that's why it's important to post your code.
We probably could have had it figured out in a couple minutes.

Bean.

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

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

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