Section 7. Installation
304
7.7.18.1 Introduction
Serial denotes transmission of bits (1s and 0s) sequentially, or "serially." A byte
is a packet of sequential bits. RS-232 and TTL standards use bytes containing
eight bits each. Consider an instrument that transmits the byte "11001010" to the
CR3000. The instrument does this by translating "11001010" into a series of
higher and lower voltages, which it transmits to the CR3000. The CR3000
receives and reconstructs these voltage levels as "11001010." Because an RS-
232 or TTL standard is adhered to by both the instrument and the CR3000, the
byte successfully passes between them.
If the byte is displayed on a terminal as it was received, it will appear as an ASCII
/ ANSI character or control code. Table ASCII / ANSI Equivalents
(p. 304)
shows a
sample of ASCII / ANSI character and code equivalents.
ASCII / ANSI Equivalents
Byte
Received
ASCII
Character
Displayed
Decimal
ASCII
Code
Hex
ASCII
Code
00110010
2
50
32
1100010
b
98
62
00101011
+
43
2b
00001101
cr
13
d
00000001
☺
1
1
Read More See ASCII / ANSI Table
for a complete list of ASCII / ANSI
codes and their binary and hex equivalents.
The face value of the byte, however, is not what is usually of interest. The
manufacturer of the instrument must specify what information in the byte is of
interest. For instance, two bytes may be received, one for character 2, the other for
character b. The pair of characters together, "2b", is the hexadecimal code for "+",
"+" being the information of interest. Or, perhaps, the leading bit, the MSB (Most
Significant Bit), on each of two bytes is dropped, the remaining bits combined,
and the resulting "super byte" translated from the remaining bits into a decimal
value. The variety of protocols is limited only by the number of instruments on
the market. For one in-depth example of how bits may be translated into usable
information, see FP2 Data Format
(p. 599).
Note ASCII / ANSI control character ff-form feed (binary 00001100)
causes a terminal screen to clear. This can be frustrating for a developer
who prefers to see information on a screen, rather than a blank screen.
Some third party terminal emulator programs, such as Procomm, are
useful tools in serial I/O development since they handle this and other
idiosyncrasies of serial communication.
Содержание CR3000 Micrologger
Страница 2: ......
Страница 3: ......
Страница 4: ......
Страница 6: ......
Страница 30: ......
Страница 34: ......
Страница 36: ......
Страница 96: ......
Страница 200: ...Section 7 Installation 200 FIGURE 42 Running Average Frequency Response FIGURE 43 Running Average Signal Attenuation ...
Страница 485: ...Section 8 Operation 485 8 11 2 Data Display FIGURE 110 Keyboard and Display Displaying Data ...
Страница 487: ...Section 8 Operation 487 FIGURE 112 CR1000KD Real Time Custom ...
Страница 488: ...Section 8 Operation 488 8 11 2 3 Final Storage Data FIGURE 113 Keyboard and Display Final Storage Data ...
Страница 489: ...Section 8 Operation 489 8 11 3 Run Stop Program FIGURE 114 Keyboard and Display Run Stop Program ...
Страница 491: ...Section 8 Operation 491 FIGURE 116 Keyboard and Display File Edit ...
Страница 495: ...Section 8 Operation 495 Low power standby whenever possible Low power bus sets bus and modules to low power ...
Страница 496: ......
Страница 502: ......
Страница 564: ...Section 11 Glossary 564 FIGURE 126 Relationships of Accuracy Precision and Resolution ...
Страница 566: ......
Страница 594: ......
Страница 598: ......
Страница 600: ......
Страница 602: ......
Страница 624: ......
Страница 642: ......
Страница 643: ......