How can I define to make it between the ports I want and after print out the sent data with the start,stop and parity bits?
Which Arduino are you using? Where the data comes from, or goes to, does not matter to the Arduino. If you have a Mega, you can use Serial to send data, and connect pins 0 and 1 to 18 and 19 and use Serial1 to read the data. Or use Serial1 to send and Serial3 to read, and Serial to debug.