There are a lot of examples which shows on how to communicate through the serial port of the pc. But is there a way to configure the pins of rs 232? I just need to set the tx pi
If you are not restricted to RS232 only. You have other options
First, if you PC still have parallel port, it would be a better choice over RS232.
Or, you can use some some USB-GPIO modules. Some suggestion: