BS2p-40 I/O PROGRAMMING
Archiver
Posts: 46,084
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
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
>
>
>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