Output port control, Ven in section 9.9 – CTI Products RCD Standard - Remote Comparator Display User Manual
Page 85

MCN Remote Comparator Display
Appendix A
CTI Products, Inc.
Changing Status Message Text
68-10856-210
79
Note
#
(Nx)
Octave
(Ox)
Note Standard
Musical
Note
Freq
Hz
76
6
D+
D# 8
4978
77
6
E
E 8
5274
78
6
F
F 8
5588
79
6
F+
F# 8
5920
80
6
G
G 8
6272
81
6
G+
G# 8
6645
82
6
A
A 8
7040
83
6
A+
A# 8
7459
84
6
B
B 8
7902
Table 6 - Audio String Notes
9.9 Output Port Control
The output port control field allows you to specify a output port control
sequence to execute when the status message text is displayed. The output control
sequences are specified under the heading in the MCNRCD.CFG
file. The format of these sequences is the following:
port # mask control
NOTE: The MCNRCD software requires that any output port being used with
this output port control must be a read/write port. The MCNRCD software reads
the current value of the port by doing an input of the port address.
The three fields of each line under this heading are the following:
1.
The port # field is a 3 digit HEX value that specifies the address of the output
port that will be modified.
2.
The mask field is a 2 digit HEX value that clears bits in the current output port
value (this value is logically AND’ed with the current output port value).
3.
The control field is a 2 digit HEX value that sets bits in the current output port
value (this value is logically OR’ed with the current output port value).
The control sequence is
new value = (current value AND mask) OR control
The example MCNRCD.CFG file shown in Figure 32 defines 17 different output
control sequences that can be executed. To execute an output control sequence,
simply set the output port control field of the status message text definition line to
the output port sequence number. The first sequence under the