Cmd_set_extension_pulser_width, Cmd_set_extension_rs232, Cmd_clear_extension_rs232_tx – GBS Elektronik MCA-527 Firmware Commands User Manual

Page 25

Advertising
background image

Description of the MCA527 Firmware Commands

Command name

CMD_SET_EXTENSION_PULSER_WIDTH

Compatibility

New MCA527 command.

Execution right

Necessary

Description

The command sets the pulser width (w) for the parts (part) of the extension port.
part:

1 = part B (pulser2)
3 = part D (pulser1)

w:

The pulser width must be smaller than the pulser period (see previous command). If the
parameter does not meet this condition, the command will return “invalid parameter”.
Pulser 1:

1 … 4294967294 * 10 ns

Pulser 2

29

:

1 … 4294966

* 10 µs

Format

integer

integer

integer

long

integer

Parameter

preamble

command

part

w

end flag

Byte string (HEX)

A5

5A

1D

01

part

00

w

l

...

...

w

h

B9

9B

Command name

CMD_SET_EXTENSION_RS232

Compatibility

New MCA527 command.

Execution right

Necessary

Description

The command configures the RS232 interface of the extension port.
div:

0x0001 … 0xFFFF (baud rate = 6250000 / div, see predefined constants in mca_comm.h)

flags:

bits 1, 0: 00

5-bit word

01

6-bit word

10

7-bit word

11

8-bit word

bit 2:

0

1 stop bit

1

2 stop bits for non-5-bit word length or 1½ stop bits for 5-bit word

length

bit 3:

0

parity not transmitted or checked

1

transmit and check parity

bit 4:

0

Odd parity

1

Even parity

Format

integer

integer

integer

integer

integer

integer

Parameter

preamble

command

div

flags

0

end flag

Byte string (HEX)

A5

5A

1E

01

div

l

div

h

flags

00

00

00

B9

9B

Command name

CMD_CLEAR_EXTENSION_RS232_TX

Compatibility

New MCA527 command.

Execution right

Necessary

Description

The command clears all bytes which has been written to the RS232 transfer buffer.

Format

integer

integer

integer

long

integer

Parameter

preamble

command

0

0

end flag

Byte string (HEX)

A5

5A

1F

01

00

00

00

00

00

00

B9

9B

25

Advertising