EasyManua.ls Logo

Parallax BASIC Stamp 2e - Page 210

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...
OWOUT - BASIC Stamp Command Reference
Page 208 BASIC Stamp Programming Manual 2.0b www.parallaxinc.com
Conversion
Formatter
Type of Number Notes
DEC{1..5}
Decimal, optionally fixed to 1
5 digits 1
SDEC{1..5}
Signed decimal, optionally fixed to 1
5 digits 1,2
HEX{1..4}
Hexadecimal, optio
nally fixed to 1 4 digits 1
SHEX{1..4}
Signed hexadecimal, optionally fixed to 1
4 digits 1,2
IHEX{1..4}
Indicated hexadecimal, optionally fixed to 1
4 digits ($ prefix) 1
ISHEX{1..4}
Signed, indicated hexa
decimal, optionally fixed to 1 4 digits
($ prefix)
1,2
BIN{1..16}
Binary, optionally fixed to 1
16 digits 1
SBIN{1..16}
Signed binary, optionally fixed to 1
16 digits 1,2
IBIN{1..16}
Indicated binary, optional
ly fixed to 1 16 digits (% prefix) 1
ISBIN{1..16}
Signed, indicated binary, optionally fixed to 1
16 digits (% prefix) 1,2
1 Fixed-digit formatters like DEC4 will pad the number with leading 0s if necessary; ex:
DEC4 65 sends 0065. If a number is larger than the specified number of digits, the
leading digits will be dropped; ex: DEC4 56422 sends 6422.
2 Signed modifiers work under two's complement rules.
The 1-wire protocol has a well-defined standard for transaction sequences.
Every transaction sequence consists of four parts: 1) Initialization, 2) ROM
Function Command, 3) Memory Function Command, and 4)
Transaction/Data. Additionally, the ROM Function Command and
Memory Function Command are always 8 bits wide (1 byte in size) and is
sent least-significant-bit (LSB) first.
The Initialization part consists of a reset pulse (generated by the master)
and will be followed by a presence pulse (generated by all slave devices).
Figure 5.22 details the reset pulse generated by the BASIC Stamp and a
typical presence pulse generated by a 1-wire slave, in response.
THE 1-WIRE PROTOCOL FORMAT.
Table 5.51: OWOUT Conversion
Formatters.

Table of Contents

Related product manuals