Setting the Baud Rate

The upper limit of the baud rate depends on the communication specifications of the connected device, the quality of the cable used, the processing power (operation speed) of the PC used, and the load (Execute simultaneously with other programs, etc.).
Also, in the case of RS-422A/485 communication, the cable length can be extended up to 1200m, but if the communication distance is increased, the baud rate must be lowered.

Therefore, even if the baud rate is within the baud rate listed in the device specifications table, communication at a speed exceeding this upper limit will cause communication errors (overrun, parity, framing).
Confirm the baud rate that can be set by actually communicating with the diagnostic program.

 

The baud rate that can be set depends on the specifications of communication LSI installed on the device.
The overview is shown below, but for details of the baud rate that can be set, refer to the manual of each device.

The devices in the following table determine the baud rate that can be set.
Please note that baud rates not listed in the table cannot be set.

Target Device

Baud Rate
bps (bit/s)

CPSN-MCB271-S1-041

300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 38400, 57600, 115200, 230400, 460800, 921600

* Only supported when used in combination with CPSN-MCB721

CPSN-COM-1PD

300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 38400, 57600, 115200, 230400, 460800, 921600

RP-COM(FIT)H
RP-COM(FIT)H-AF

300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 38400, 57600, 115200, 230400, 460800, 921600

* Only supported when used in combination with RP-COM(FIT)H or RP-COM(FIT)H-AF

COM-2(FIT)GY
COM-1PD(FIT)GY

300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 38400, 57600, 115200, 230400, 460800, 921600

 

The devices in the following table can flexibly set the baud rate according to the reference clock for calculation.
Typical baud rate setting examples are shown in the table, but there are other baud rates that can be set.

Target Device (Board No.)

Baud Rate bps (b/s)

Reference clock for calculation

Minimum Value

Maximum Value

Setting Example

COM-1C2-USB
COM-1P2-USB
COM-1PD2-USB

COM-4CN-USB
COM-4PDHN-USB

300

921600

300, 600, 1200, 2000, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, 76800, 115200, 153600, 230400, 460800, 921600

48,000,000

COM-1C-LPE (7331B or later)
COM-2C-LPE (7333B or later)
COM-2C-PE (7407C or later)
COM-4C-LPE (7332B or later)
COM-4C-PE (7410C or later)
COM-8C-LPE (8643B or later)
COM-8C-PE (7413D or later)

COM-2PC-PE (7409B or later)
COM-2PD-PE (7408C or later)
COM-4PC-PE (7411B or later)
COM-4PD-PE (7412B or later)

COM-1(LPCI)H (7211C or later)
COM-2(LPCI)H (7219D or later)
COM-2(PCI)H (7189D or later)
COM-4(LPCI)H (7210D or later)
COM-4(PCI)H (7190D or later)
COM-8(PCI)H (7191E or later)
COM-8C-LPCI (8642B or later)

COM-1PD(LPCI)H (7302C or later)
COM-2PD(LPCI)H (7303D or later)
COM-2PD(PCI)H (7195D or later)
COM-4PD(PCI)H (
7194D or later)

COM-2P(PCI)H (7209C or later)
COM-4P(PCI)H (7208D or later)

30

921600

30, 50, 75, 150, 300, 600, 1200, 1800, 2400, 3600, 4800, 7200, 9600, 14400, 19200, 28800, 38400, 57600, 76800, 115200, 153600, 230400, 460800, 921600

921,600

COM-1C-LPE (7331A or earlier)
COM-2C-LPE (7333A or earlier)
COM-2C-PE (7407B or earlier)
COM-4C-LPE (7332A or earlier)
COM-4C-PE (7410B or earlier)
COM-8C-LPE (8643A or earlier)
COM-8C-PE (7413C or earlier)

COM-2PC-PE (7409A or earlier)
COM-2PD-PE (7408B or earlier)
COM-4PC-PE (7411A or earlier)
COM-4PD-PE (7412A or earlier)

COM-1(LPCI)H (7211B or earlier)
COM-2(LPCI)H (7219C or earlier)
COM-2(PCI)H (7189C or earlier)
COM-4(LPCI)H (7210C or earlier)
COM-4(PCI)H (7190C or earlier)
COM-8(PCI)H (7191D or earlier)
COM-8C-LPCI (8642A or earlier)

