Shop OBEX P1 Docs P2 Docs Learn Events
BS2p-40 I/O PROGRAMMING — Parallax Forums

BS2p-40 I/O PROGRAMMING

ArchiverArchiver Posts: 46,084
edited 2001-05-07 05:00 in General Discussion
Hello all,


I was trying to program some I/O pins on a
bs2p-40 and was wondering how you would refer
to the additional 16 pins(x0-x15) in the code?
I know using the bs2 that if you want a pin to
go High you can write "High 0". but I am not
sure how you would address the additional 16 pins.
Thanks in advance!...
Jim

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-05-07 05:00
    >Hello all,
    >
    >
    >I was trying to program some I/O pins on a
    >bs2p-40 and was wondering how you would refer
    >to the additional 16 pins(x0-x15) in the code?
    >I know using the bs2 that if you want a pin to
    >go High you can write "High 0". but I am not
    >sure how you would address the additional 16 pins.
    >Thanks in advance!...
    >Jim


    auxio ' select 2nd bank of 16 io pins
    high 0 ' these instructions apply to 2nd bank
    input 1
    out0=in1

    mainio ' select the 1st bank of 16 io pins
    high 0 ' these instructions apply to 1st bank
    input 1
    out0=in1
Sign In or Register to comment.