I just posted because I couldn't get SoftwareSerial working between a Nano and the Mote Mega. I did put in a voltage divider as suggested. Still no cigar, so I looked around a bit and discovered that the Arduino Software Serial Library requires that the Rx pin must be capable of pin change interrupt. So I downloaded the Atmega 1284 data sheet, and found that it supports pin change interrupts on 4 pins. But I can't be sure about the pin mapping of the 1284 pins to the Mote Mage.
So the question is -- in the pin map of the Mote Mega, which of the pins support pin change interrupt?
Boy, sometimes simple things can get so complicated!
Thanks in advance for any help.
ok, we need to step back a bit from this and think about what you are trying to do.
1. The Mega has TWO hardware serial ports so you don't need SW serial on the Mega side of the link (unless you're not telling us everything you're trying to do).
2. On the Nano side of the link, if you want to keep the HW serial link for IDE support, then, yes, you do need SW serial library on THAT side of the link. But that side only and there is no issue with pinChange interrupt on that device.
Having said that, there has been some good progress (see EnableInterrupt library) made supporting pin change interrupt for the Mega, but, frankly, I don't think you need this.
Tom