Can TX1-TX3 and RX1-RX3 be used as regular Digital I/O pins on a Mega 2560?

Hi all,

A program running on my Mega 2560 uses Serial.begin(); for communication with a PC on TX0 and RX0.

Does this mean I can use the TX1-2-3 and RX1-2-3 pins as regular digital I/O pins as long as I don't call:

Serial1.begin();   // TX1 and RX1, digital pins 18 & 19
Serial2.begin();   // TX2 and RX2, digital pins 16 & 17
Serial3.begin();   // TX3 and RX3, digital pins 14 & 15

Or are these pins "in use" as well after calling Serial.begin();, preventing them from being used as regular digital I/O?

(I had some strange problems on these digital 14-19 pins and I want to make sure this is not caused by me using Serial.begin(); for TX0/RX0 in any way.)

Yes. Serial.begin() has no effect on the Serial1, Serial2 and Serial3 pins, either Rx or Tx

Your topic was MOVED to its current forum category as it is more suitable than the original

Thank you @UKHeliBob , much appreciated!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.