define RX, TX for Xbee

Hello,

on duemlinove board i would like to connect the xbee module and touchshield slide.

1.Xbee module recieves some data and then transmittes it to arduino board.
2.Arduino then transmittes data to touchshield slide

If i understand right i have to define some available pins as RX and TX, which i did for the touchshield slide as:

#include <AFSoftSerial.h>

#define RX_PIN 3
#define TX_PIN 2

AFSoftSerial mySerial = AFSoftSerial(RX_PIN, TX_PIN);

I suppose i have to do the similar thing for the Xbee, but i don’t know how.

which pin on duemilanove can i use for the RX and TX and how to define it if necessary?

Thanks, luka

which pin on duemilanove can i use for the RX and TX

Any pins except the hardware serial pins (0 and 1).

and how to define it if necessary?

The same way. With different names, of course.

tnx, i connected it to rx(pin 0) and tx (pin 1) on arduino, so i didn't have to define any additional pins.

What do you think about connecting xbee module DIN and DOUT direct to touchshield slide pin 2 and 3? Is it possible to send bytes direct to touchshield slide?