PDA

View Full Version : Stamp 2P40 how to address pins?????



Brian Dalziel
02-04-2005, 05:36 AM
Hello,

How do you address the i/o pins on a 2P40 IN PBasic? Is it:

PO - P15, X0 - X15

OR

0 - 31


For example,

HIGH [pin#]

Would you put HIGH 31 (for the last i/o pin) or HIGH X15 or something else?


Thanks

Jon Williams
02-04-2005, 05:47 AM
The pins on the BS2p40 are banked. To get to P0 - P15 issue the MAINIO command. To get to A0 - A15 you would use the AUXIO command. There is a third command, IOTERM, that lets you specify which group of pins the succeeding instructions will follow.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA