Page 62 • BASIC Stamp II Manual 0.94 • Parallax, Inc. • (916) 624-8333
BASIC Stamp II
SHIFTIN
Shift bits in synchronously.
usage:
SHIFTIN dpin,cpin,mode,[variable{\bits},...]
Dpin
is the data input.
Cpin
is the clock output.
Mode
is 0 for msb-first/pre-clock, 1 for lsb-first/pre-clock, 2 for msb-
first/post-clock, or 3 for lsb-first/post-clock.
Variable
receives the shifted-in data.
Bits
is an optional bit count. Values from 1-16 can be given; 8 is the
default.
The following symbols are defined for use with SHIFTIN:
Symbol
Value
MSBPRE
0
LSBPRE
1
MSBPOST
2
LSBPOST
3
Summary of Contents for BASIC Stamp II
Page 2: ...BLANK PAGE...