Schau mal da, das sollte dir helfen
http://www.sprut.de/electronic/pic/grund/rs232.htm