Skip to content

Serial Hardware exceptions #947

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions Language/Functions/Communication/Serial.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,23 @@ subCategories: [ "Communication" ]
=== Description
Used for communication between the Arduino board and a computer or other devices. All Arduino boards have at least one serial port (also known as a UART or USART), and some have several.
[options="header"]

|================================================================================================================================================
| Board | USB CDC name | Serial pins | Serial1 pins | Serial2 pins | Serial3 pins
| Uno, Nano, Mini | | 0(RX), 1(TX) | | |
| Mega | | 0(RX), 1(TX) | 19(RX), 18(TX) | 17(RX), 16(TX) | 15(RX), 14(TX)
| Leonardo, Micro, Yún | Serial | | 0(RX), 1(TX) | |
| UNO R3, UNO R3 SMD, UNO WiFi Rev2, UNO Mini Ltd, Mini| | | 0(RX), 1(TX) | |
| UNO R4 Minima, UNO R4 WiFi| | 18(RX), 17(TX) | | |
| Leonardo, Micro, Yún Rev2| Serial | | 0(RX), 1(TX) | |
| Uno WiFi Rev.2 | | Connected to USB | 0(RX), 1(TX) | Connected to NINA |
| MKR boards | Serial | | 13(RX), 14(TX) | |
| Zero | SerialUSB (Native USB Port only) | Connected to Programming Port | 0(RX), 1(TX) | |
| Nano ESP32 | | 14(RX), 15(TX) | | |
| Nano 33 BLE, Nano 33 BLE Sense, Nano 33 BLE Sense Rev2, Nano 33 IoT, Nano Every | | 17(RX), 16(TX) | | |
| Nano RP2040 Connect, Nano | | 2(RX), 1(TX) | | |
| MKR boards | Serial | | 22(RX), 23(TX) | |
| MKR Zero | SerialUSB (Native USB Port only) | Connected to Programming Port | 0(RX), 1(TX) | |
| Due | SerialUSB (Native USB Port only) | 0(RX), 1(TX) | 19(RX), 18(TX) | 17(RX), 16(TX) | 15(RX), 14(TX)
| 101 | Serial | | 0(RX), 1(TX) | |
| GIGA R1 WiFi | | | 24(RX), 23(TX) | 22(RX), 21(TX) | 20(RX), 19(TX)
| Mega 2560 Rev3 | | 18(RX), 17(TX) | 24(RX), 23(TX) | 22(RX), 21(TX) | 20(RX), 19(TX)
| Mega | | 0(RX), 1(TX) | 19(RX), 18(TX) | 17(RX), 16(TX) | 15(RX), 14(TX)
|================================================================================================================================================

On Uno, Nano, Mini, and Mega, pins 0 and 1 are used for communication with the computer. Connecting anything to these pins can interfere with that communication, including causing failed uploads to the board.
Expand Down