
Appendix B. Instruction 15: Control Port Serial I/O
B-15
CR10X#2 Program – Receive Data
*
3
Table 3 Subroutines
01:
P85
Beginning of Subroutine
01:
98
Subroutine Number
02:
P15
Control Port Serial I/O
01:
1
Repetitions
02:
1
Configuration code
RS232, 1200 baud
03:
0
CTS/Delay before send
04:
6
First control port
RTS = C6
05:
0
Output start location
06:
0
Number of locations to send
07:
13
Input termination character
Terminate on
carriage return
08:
75
Max characters to receive
09:
200
Delay for CTS/input
Wait 2 seconds for input
10:
11
First input location
Store VALUE #1 in Location
11, #10 in 20
11:
1
Multiplier
12:
0.0000
Offset
03:
P95
End
Input Location Labels:
11:VALUE #1
16:VALUE #6
12:VALUE #2
17:VALUE #7
13:VALUE #3
18:VALUE #8
14:VALUE #4
19:VALUE #9
15:VALUE #5
20:VALUE #10
The following examples represent portions of a larger, more complete application
program, and
SHOULD NOT BE USED VERBATIM
.
B.5 Summary of Barometer Jumper Configurations
Jumper
# 7 6 5 4 3 2 1 0
Barometer mode (serial output)
u u r r n n 0 0
Barometer mode (parallel output)
u u 0 b n n 0 1
Altimeter mode (serial output)
u u r r n n 1 0
Altimeter mode (parallel output)
u u 0 b n n 1 0
Altimeter setting mode (serial output)
r r 1 0 n n 1 1
Altimeter setting mode (parallel output)
* * 1 1 n n 1 1
Test mode (serial output)
r r 1 1 t t 0 1
Units of output -
Barometer modes
mb
0 0 - - - - - -
in(Hg)
0 1 - - - - - -
mm(Hg)
1 0 - - - - - -
PSIA
1 1 - - - - - -
Units of output -
Altimeter modes
ft
0 0 - - - - - -
m
0 1 - - - - - -
ft/in(Hg)
1 0 - - - - - -
m/mb
1 1 - - - - - -