COM-1PD(LPCI)H (7302B or earlier)
COM-2PD(LPCI)H (7303C or earlier)
COM-2PD(PCI)H (7195C or earlier)
COM-4PD(PCI)H (
7194C or earlier)

COM-2P(PCI)H (7209B or earlier)
COM-4P(PCI)H (7208C or earlier)

15

921600

15, 50, 75, 150, 300, 600, 1200, 1800, 2400, 3600, 4800, 7200, 9600, 14400, 19200, 28800, 38400, 57600, 76800, 115200, 153600, 230400, 460800, 921600

921,600

COM-1PDH-LPE
COM-2PD-LPE

30

921600

30, 50, 75, 150, 300, 600, 1200, 1800, 2400, 3600, 4800, 7200, 9600, 14400, 19200, 28800, 38400, 57600, 76800, 115200, 153600, 230400, 460800, 921600

921,600

COM-2CL-PCI
COM-2DL-PCI
COM-4CL-PCI
COM-4DL-PCI

15

230400

15, 50, 75, 150, 300, 600, 1200, 1800, 2400, 3600, 4800, 7200, 9600, 14400, 19200, 28800, 38400, 57600, 76800, 115200, 153600, 230400

921,600

* Only supported when used in combination with CPS-BXC200

CPS-COM-1PC
CPS-COM-1PD
CPS-COM-2PC
CPS-COM-2PD

15

921600

15, 50, 75, 150, 300, 600, 1200, 1800, 2400, 3600, 4800, 7200, 9600, 14400, 19200, 28800, 38400, 57600, 76800, 115200, 153600, 230400, 460800, 921600

921,600

(BX-M210 GPIO modelEXT-A and EXT-B)

COM-1C
COM-1D

50

115200

50, 75, 150, 300, 600, 1200, 1800, 2400, 3600, 4800, 7200, 9600, 14400, 19200, 28800, 38400, 57600, 115200

115,200

 

Division register value (Clock Divisor)

Set the division register of the LSI installed on the device with an integer value.

If the baud rate to be specified is not an integral multiple of the reference clock for calculation, the decimal point is rounded off and set to the LSI frequency division register (Clock Divisor).
Therefore, depending on the specified baud rate, a setup error may occur when setting the device baud rate.

In general, if the baud rate error is less than 1%, serial communication can be performed without error.
However, please make sure that the baud rate is configurable by actually communicating with the device.

Note that the specified baud rate must be within the range supported by your device.
You cannot set a baud rate that is greater than the maximum value or less than the minimum value.

<Calculation formula for setting value to frequency division register>
  Division register(Clock Divisor) = Reference clock for calculation / Specified baud rate

 

Example where setup error does not occur: (For COM-4CN-USB)

  Reference clock for calculation = 48,000,000Hz(48MHz), Specified baud rate 9,600[bps]
  Since the calculation result is 5,000, the setting to the division register is 5,000, and no setup error occurs.

(Details)
  Division register(Clock Divisor) = Reference clock for calculation / Specified baud rate
            = 48,000,000Hz / 9,600bps
            = 5,000

  Operation baud rate[bps] = Reference clock for calculation / Division registe value that you set
            = 48,000,000Hz / 5,000
            = 9,600bps

  Setup error[%] = ((Operation baud rate - Specified baud rate) / Specified baud rate) *100
            = ((9,600bps - 9,600bps) / 9,600bps) * 100
            = 0%

 

Example where setup error occurs: (For COM-4CN-USB)

  Internal clock for calculation = 48,000,000Hz(48MHz), Specified baud rate 115,200[bps]
  Since the calculation result is 416.66666, the setting to the division register is 416, a setup error of 0.1603% will occur.

(Details)

  Division register(Clock Divisor) = Reference clock for calculation / Specified baud rate
            = 48,000,000Hz / 115,200bps
            = 416.66666      * 416 is set to the division register

  Operation baud rate[bps] = Reference clock for calculation / Division registe value that you set
            = 48,000,000Hz / 416
            = 115,384.6153bps

  Setup error[%] = ((Operation baud rate - Specified baud rate) / Specified baud rate) * 100
            = ((115,384.6153bps - 115,200bps) / 115,200bps) * 100
            = 0.1603%