Shop OBEX P1 Docs P2 Docs Learn Events
RESet Question — Parallax Forums

RESet Question

Bill ChennaultBill Chennault Posts: 1,198
edited 2007-12-16 20:57 in BASIC Stamp
All--

I would like for my BS2p40 "master" to reset four OEM BS2 "slaves." Ideally, the BS2p40 would use one pin to reset all four slaves at the same time. Is this possible? Can I tie a BS2p40·output pin to the RESet pin on an OEM BS2 through, perhaps, a·1 megaohm resistor* (I'm never sure!) and when I want the master to reset the slaves, execute a LOW n (where n is the output pin I've selected on the BS2p40)? If this is correct, could I tie that same BS2p40 output pin to all four of the OEM BS2 slaves and reset them all at once? Assuming I am on the right track, should I initially set the BS2p40 output pin I've selected for this function as input to keep it from accidentally resetting the slaves serendipitously?

Or, I am I totally off in the wilderness here?

Thanks and Merry Christmas!

*I am successfully using 1 megaohm resistors between the master and the four slaves in my unconventional pin to pin big-signaling scheme, which is working out pretty good, so far.

--Bill

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You are what you write.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-12-14 20:39
    The BS2p40 pins are initially set to input mode so that's where you should start. Read the description of the RES pin in the Parallax Basic Manual. 1 megohm is probably too large because the RES pin has its own pullup. Try a 1K resistor from one BS2p40 I/O pin to each of the slave BS2's RES pins. When you do a LOW, it'll reset the slaves, then do an INPUT to let the slaves go do their things.
  • Bill ChennaultBill Chennault Posts: 1,198
    edited 2007-12-14 20:59
    Mike--

    Thanks. Of course, I looked in all my Stamp manuals and found the most about RESet in Parallax's Basic Syntax and Reference manual. The trouble is, I could not extrapolate their wording to what I wanted to do, but did get the strong opinion that I might be on the right track.

    Merry Christmas!

    --Bill

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    You are what you write.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-12-16 19:51
    Bill,

    To reset a BASIC Stamp via an I/O pin you would make the output of the pin LOW at the moment you want to initiate a reset. The line should then be made an input again, not brought high. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Bill ChennaultBill Chennault Posts: 1,198
    edited 2007-12-16 20:37
    Chris--
    · That's my plan!
    · Hey! Don't you get at least ONE day off?
    --Bill

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    You are what you write.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-12-16 20:40
    Bill,

    Sure I do…I spread myself out a little so that our customers don’t go the whole weekend waiting for support from us. Let us know how you reset system/circuit works. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Tracy AllenTracy Allen Posts: 6,664
    edited 2007-12-16 20:57
    Hi Bill,

    The ATN input may be available on your OEM stamps as well, I think. It is the pin that normally connects the DTR on the serial port and it resets the stamp when it pulses High. You could connect the '2p output to that via a 1k resistor.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com
Sign In or Register to comment.