主要内容

Serial Baud Rate

Set baud rate of serial port

Model Configuration Pane: Hardware Implementation / Hardware board settings / Target hardware resources / Serial port properties

Description

Set the baud rate of the serial port on the Arduino® hardware.

If you set Set host COM port to Manually, then set Serial 0 baud rate as described in Manually Configure COM Port and Bootloader on Host.

For every serial port, you can individually configure the baud rate and data frame configuration. However, not all Arduino boards support all serial ports. This table lists the serial ports supported by different Arduino boards. Set the Hardware board parameter in the Configuration Parameters dialog box to any one of these boards to enable the serial port.

Arduino BoardsSupported Serial Ports
Arduino Due, Arduino Mega 2560, Arduino Mega ADKSerial ports 0, 1, 2, and 3
Arduino Leonardo, Arduino MKR WiFi 1010, Arduino MKR 1000, Arduino MKR Zero, Arduino Micro, Arduino Nano 33 BLE Sense, Arduino Nano 33 IoT, Arduino Nano RP2040 Connect, Arduino Robot Control Board, Arduino Robot Motor Board, Arduino Uno R4 Minima, Arduino Uno R4 WiFiSerial ports 0 and 1
Arduino Nano 3.0, Arduino UnoSerial port 0
ESP32-WROOM (Arduino Compatible), ESP32-WROVER (Arduino Compatible), Raspberry Pi® Pico (Arduino Compatible), Raspberry Pi Pico W (Arduino Compatible)Serial ports 0, 1, and 2
Teensy 4.0 (Arduino Compatible), Teensy 4.1 (Arduino Compatible)Serial ports 0, 1, 2, 3, 4, 5, 6, 7, and 8

For information on serial ports for different Arduino boards, see Pin Mapping for Arduino Timer-Independent Blocks.

Settings

9600 | 300 | 1200 | 2400 | 4800 | 9600 | 14400 | 19200 | 28800 | 38400 | 57600 | 76800 | 115200 | Specify

You can also manually specify the baud rate of a serial port. Select Specify from the drop-down list and enter the value in the box.

Programmatic Use

No programmatic use is available.

Version History

Introduced in R2013b