Cmd_set_extension_polarity, Cmd_set_extension_pulser_period – GBS Elektronik MCA-527 Firmware Commands User Manual
Page 24

MCA527
Command name
CMD_SET_EXTENSION_PORT (Continuation)
Remarks
The parts of the extension port are attached to the following pins.
Full version
OEM version
Part A: pin 1
pin 3
RS232 RX
pin 2
pin 7
RS232 TX
Part B: pin 4
pin 19
RS232 TX (TTL), pulser2 or output2
Part C: pin 5
pin 21
RS232 RX (TTL), counter2, trigger2 or input2
Part D: pin 7
pin 22
pulser1 or output1
Part E: pin 6
pin 25
counter1, trigger1 or input1
Part F:
pin 8
pin 26
5V / 100mA power output
Command name
CMD_SET_EXTENSION_POLARITY
Compatibility
New MCA527 command.
Execution right
Necessary
Description
The command sets the polarity (pol) for the parts (part) of the extension port.
part:
1 = part B
2 = part C
3 = part D
4 = part E
pol:
0 = positive or rising edge
1 = negative or falling edge
Format
integer
integer
integer
integer
integer
integer
Parameter
preamble
command
part
pol
0
end flag
Byte string (HEX)
A5
5A
1B
01
part
00
pol
00
00
00
B9
9B
Command name
CMD_SET_EXTENSION_PULSER_PERIOD
Compatibility
New MCA527 command.
Execution right
Necessary
Description
The command sets the pulser period (p) for the parts (part) of the extension port.
part:
1 = part B (pulser2)
3 = part D (pulser1)
p:
The pulser period must be larger than the pulser width (see next command). If the
parameter does not meet this condition, the command will return “invalid parameter”.
Pulser 1:
2 … 4294967295 * 10 ns
Pulser 2
2 … 4294967
* 10 µs
Format
integer
integer
integer
long
integer
Parameter
preamble
command
part
p
end flag
Byte string (HEX)
A5
5A
1C
01
part
00
p
l
...
...
p
h
B9
9B
29 The both pulsers work differently. Pulser 1 works very quickly and exactly because it is realized in hardware. Pulser 2, however,
is realized in firmware, wherefore it is less quickly and exactly, and it occupies additional system resources. For this reasons
pulser 1 should be preferred.
24