is there any way of enabling/disabling the TX pin?
In some cases, I need to send the data only through the USB and disable the TX, while in other cases to send the data through the TX (in baud rate that is not supported by the USB drivers).
Not from software. The TX pin on the Arduino board and the FTDI chip that does the USB communication are both connected to the same pin on the ATmega168. You can disable it, but then the communication won’t go to either place.
If you don’t, you could share the TX on both serial interfaces, just that the FTDI won’t recognize it.
well, ideally i would like to completely disable the TX when thr FDTI is used. I use the TX for MIDI out and the TDFI for serial. So, if I use the FTDI while have a MIDI device conneceted to TX, the MIDI device will still accept random messages…
But I guess it’s not possible from software as mellis said. anyway…