Parallax PMB-648 GPS module and Arduino Mega

Good Day!
Im trying to get GPS data. Im using this sensor Microcontroller KickStarts | LEARN.PARALLAX.COM when I tested with Arduino uno (rxd connected pin 6) it works but with arduino Mega with pin 19 (RX1) it doesnt work
If someone knows a solution pls I will be happy to know

#include <SoftwareSerial.h>
#include "./TinyGPS.h" // Special version for 1.0

TinyGPS gps;
SoftwareSerial nss(19, 255); // Yellow wire to pin 19

void setup() {
 Serial.begin(115200);
 nss.begin(4800);
 Serial.println("Reading GPS");
}

void loop() {
 bool newdata = false;
 unsigned long start = millis();
 while (millis() - start < 5000) { // Update every 5 seconds
 if (feedgps())
 newdata = true;
 }
 if (newdata) {
 gpsdump(gps);
 }
}

// Get and process GPS data
void gpsdump(TinyGPS &gps) {
 float flat, flon;
 unsigned long age;
 gps.f_get_position(&flat, &flon, &age);
 Serial.print(flat, 4); Serial.print(", "); 
 Serial.println(flon, 4);
}

// Feed data as it becomes available 
bool feedgps() {
 while (nss.available()) {
 if (gps.encode(nss.read()))
 return true;
 }
 return false;
}[/font][/color][/pre]

Don't use SoftwareSerial on the Mega. Replace your "nss" with "Serial1" and chances are high that it begins to work correctly.
If you insist in using SoftwareSerial, use one of 10, 11, 12, 13, 14, 15, 50, 51, 52, 53, A8, A9, A10, A11, A12, A13, A14, A15 as the RX pin because only these pins support a pin change interrupt.

Thank for reply. If I understood you mean like this?But still nothing ((( only "Reading GPS "and nothing else:

//#include <SoftwareSerial.h>
#include <TinyGPS.h>                 // Special version for 1.0

TinyGPS gps;
//SoftwareSerial nss(10, 255);            // Yellow wire to pin 6

void setup() {
  Serial.begin(115200);
  Serial1.begin(4800);
  Serial.println("Reading GPS");
//  Serial1.write(10);
}

void loop() {
  bool newdata = false;
  unsigned long start = millis();
  while (millis() - start < 5000) {  // Update every 5 seconds
    if (feedgps())
      newdata = true;
  }
  if (newdata) {
    gpsdump(gps);
  }
}

// Get and process GPS data
void gpsdump(TinyGPS &gps) {
  float flat, flon;
  unsigned long age;
  gps.f_get_position(&flat, &flon, &age);
  Serial.print(flat, 4); Serial.print(", "); 
  Serial.println(flon, 4);
}

// Feed data as it becomes available 
bool feedgps() {
  while (Serial1.available()) {
    if (gps.encode(Serial1.read()))
      return true;
  }
  return false;
}

By the way as RX I took 19 pin for serial1

Do you receive anything on the Serial1? Did you check if you still receive something on the UNO?
Return everything received on Serial1 to Serial and report what the results are.

I returned SoftwareSerial and tried with Arduino Mega pin 11 (also tried with 12,10,13) no results(((

Finally got it!!!!! Yahooo I connected with pin 11 returned softserial and it works! Thank you very much for help :wink: