Serial port baud/format record

The serial port baud rate/format record sets communication parameters for the serial ports. Individual serial ports are identified within the records by the serial port index number.

The following table shows the additional records provided when the serial port baud rate/format record is included with Command Packet 64h.

Byte

Item

Type

Value

Notes

0

RECORD TYPE

1 (Char)

02h

Serial Port Baud Rate/Format Record.

1

RECORD LENGTH

1 (Char)

04h

Number of bytes in the record, excluding bytes 0 and 1.

2

SERIAL PORT INDEX

1 (Char)

00h–03h

The number of the serial port to configure.

3

BAUD RATE

1 (Char)

See Baud rate byte values.

Data transmission rate.

4

PARITY

1 (Char)

See Parity byte values.

Sets the parity of data transmitted through the port. The eight data bits and one stop bit are always used, regardless of the parity selection.

5

FLOW CONTROL

1 (Char)

See Flow control byte values.

Flow control.

The following tables provide byte values for the information in the serial port baud/format record.

Baud rate byte values

Byte value

Notes

Dec

Hex

0

00h

9600 baud

1

01h

2400 baud

2

02h

4800 baud

3

03h

9600 baud

4

04h

19200 baud

5

05h

38400 baud (default)

6

06h

57600 baud

7

07h

115200 baud

8

08h

300 baud

9

09h

600 baud

10

0Ah

1200 baud

11

0Bh

230,000 baud

12

0Ch

460,000 baud

Parity byte values

Byte value

Notes

Dec

Hex

0

00h

No Parity (10-bit format)

1

01h

Odd Parity (11-bit format)

2

02h

Even Parity (11-bit format)

Flow control byte values

Byte value

Notes

Dec

Hex

0

00h

None

1

01h

CTS