Unless I missed it somewhere in the listing, the only reference I see to pin ports is here:
cols var INB ' Input states of pins P4-P7.
To indirectly anwer your question regarding collective INPUT port designations:
INA = Pin ports 0-3, INB = Pin ports 4-7, INC = Pin ports 8-11 and IND = Pin ports 12-15
Additionally, the following collective Pin port designations are also available:
INL = Pin ports 0-7, and INH = Pin ports 8-15
Finally, INS = Pin ports 0-15
All of this information can be found in the PBASIC Stamp Manual which is free for the download in the documentation section of the Parallax web site, which can be found here: http://www.parallax.com/
Regards,
Bruce Bates
Post Edited (Bruce Bates) : 7/16/2005 6:46:13 AM GMT
I got this code from the Nuts and Volts colum #22 scan a keypad with a BS2. But I think Bruce might have answered my question. Also I sent the wrong program. Attached is the right one.See If this sounds right.
If I change the INB to IND to look for the input states of pins 12-15
and change For row = 0 to 3 , to For row = 8 to 11
Comments
Unless I missed it somewhere in the listing, the only reference I see to pin ports is here:
cols var INB ' Input states of pins P4-P7.
To indirectly anwer your question regarding collective INPUT port designations:
INA = Pin ports 0-3, INB = Pin ports 4-7, INC = Pin ports 8-11 and IND = Pin ports 12-15
Additionally, the following collective Pin port designations are also available:
INL = Pin ports 0-7, and INH = Pin ports 8-15
Finally, INS = Pin ports 0-15
All of this information can be found in the PBASIC Stamp Manual which is free for the download in the documentation section of the Parallax web site, which can be found here:
http://www.parallax.com/
Regards,
Bruce Bates
Post Edited (Bruce Bates) : 7/16/2005 6:46:13 AM GMT
For more info on Keypads, check out
http://www.parallax.com/dl/docs/cols/nv/vol1/col/3.pdf
http://www.parallax.com/dl/docs/cols/nv/vol1/col/22.pdf
http://www.parallax.com/dl/docs/cols/nv/vol2/col/62.pdf
http://www.parallax.com/dl/docs/cols/nv/vol3/col/79.pdf
http://www.parallax.com/dl/docs/cols/nv/vol4/col/97.pdf
If I change the INB to IND to look for the input states of pins 12-15
and change For row = 0 to 3 , to For row = 8 to 11
thanks