1,mega2560有四组UART硬件串口:
Serial(串口):
Serial 0:0 (RX) and 1 (TX);
Serial 1: 19 (RX) and 18 (TX);
Serial 2: 17 (RX) and 16 (TX);
Serial 3: 15 (RX) and 14 (TX).
串口波特率一般为:300, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, or 115200。其中Serial0也是mega2560和计算机通信的UART口,因此如果有外接设备使用serial0,无法进行程序的上