Shop OBEX P1 Docs P2 Docs Learn Events
Bs2p-40 q — Parallax Forums

Bs2p-40 q

ArchiverArchiver Posts: 46,084
edited 2001-11-20 00:02 in General Discussion
Just a quick sanity check..after skimming the docs it looks to me as if the 16
aux I/Os can be used as argumants anywhere the regular pins are if the AUXIO
command is invoked. Is this correct?

Also, does DIRS become a 32 bit word instead of the 16 bits I'm used to on my
BS2, or do I need to do an AUXIO/MAINIO switch to set the directions of the aux
I/O pins?

-dave
p.s.
I can't wait for a new version of the editor that will automagically handle the
pin mapping for the -40 part so that I can tell it to use pins 0-31 instead of 2
banks of 0-15...

Oh yes I'll see you, see you on the other side.... -Ozzy
dave paton http://www.dpaton.net dave at ieee dot org

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-11-19 23:04
    >Just a quick sanity check..after skimming the docs it looks to me as if the 16
    >aux I/Os can be used as argumants anywhere the regular pins are if the AUXIO
    >command is invoked. Is this correct?

    That's right.

    >
    >Also, does DIRS become a 32 bit word instead of the 16 bits I'm used to on my
    >BS2, or do I need to do an AUXIO/MAINIO switch to set the directions
    >of the aux I/O pins?

    DIRS is still 16 bits. Use AUXIO or MAINIO to choose which one to use.

    ----
    BTW, the mainio and auxio commands also work on the BS2P-24, even
    though the -24 does not have the extra 16 i/o pins. The OUTS and
    DIRS registers can be used as ram. However, be careful. The pins
    are actually there on the SX48 chip, and you can even tap into the
    extra 16 signals with a fine wire or a probe. Do not leave those
    pins in a state that will draw excess current. They are initialized
    as low outputs (I think that's right). I wish we had some little
    pads on the BS2P-IC so we could easily hack into at least a few of
    those lines.

    -- best regards
    Tracy Allen
    electronically monitored ecosystems
    http://www.emesystems.com
    mailto:tracy@e...
  • ArchiverArchiver Posts: 46,084
    edited 2001-11-19 23:41
    In a message dated 11/19/01 4:38:41 PM Central Standard Time, dave@d...
    writes:


    > Just a quick sanity check..after skimming the docs it looks to me as if the
    > 16
    > aux I/Os can be used as argumants anywhere the regular pins are if the AUXIO
    > command is invoked. Is this correct?
    >

    Yes, this is correct. To get back to the main pins, use MAINIO.


    > Also, does DIRS become a 32 bit word instead of the 16 bits I'm used to on my
    > BS2, or do I need to do an AUXIO/MAINIO switch to set the directions of the
    > aux
    > I/O pins?
    >

    No, there is just another Dirs (and Ins and Outs for that matter). The
    secondary set is invoked with AUXIO -- just like the pins.


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2001-11-19 23:43
    In a message dated 11/19/01 4:38:41 PM Central Standard Time, dave@d...
    writes:


    > I can't wait for a new version of the editor that will automagically handle
    > the
    > pin mapping for the -40 part so that I can tell it to use pins 0-31 instead
    > of 2
    >

    That is not a planned upgrade as it would require the editor modifying your
    code, which could lead to unpredictable behavior.

    -- Jon Williams
    -- Parallax


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2001-11-20 00:02
    On 11/19/01 at 6:43 PM, jonwms@a... wrote:

    > That is not a planned upgrade as it would require the editor modifying your
    > code, which could lead to unpredictable behavior.

    Oh well...

    -dave

    Oh yes I'll see you, see you on the other side.... -Ozzy
    dave paton http://www.dpaton.net dave at ieee dot org
Sign In or Register to comment.