EasyManua.ls Logo

Parallax BASIC Stamp 2e - Appendix C: Conversion Formatters

Default Icon
353 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Appendix C: Conversion Formatters
BASIC Stamp Programming Manual 2.0c www.parallaxinc.com Page 341
Conversion Formatters
This appendix lists the Conversion Formatters available for the commands
SERIN, I2CIN, LCDIN, and OWIN and demonstrates, though various
input/output data examples, exactly what will be received when using
these formatters.
Decimal Characters Received
Formatters
123
123 -123 123 12345 65536 255255
DEC
-- -- 123 123 123 12345 0 58647
DEC1
-- 1 1 1 1 1 6 2
DEC2
-- 12 12 12 12 12 65 25
DEC3
-- 123 123 123 123 123 655 255
DEC4
-- -- 123 123 123 1234 6553 2552
DEC5
-- -- 123 123 123 12345 0 25525
SDEC
-- -- 123 -123 123 12345 0 -6889
SDEC1
-- 1 1 -1 1 1 6 2
SDEC2
-- 12 12 -12 12 12 65 25
SDEC3
-- 123 123 -123 123 123 655 255
SDEC4
-- -- 123 -123 123 1234 6553 2552
SDEC5
-- -- 123 -123 123 12345 0 25525
Means any non-decimal-numeric characters such as letters, spaces, minus signs, carriage
returns, control characters, etc. (Decimal numerics are: 0,1,2,3,4,5,6,7,8 and 9).
-- Means no valid data (or not enough valid data) was received so the SERIN command will
halt forever (unless the Timeout argument is used).
Hexadecimal Characters Received
Formatters
1F
1F -1F 1F 15AF 10000 3E517
HEX
-- -- 1F 1F 1F 15AF 0 E517
HEX1
-- 1 1 1 1 1 1 3
HEX2
-- 1F 1F 1F 1F 15 10 3E
HEX3
-- -- 1F 1F 1F 15A 100 3E5
HEX4
-- -- 1F 1F 1F 15AF 1000 3E51
SHEX
-- -- 1F -1F 1F 15AF 0 -1AE9
SHEX1
-- 1 1 -1 1 1 1 3
SHEX2
-- 1F 1F -1F 1F 15 10 3E
SHEX3
-- -- 1F -1F 1F 15A 100 3E5
SHEX4
-- -- 1F -1F 1F 15AF 1000 3E51
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).

Table of Contents

Related product manuals