Note: Not all pins on the Mega and Mega 2560 support change interrupts, so only the following can be used for RX: 10, 11, 12, 13, 50, 51, 52, 53, 62, 63, 64, 65, 66, 67, 68, 69
It is possible to have multiple software serial ports with speeds up to 115200 bps.
SoftwareSerial (or NewSoftSerial) was not designed for use on a board with 4 hardware serial ports. Why do you need to use it on a Mega?
Paul, can you explain why SoftwareSerial etc was not designed for MEGA? Just because it has plenty serial ports already? Thanks.
Have you tried my AltSoftSerial library?http://www.pjrc.com/teensy/td_libs_AltSoftSerial.htmlIt only supports a single instance, and requires specific pins, and uses a timer.... but it creates much less interrupt latency than normal SoftwareSerial. In some cases (with carefully chosen baud rates), it can even be used together with AltSoftSerial and SoftwareSerial in the same project, for 3 serial ports on an Arduino Uno.Of course, if you're using Mega, Due, Teensy3 or any other board that has multiple real hardware serial, you should always use the hardware serial before resorting to software serial.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16