EasyManuals Logo

Parallax BASIC Stamp II User Manual

Default Icon
68 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #16 background imageLoading...
Page #16 background image
Page 16 • BASIC Stamp II Manual 0.94 • Parallax, Inc. • (916) 624-8333
BASIC Stamp II
Word $1 contains the output latches for all 16 I/O pins. If a pin is in
input mode, this data is unused; but, when a pin is in output mode, its
corresponding word $1 bit sets its state. The bits are all readable and
writable, regardless of pin direction. These are its symbolic names:
OUTS the entire 16-bit word
OUTL the low byte of OUTS
OUTH the high byte of OUTS
OUTA the low nibble of OUTL
OUTB the high nibble of OUTL
OUTC the low nibble of OUTH
OUTD the high nibble of OUTH
OUT0 the low bit of OUTS - corresponds to pin P0
OUT15 the high bit of OUTS - corresponds to pin p15
Word $2 contains the direction bits for all 16 I/O pins. To place a pin in
input mode, its corresponding word $2 bit must be cleared to 0. To
place a pin into output mode, its corresponding word $2 bit must be
set to 1, at which time its word $1 bit will determine whether it drives
high or low. Word $2 has these symbolic names:
DIRS the entire 16-bit word
DIRL the low byte of DIRS
DIRH the high byte of DIRS
DIRA the low nibble of DIRL
DIRB the high nibble of DIRL
DIRC the low nibble of DIRH
DIRD the high nibble of DIRH
DIR0 the low bit of DIRS - corresponds to pin P0
DIR15 the high bit of DIRS - corresponds to pin p15

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Parallax BASIC Stamp II and is the answer not in the manual?

Parallax BASIC Stamp II Specifications

General IconGeneral
BrandParallax
ModelBASIC Stamp II
CategoryMicrocontrollers
LanguageEnglish