. .
there is another IC on board provided me, that is MAX1487 and there
> are only two wire conneting(RXD,TXD) to it. iam connectint only two
> wire from com port.
. .
It doesn't matter how much code you write, either good or bad. If you don't have a ground reference between the com port and your system, nothing will work.
Try asking in 'sci.electronics.basics' for an explanation of the term 'Ground Reference'.