Shop OBEX P1 Docs P2 Docs Learn Events
Question on BS2p, pe, px — Parallax Forums

Question on BS2p, pe, px

KenMKenM Posts: 657
edited 2005-05-28 23:22 in BASIC Stamp
Question to Parallax.

I assume that on the·BS2p, pe and px models, there are unused I/O pins, is that correct?

36 I/O pins on the SX48 package itself.
The Stamp modules have 16 general purpose I/O, and·3 pins for programing (SOUT, SIN, ATN).

How are the extra I/0 pins configured, are they left floating?

Thanks.

Ken

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-05-28 17:36
    Ken,

    ·· This link should answer your question.· It is the schematic for the BS2p24.

    http://www.parallax.com/dl/docs/prod/schem/Bs2p24SchemRevB.pdf



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-05-28 17:49
    On 24-pin "p"-family modules, pins are left as inputs and the internal pull-ups are activated to keep them in a known state.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-05-28 17:53
    Thanks Jon,

    ·· I forgot to mention that since that's not in the schematic.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Tracy AllenTracy Allen Posts: 6,658
    edited 2005-05-28 18:07
    The extra 16 pins are configured as inputs with the internal weak pullups enabled, ttl levels.

    The pins still respond to commands that address those pins. For example, if you issue the following:
    AUXIO
    LOW 5
    OUTH=0

    The 9 pins affected will in fact go low, and since the pullups are enabled, the current will increase ~9*Vdd/20kohms.

    Even if you are not using the pins, the AUXIO DIRS and OUTS registers are available. If you leave DIRS as inputs, then you can use the OUTS register with impunity. If you mess with the DIRS register, remember that the pullups are active.

    The BS2px has all the new configuration options for pins on MAINIO. Come to think of it, I don't know what will happen if you do an AUXIO, and then apply those configuration options. I guess that is another question for Parallax. If someone buys an OEM version of the 'px, will CONFIG and COMPARATOR work on AUXIO?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com
  • KenMKenM Posts: 657
    edited 2005-05-28 18:33
    Thanks for the answers....

    So at my own risk (of course) I could void any and all warranty, solder to the unused pins and increase my I/O.

    Not that I would do such a thing.....(so how much longer for the ~$10 SX board?)

    P.S. was the answer to this question in any Parallax documentation? If yes, please don't point me to where, I need to look again.

    Ken
  • KenMKenM Posts: 657
    edited 2005-05-28 18:36
    I believe COMPARITOR is available only on RA.1 & RA.2 RB1, & RB2, is that correct?
    At least that is the case with the SX18 & 28.

    Tracy Allen said...
    I guess that is another question for Parallax. If someone buys an OEM version of the 'px, will CONFIG and COMPARATOR work on AUXIO?

    Post Edited (KenM) : 5/28/2005 7:53:04 PM GMT
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-05-28 19:29
    Ken,

    I'm confused by your questions ... if you have an SX preprogrammed with the PBASIC interpreter core then you will not have access to the pins on RD and RE -- why void your warranty by soldering things to them.

    The comparitor is actually on RB.1 and RB.2 -- on the BS2px it is P1 and P2, with P0 available to follow the comparitor output if so configured (see the help file under CONFIGPIN).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • KenMKenM Posts: 657
    edited 2005-05-28 19:59
    Jon,
    What does the command AUXIO do on a BS2p?
    I thought that enabled the unused pins...RD and RE.
    I have no intention of soldering anything to a BS2p, as stated in my previous post. I will wait for the new SX board.
    Jon Williams (Parallax) said...
    Ken,
    if you have an SX preprogrammed with the PBASIC interpreter core then you will not have access to the pins on RD and RE -- why void your warranty by soldering things to them.
  • Tracy AllenTracy Allen Posts: 6,658
    edited 2005-05-28 20:18
    Oh, right the SX chip has the comparator function only on port B, so BS2px COMPARE can only work there.

    On the other hand, AUXIO on a BS2p-24 and a BS2pe-24 lets you address the pins and yes, if you solder wires to them you can use them. (I've done it, but certainly don't recommend it.) In any case, you can use the DIRS and OUTS registers associated with those pins. You just have to remember that the pullups are always active, in either the input or the output state.

    My question has to do with the BS2px, the effect of CONFIGPINS when AUXIO is selected. Level TTL/CMOS, pullups ON/OFF, and Schmitt ON/OFF and Direction IN/OUT are available on all the ports B-E. Is CONFIGPINS restricted to MAINIO, or is there stealth provision for a 40 pin version?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com
  • KenMKenM Posts: 657
    edited 2005-05-28 23:22
    Thanks for the update Tracy.

    Ken Mathis (yes the same one)
Sign In or Register to comment.