Conversion Formatters
Page 342 • BASIC Stamp Programming Manual 2.0b • www.parallaxinc.com
Additional
Hexadecimal
Characters Received
Formatters
⊗⊗
1F
1F⊗⊗
$1F
$1F⊗⊗ -$1F⊗⊗ ⊗⊗$1F⊗⊗ $15AF⊗⊗
IHEX
-- -- -- -- 1F 1F 1F 15AF
IHEX1
-- -- -- 1 1 1 1 1
IHEX2
-- -- -- 1F 1F 1F 1F 15
IHEX3
-- -- -- -- 1F 1F 1F 15A
IHEX4
-- -- -- -- 1F 1F 1F 15AF
ISHEX
-- -- -- -- 1F -1F 1F 15AF
ISHEX1
-- -- -- 1 1 -1 1 1
ISHEX2
-- -- -- 1F 1F -1F 1F 15
ISHEX3
-- -- -- -- 1F -1F 1F 15A
ISHEX4
-- -- -- -- 1F -1F 1F 15AF
NOTE: The HEX formatters are not case sensitive. For example, 1F is the same as 1f.
⊗ Means any non-hexadecimal-numeric characters such as letters (greater than F), spaces,
minus signs, carriage returns, control characters, etc. (Hexadecimal numerics are:
0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F).
-- Means no valid data (or not enough valid data) was received so the SERIN command will
halt forever (unless the Timeout argument is used).
Binary Characters Received
Formatters
⊗⊗
11
11⊗⊗ -11⊗⊗ ⊗⊗11⊗⊗ 101⊗⊗ 3E517⊗⊗
BIN
-- -- 11 11 11 101 1
BIN1
-- 1 1 1 1 1 1
BIN2
-- 11 11 11 11 10 1
BIN3 – BIN16
-- -- 11 11 11 101 1
SBIN
-- -- 11 -11 11 101 1
SBIN1
-- 1 1 -1 1 1 1
SBIN2
-- 11 11 -11 11 10 1
SBIN3 – SBIN16
-- -- 11 -11 11 101 1
⊗ Means any non-binary-numeric characters such as letters, spaces, minus signs, carriage
returns, control characters, etc. (Binary numerics are: 0 and 1).
-- Means no valid data (or not enough valid data) was received so the SERIN command will
halt forever (unless the Timeout argument is used).